Changes in boot/arch/sparc64/src/asm.S [9d58539:a52e2f4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/sparc64/src/asm.S
r9d58539 ra52e2f4 28 28 # 29 29 30 #include <abi/asmtool.h> 30 31 #include <arch/arch.h> 31 32 33 #if defined(PROCESSOR_us) || defined(PROCESSOR_us3) 32 34 #define ICACHE_SIZE 8192 33 35 #define ICACHE_LINE_SIZE 32 34 36 #define ICACHE_SET_BIT (1 << 13) 35 37 #define ASI_ICACHE_TAG 0x67 38 #endif /* PROCESSOR_us || PROCESSOR_us3 */ 36 39 37 40 .register %g2, #scratch … … 40 43 .register %g7, #scratch 41 44 42 .global start43 .global halt44 .global jump_to_kernel45 46 45 .section BOOTSTRAP, "ax" 47 46 48 start: 47 SYMBOL(start) 49 48 ba %xcc, 1f 50 49 nop … … 94 93 .text 95 94 96 halt: 95 FUNCTION_BEGIN(halt) 97 96 ba %xcc, halt 98 97 nop 98 FUNCTION_END(halt) 99 99 100 jump_to_kernel: 100 FUNCTION_BEGIN(jump_to_kernel) 101 101 /* 102 102 * Guarantee cache coherence: … … 131 131 jmp %o3 132 132 nop 133 FUNCTION_END(jump_to_kernel) 133 134 134 135 # Flush I-cache 135 136 icache_flush: 137 #if defined(PROCESSOR_us) || defined(PROCESSOR_us3) 136 138 set ((ICACHE_SIZE - ICACHE_LINE_SIZE) | ICACHE_SET_BIT), %g1 137 139 stxa %g0, [%g1] ASI_ICACHE_TAG … … 149 151 150 152 nop 153 #else 154 // TODO: sun4v 155 retl 156 nop 157 #endif /* PROCESSOR_us || PROCESSOR_us3 */ 151 158 152 .global ofw 153 ofw: 159 FUNCTION_BEGIN(ofw) 154 160 save %sp, -(STACK_WINDOW_SAVE_AREA_SIZE + STACK_ARG_SAVE_AREA_SIZE), %sp 155 161 set ofw_cif, %l0 … … 167 173 ret 168 174 restore %o0, 0, %o0 175 FUNCTION_END(ofw)
Note:
See TracChangeset
for help on using the changeset viewer.