summaryrefslogtreecommitdiff
path: root/system/alpha/console/dbmentry.S
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2006-02-28 18:57:34 -0500
committerAli Saidi <saidi@eecs.umich.edu>2006-02-28 18:57:34 -0500
commit576196c13ccd4109d10fe98e957cef2f5422b795 (patch)
tree7a4cdf596ef1d5b87bcf4b0a0c2a63b7d4094f5f /system/alpha/console/dbmentry.S
parenta50e054ceded6fa3f700385ed93dcc76c05cb13b (diff)
downloadgem5-576196c13ccd4109d10fe98e957cef2f5422b795.tar.xz
Add m5op to the build process
use quiesceNs on other CPUs panic rather than spin on an error console/Makefile: Add m5op to the build process console/dbmentry.S: use quiesceNs on other CPUs console/printf.c: panic rather than spin on an error.
Diffstat (limited to 'system/alpha/console/dbmentry.S')
-rw-r--r--system/alpha/console/dbmentry.S9
1 files changed, 6 insertions, 3 deletions
diff --git a/system/alpha/console/dbmentry.S b/system/alpha/console/dbmentry.S
index c8a3691e3..e8316390f 100644
--- a/system/alpha/console/dbmentry.S
+++ b/system/alpha/console/dbmentry.S
@@ -81,7 +81,9 @@ _entry:
bis zero,8,t4
mulq t4,v0,t4
addq t3,t4,t3
-cpuwait: ldq t4, 0(t3)
+ ldah a0, 3(zero) # load arg0 with 65536*3
+cpuwait: .long 0x6000002 # jsr quiesceNs
+ ldq t4, 0(t3)
beq t4, cpuwait
bis t4,t4,sp
@@ -220,8 +222,9 @@ SlaveSpin: # using any stack space
mov a0, t0 # cpu number
mov a1, t1 # cpu rpb pointer (virtual)
mov a2, t2 # what to spin on
-
-test: ldl t3, 0(t2)
+ ldah a0, 3(zero) # load arg0 with 65536
+test: .long 0x6000002 # jsr quiesceNs # wait 65us*3
+ ldl t3, 0(t2)
beq t3, test
zapnot t1,0x1f,a0 # make rpb physical
call_pal PAL_SWPCTX_ENTRY # switch to pcb