diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2010-06-03 14:30:44 -0500 |
---|---|---|
committer | Patrick Williams <iawillia@us.ibm.com> | 2010-06-03 14:30:44 -0500 |
commit | 5ca625e2e6882201ced9a97d8f4128a0dea27ef4 (patch) | |
tree | ca5b7d04e2f653da13bf7352bae4074a1bb061fe /src/include/kernel | |
parent | 2cc0de1f136026f13ca6de363d9e57831c6ba10b (diff) | |
download | talos-hostboot-5ca625e2e6882201ced9a97d8f4128a0dea27ef4.tar.gz talos-hostboot-5ca625e2e6882201ced9a97d8f4128a0dea27ef4.zip |
Import register constants from KIS codebase, update start.S to use.
Diffstat (limited to 'src/include/kernel')
-rw-r--r-- | src/include/kernel/ppcconsts.S | 124 |
1 files changed, 124 insertions, 0 deletions
diff --git a/src/include/kernel/ppcconsts.S b/src/include/kernel/ppcconsts.S new file mode 100644 index 000000000..c8346df59 --- /dev/null +++ b/src/include/kernel/ppcconsts.S @@ -0,0 +1,124 @@ +#*--------------------------------------------------------------------*# +#* Register Constants *# +#*--------------------------------------------------------------------*# + + .set r0,0 + .set r1,1 + .set r2,2 + .set r3,3 + .set r4,4 + .set r5,5 + .set r6,6 + .set r7,7 + .set r8,8 + .set r9,9 + .set r10,10 + .set r11,11 + .set r12,12 + .set r13,13 + .set r14,14 + .set r15,15 + .set r16,16 + .set r17,17 + .set r18,18 + .set r19,19 + .set r20,20 + .set r21,21 + .set r22,22 + .set r23,23 + .set r24,24 + .set r25,25 + .set r26,26 + .set r27,27 + .set r28,28 + .set r29,29 + .set r30,30 + .set r31,31 + +#*--------------------------------------------------------------------*# +#* CR Register Constants *# +#*--------------------------------------------------------------------*# + + .set cr0,0 + .set cr1,1 + .set cr2,2 + .set cr3,3 + .set cr4,4 + .set cr5,5 + .set cr6,6 + .set cr7,7 + .set lt,0 + .set gt,1 + .set eq,2 + .set so,3 + +#*--------------------------------------------------------------------*# +#* SR Register Constants *# +#*--------------------------------------------------------------------*# + + .set sr0,0 + .set sr1,1 + .set sr2,2 + .set sr3,3 + .set sr4,4 + .set sr5,5 + .set sr6,6 + .set sr7,7 + .set sr8,8 + .set sr9,9 + .set sr10,10 + .set sr11,11 + .set sr12,12 + .set sr13,13 + .set sr14,14 + .set sr15,15 + +#*--------------------------------------------------------------------*# +#* SPR Constants *# +#*--------------------------------------------------------------------*# + + .set XER,1 + .set LR,8 + .set CTR,9 + .set DSISR,18 + .set DAR,19 + .set DEC,22 + .set SDR1,25 + .set SRR0,26 + .set SRR1,27 + .set SPRG0,272 + .set SPRG1,273 + .set SPRG2,274 + .set SPRG3,275 + .set EAR,282 + .set TBL,284 + .set TBU,285 + .set PVR,287 + .set IBAT0U,528 + .set IBAT0L,529 + .set IBAT1U,530 + .set IBAT1L,531 + .set IBAT2U,532 + .set IBAT2L,533 + .set IBAT3U,534 + .set IBAT3L,535 + + .set DBAT0U,536 + .set DBAT0L,537 + .set DBAT1U,538 + .set DBAT1L,539 + .set DBAT2U,540 + .set DBAT2L,541 + .set DBAT3U,542 + .set DBAT3L,543 + + .set DMISS,976 + .set DCMP,977 + .set HASH1,978 + .set HASH2,979 + .set IMISS,980 + .set ICMP,981 + .set RPA,982 + .set HID0,1008 + .set IABR,1010 + |