Changeset 27f67f5 in mainline for kernel/arch/ia64
- Timestamp:
- 2016-04-22T20:43:34Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a52e2f4
- Parents:
- 054476d
- Location:
- kernel/arch/ia64
- Files:
-
- 6 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/Makefile.inc
r054476d r27f67f5 43 43 arch/$(KARCH)/src/start.S \ 44 44 arch/$(KARCH)/src/asm.S \ 45 arch/$(KARCH)/src/dummy. s\45 arch/$(KARCH)/src/dummy.S \ 46 46 arch/$(KARCH)/src/ia64.c \ 47 47 arch/$(KARCH)/src/fpu_context.c \ -
kernel/arch/ia64/src/asm.S
r054476d r27f67f5 27 27 */ 28 28 29 #include <abi/asmtool.h> 29 30 #include <arch/register.h> 30 31 31 32 .text 32 .global memcpy_from_uspace33 .global memcpy_to_uspace34 .global memcpy_from_uspace_failover_address35 .global memcpy_to_uspace_failover_address36 33 37 34 /** Copy memory from/to userspace. … … 46 43 * 47 44 */ 48 memcpy_from_uspace: 49 memcpy_to_uspace: 45 FUNCTION_BEGIN(memcpy_from_uspace) 46 FUNCTION_BEGIN(memcpy_to_uspace) 50 47 alloc loc0 = ar.pfs, 3, 1, 0, 0 51 48 … … 132 129 mov ar.pfs = loc0 133 130 br.ret.sptk.many rp 131 FUNCTION_END(memcpy_from_uspace) 132 FUNCTION_END(memcpy_to_uspace) 134 133 135 memcpy_from_uspace_failover_address: 136 memcpy_to_uspace_failover_address: 134 SYMBOL(memcpy_from_uspace_failover_address) 135 SYMBOL(memcpy_to_uspace_failover_address) 137 136 /* Return 0 on failure */ 138 137 mov r8 = r0 … … 140 139 br.ret.sptk.many rp 141 140 142 .global cpu_halt 143 cpu_halt: 141 FUNCTION_BEGIN(cpu_halt) 144 142 br cpu_halt 143 FUNCTION_END(cpu_halt) 145 144 146 145 /** Switch to userspace - low level code. … … 154 153 * 155 154 */ 156 .global switch_to_userspace 157 switch_to_userspace: 155 FUNCTION_BEGIN(switch_to_userspace) 158 156 alloc loc0 = ar.pfs, 6, 3, 0, 0 159 157 … … 191 189 192 190 rfi ;; 191 FUNCTION_END(switch_to_userspace) 193 192 194 .global early_putchar 195 early_putchar: 193 FUNCTION_BEGIN(early_putchar) 196 194 br.ret.sptk.many b0 195 FUNCTION_END(early_putchar) -
kernel/arch/ia64/src/context.S
r054476d r27f67f5 27 27 # 28 28 29 #include <abi/asmtool.h> 29 30 #include <arch/context_struct.h> 30 31 31 32 .text 32 33 33 .global context_save_arch 34 .global context_restore_arch 35 36 context_save_arch: 34 FUNCTION_BEGIN(context_save_arch) 37 35 alloc loc0 = ar.pfs, 1, 49, 0, 0 38 36 mov loc1 = ar.unat ;; … … 182 180 add r8 = r0, r0, 1 /* context_save returns 1 */ 183 181 br.ret.sptk.many b0 184 185 context_restore_arch: 182 FUNCTION_END(context_save_arch) 183 184 FUNCTION_BEGIN(context_restore_arch) 186 185 alloc loc0 = ar.pfs, 1, 50, 0, 0 ;; 187 186 … … 338 337 mov r8 = r0 /* context_restore returns 0 */ 339 338 br.ret.sptk.many b0 340 339 FUNCTION_END(context_restore_arch) 340 -
kernel/arch/ia64/src/debug/stacktrace_asm.S
r054476d r27f67f5 27 27 # 28 28 29 #include <abi/asmtool.h> 30 29 31 .text 30 32 31 .global frame_pointer_get 32 .global program_counter_get 33 34 frame_pointer_get: 33 FUNCTION_BEGIN(frame_pointer_get) 35 34 mov r8 = r0 36 35 br.ret.sptk.many b0 36 FUNCTION_END(frame_pointer_get) 37 37 38 program_counter_get: 38 FUNCTION_BEGIN(program_counter_get) 39 39 mov r8 = r0 40 40 br.ret.sptk.many b0 41 FUNCTION_END(program_counter_get) 42 -
kernel/arch/ia64/src/dummy.S
r054476d r27f67f5 27 27 # 28 28 29 #include <abi/asmtool.h> 30 29 31 .text 30 32 31 .global calibrate_delay_loop 32 .global asm_delay_loop 33 .global cpu_sleep 34 .global dummy 33 FUNCTION_BEGIN(calibrate_delay_loop) 34 FUNCTION_BEGIN(asm_delay_loop) 35 FUNCTION_BEGIN(cpu_sleep) 36 br.ret.sptk.many b0 37 FUNCTION_END(calibrate_delay_loop) 38 FUNCTION_END(asm_delay_loop) 39 FUNCTION_END(cpu_sleep) 35 40 36 calibrate_delay_loop:37 asm_delay_loop:38 cpu_sleep:39 40 dummy:41 br.ret.sptk.many b042 -
kernel/arch/ia64/src/ivt.S
r054476d r27f67f5 28 28 # 29 29 30 #include <abi/asmtool.h> 30 31 #include <arch/stack.h> 31 32 #include <arch/register.h> … … 101 102 .endm 102 103 103 .global heavyweight_handler 104 heavyweight_handler: 104 SYMBOL(heavyweight_handler) 105 105 /* 1. copy interrupt registers into bank 0 */ 106 106 … … 297 297 rfi ;; 298 298 299 .global heavyweight_handler_inner 300 heavyweight_handler_inner: 299 FUNCTION_BEGIN(heavyweight_handler_inner) 301 300 /* 302 301 * From this point, the rest of the interrupted context … … 538 537 mov ar.pfs = loc0 539 538 br.ret.sptk.many b0 540 541 .global ivt 539 FUNCTION_END(heavyweight_handler_inner) 540 542 541 .align 32768 543 ivt: 542 SYMBOL(ivt) 544 543 HEAVYWEIGHT_HANDLER 0x00 545 544 HEAVYWEIGHT_HANDLER 0x04 -
kernel/arch/ia64/src/start.S
r054476d r27f67f5 27 27 # 28 28 29 #include <abi/asmtool.h> 29 30 #include <arch/register.h> 30 31 #include <arch/mm/page.h> … … 41 42 .section K_TEXT_START, "ax" 42 43 43 .global kernel_image_start44 45 44 stack0: 46 45 … … 53 52 # r2 Address of the boot code's bootinfo structure. 54 53 # 55 kernel_image_start: 54 SYMBOL(kernel_image_start) 56 55 .auto 57 56 … … 113 112 rfi ;; 114 113 115 .global paging_start116 114 paging_start: 117 115
Note:
See TracChangeset
for help on using the changeset viewer.