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