Changeset 6eabb6e6 in mainline for kernel/arch/sparc64/src/asm.S
- Timestamp:
- 2006-09-13T13:16:30Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 34d9469e
- Parents:
- 9a5b556
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/asm.S
r9a5b556 r6eabb6e6 228 228 229 229 .macro WRITE_ALTERNATE_REGISTER reg, bit 230 rdpr %pstate, %g1 ! save PSTATE.PEF 230 231 wrpr %g0, (\bit | PSTATE_PRIV_BIT), %pstate 231 232 mov %o0, \reg 233 wrpr %g0, PSTATE_PRIV_BIT, %pstate 232 234 retl 233 wrpr %g 0, PSTATE_PRIV_BIT, %pstate235 wrpr %g1, 0, %pstate ! restore PSTATE.PEF 234 236 .endm 235 237 236 238 .macro READ_ALTERNATE_REGISTER reg, bit 239 rdpr %pstate, %g1 ! save PSTATE.PEF 237 240 wrpr %g0, (\bit | PSTATE_PRIV_BIT), %pstate 238 241 mov \reg, %o0 242 wrpr %g0, PSTATE_PRIV_BIT, %pstate 239 243 retl 240 wrpr %g 0, PSTATE_PRIV_BIT, %pstate244 wrpr %g1, 0, %pstate ! restore PSTATE.PEF 241 245 .endm 242 246
Note:
See TracChangeset
for help on using the changeset viewer.