Changeset 15819e37 in mainline for kernel/arch/ia64/src/start.S
- Timestamp:
- 2007-02-04T21:04:36Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7d307e7
- Parents:
- 5573942
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/src/start.S
r5573942 r15819e37 49 49 # Fill TR.i and TR.d using Region Register #VRN_KERNEL 50 50 51 movl r8 =(VRN_KERNEL<<VRN_SHIFT)52 mov r9 =rr[r8]53 movl r10 =(RR_MASK)54 and r9 =r10,r955 movl r10 =((RID_KERNEL<<RID_SHIFT)|(KERNEL_PAGE_WIDTH<<PS_SHIFT))56 or r9 =r10,r957 mov rr[r8] =r951 movl r8 = (VRN_KERNEL << VRN_SHIFT) 52 mov r9 = rr[r8] 53 movl r10 = (RR_MASK) 54 and r9 = r10, r9 55 movl r10 = ((RID_KERNEL << RID_SHIFT) | (KERNEL_PAGE_WIDTH << PS_SHIFT)) 56 or r9 = r10, r9 57 mov rr[r8] = r9 58 58 59 movl r8 =(VRN_KERNEL<<VRN_SHIFT)60 mov cr.ifa =r861 movl r10 =(KERNEL_PAGE_WIDTH<<PS_SHIFT)62 mov cr.itir =r1063 movl r10 =(KERNEL_TRANSLATION_I)64 itr.i itr[r0] =r1065 movl r10 =(KERNEL_TRANSLATION_D)66 itr.d dtr[r0] =r1059 movl r8 = (VRN_KERNEL << VRN_SHIFT) 60 mov cr.ifa = r8 61 movl r10 = (KERNEL_PAGE_WIDTH << PS_SHIFT) 62 mov cr.itir = r10 63 movl r10 = (KERNEL_TRANSLATION_I) 64 itr.i itr[r0] = r10 65 movl r10 = (KERNEL_TRANSLATION_D) 66 itr.d dtr[r0] = r10 67 67 68 68 # initialize PSR … … 70 70 srlz.i 71 71 srlz.d 72 movl r10 =(PSR_DT_MASK|PSR_RT_MASK|PSR_IT_MASK|PSR_IC_MASK) /* Enable paging */73 mov r9 =psr74 or r10 =r10,r975 mov cr.ipsr =r1076 mov cr.ifs =r077 movl r8 =paging_start78 mov cr.iip =r872 movl r10 = (PSR_DT_MASK | PSR_RT_MASK | PSR_IT_MASK | PSR_IC_MASK) /* Enable paging */ 73 mov r9 = psr 74 or r10 = r10, r9 75 mov cr.ipsr = r10 76 mov cr.ifs = r0 77 movl r8 = paging_start 78 mov cr.iip = r8 79 79 srlz.d 80 80 srlz.i … … 98 98 # initialize register stack 99 99 mov ar.rsc = r0 100 movl r8 =(VRN_KERNEL<<VRN_SHIFT) ;;100 movl r8 = (VRN_KERNEL << VRN_SHIFT) ;; 101 101 mov ar.bspstore = r8 102 102 loadrs 103 103 104 104 # initialize memory stack to some sane value 105 movl r12 = stack0 ;;105 movl r12 = stack0 ;; 106 106 107 add r12 = - 107 add r12 = -16, r12 /* allocate a scratch area on the stack */ 108 108 109 109 # initialize gp (Global Pointer) register … … 124 124 st8 [r19] = r16 125 125 126 ssm (1 <<19);; /* Disable f32 - f127 */127 srlz.i ;128 srlz.d ;;126 ssm (1 << 19) ;; /* Disable f32 - f127 */ 127 srlz.i 128 srlz.d ;; 129 129 130 130 br.call.sptk.many b0 = arch_pre_main 131 131 132 movl r18 =main_bsp ;;133 mov b1 =r18 ;;134 br.call.sptk.many b0 =b1132 movl r18 = main_bsp ;; 133 mov b1 = r18 ;; 134 br.call.sptk.many b0 = b1 135 135 136 136
Note:
See TracChangeset
for help on using the changeset viewer.