summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/powerpc/aim/trap_subr.S4
-rw-r--r--sys/powerpc/powerpc/trap_subr.S4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/powerpc/aim/trap_subr.S b/sys/powerpc/aim/trap_subr.S
index 878f6f4..624272f 100644
--- a/sys/powerpc/aim/trap_subr.S
+++ b/sys/powerpc/aim/trap_subr.S
@@ -690,9 +690,9 @@ CNAME(trapexit):
mfsprg 3, 0 /* get per-CPU pointer */
lwz 4, PC_CURTHREAD(3) /* deref to get curthread */
- lwz 4, TD_FLAGS(3) /* get thread flags value */
+ lwz 4, TD_FLAGS(4) /* get thread flags value */
lis 5, (TDF_ASTPENDING|TDF_NEEDRESCHED)@h
- oris 5,5, (TDF_ASTPENDING|TDF_NEEDRESCHED)@l
+ ori 5,5, (TDF_ASTPENDING|TDF_NEEDRESCHED)@l
and. 4,4,5
beq 1f
mfmsr 3 /* re-enable interrupts */
diff --git a/sys/powerpc/powerpc/trap_subr.S b/sys/powerpc/powerpc/trap_subr.S
index 878f6f4..624272f 100644
--- a/sys/powerpc/powerpc/trap_subr.S
+++ b/sys/powerpc/powerpc/trap_subr.S
@@ -690,9 +690,9 @@ CNAME(trapexit):
mfsprg 3, 0 /* get per-CPU pointer */
lwz 4, PC_CURTHREAD(3) /* deref to get curthread */
- lwz 4, TD_FLAGS(3) /* get thread flags value */
+ lwz 4, TD_FLAGS(4) /* get thread flags value */
lis 5, (TDF_ASTPENDING|TDF_NEEDRESCHED)@h
- oris 5,5, (TDF_ASTPENDING|TDF_NEEDRESCHED)@l
+ ori 5,5, (TDF_ASTPENDING|TDF_NEEDRESCHED)@l
and. 4,4,5
beq 1f
mfmsr 3 /* re-enable interrupts */
OpenPOWER on IntegriCloud