Changeset 27f67f5 in mainline
- 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
- Files:
-
- 14 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/ia64/src/asm.S
r054476d r27f67f5 28 28 # 29 29 30 #include <abi/asmtool.h> 30 31 #include <arch/arch.h> 31 32 32 33 .text 33 34 34 .global halt 35 .global memcpy 36 .global jump_to_kernel 35 FUNCTION_BEGIN(halt) 36 br halt 37 FUNCTION_END(halt) 37 38 38 halt: 39 br halt 40 41 jump_to_kernel: 39 FUNCTION_BEGIN(jump_to_kernel) 42 40 alloc loc0 = ar.pfs, 1, 1, 0, 0 43 41 mov r2 = in0 ;; # Pass bootinfo address … … 45 43 mov b1 = r8 ;; 46 44 br.call.sptk.many b0 = b1;; 45 FUNCTION_END(jump_to_kernel) 46 -
boot/arch/ia64/src/boot.S
r054476d r27f67f5 28 28 # 29 29 30 #include <abi/asmtool.h> 30 31 #include <arch/arch.h> 31 32 32 33 .section BOOTSTRAP, "ax" 33 34 34 .global start 35 start: 35 SYMBOL(start) 36 36 movl gp = __gp 37 37 … … 69 69 .bss 70 70 71 .global bootpar 72 bootpar: 71 SYMBOL(bootpar) 73 72 .quad 0 74 73 -
boot/arch/ia64/src/pal_asm.S
r054476d r27f67f5 27 27 # 28 28 29 #include <abi/asmtool.h> 30 29 31 .explicit 30 32 31 .global pal_static_call 32 33 pal_static_call: 33 FUNCTION_BEGIN(pal_static_call) 34 34 alloc loc0 = ar.pfs, 7, 6, 0, 0 35 35 … … 74 74 mov ar.pfs = loc0 75 75 br.ret.sptk.many rp 76 FUNCTION_END(pal_static_call) 76 77 -
boot/arch/ia64/src/sal_asm.S
r054476d r27f67f5 27 27 # 28 28 29 #include <abi/asmtool.h> 30 29 31 .explicit 30 32 … … 33 35 #define STACK_IN9 (8 + STACK_SCRATCH_AREA) 34 36 #define STACK_IN10 (16 + STACK_SCRATCH_AREA) 35 36 .global sal_call37 37 38 38 # … … 43 43 # Assume PSR.bn is 1, as expected by SAL. 44 44 # 45 sal_call: 45 FUNCTION_BEGIN(sal_call) 46 46 alloc loc0 = ar.pfs, 8, 8, 8, 0 47 47 … … 92 92 mov ar.pfs = loc0 93 93 br.ret.sptk.many rp 94 FUNCTION_END(sal_call) 94 95 -
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 -
uspace/lib/c/arch/ia64/Makefile.inc
r054476d r27f67f5 28 28 29 29 ARCH_SOURCES = \ 30 arch/$(UARCH)/src/entry. s\31 arch/$(UARCH)/src/entryjmp. s\32 arch/$(UARCH)/src/thread_entry. s\30 arch/$(UARCH)/src/entry.S \ 31 arch/$(UARCH)/src/entryjmp.S \ 32 arch/$(UARCH)/src/thread_entry.S \ 33 33 arch/$(UARCH)/src/syscall.S \ 34 34 arch/$(UARCH)/src/fibril.S \ -
uspace/lib/c/arch/ia64/src/entry.S
r054476d r27f67f5 27 27 # 28 28 29 #include <abi/asmtool.h> 30 29 31 .section .init, "ax" 30 32 31 33 .org 0 32 33 .globl __entry34 34 35 35 ## User-space task entry point … … 37 37 # r2 contains the PCB pointer 38 38 # 39 __entry: 39 SYMBOL(__entry) 40 40 alloc loc0 = ar.pfs, 0, 1, 2, 0 41 41 movl gp = __gp … … 44 44 mov out0 = r2 45 45 br.call.sptk.many b0 = __main 46 -
uspace/lib/c/arch/ia64/src/entryjmp.S
r054476d r27f67f5 27 27 # 28 28 29 #include <abi/asmtool.h> 30 29 31 .text 30 32 .explicit 31 .globl entry_point_jmp32 33 33 34 ## void entry_point_jmp(void *entry_point, void *pcb); … … 37 38 # 38 39 # Jump to program entry point 39 entry_point_jmp: 40 SYMBOL(entry_point_jmp) 40 41 # Pass pcb to the entry point in r2 41 42 -
uspace/lib/c/arch/ia64/src/fibril.S
r054476d r27f67f5 27 27 # 28 28 29 #include <abi/asmtool.h> 29 30 #include <libarch/fibril_context.h> 30 31 31 32 .text 32 33 33 .global context_save 34 .global context_restore 35 36 context_save: 34 FUNCTION_BEGIN(context_save) 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: 182 FUNCTION_END(context_save) 183 184 FUNCTION_BEGIN(context_restore) 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 339 FUNCTION_END(context_restore) 340 -
uspace/lib/c/arch/ia64/src/stacktrace_asm.S
r054476d r27f67f5 27 27 # 28 28 29 #include <abi/asmtool.h> 30 29 31 .text 30 32 31 .global stacktrace_prepare 32 .global stacktrace_fp_get 33 .global stacktrace_pc_get 33 FUNCTION_BEGIN(stacktrace_prepare) 34 br.ret.sptk.many b0 35 FUNCTION_END(stacktrace_prepare) 34 36 35 stacktrace_prepare: 36 br.ret.sptk.many b0 37 38 stacktrace_fp_get: 39 stacktrace_pc_get: 37 FUNCTION_BEGIN(stacktrace_fp_get) 38 FUNCTION_BEGIN(stacktrace_pc_get) 40 39 mov r8 = r0 41 40 br.ret.sptk.many b0 41 FUNCTION_END(stacktrace_fp_get) 42 FUNCTION_END(stacktrace_pc_get) 43 -
uspace/lib/c/arch/ia64/src/syscall.S
r054476d r27f67f5 27 27 # 28 28 29 #include <abi/asmtool.h> 30 29 31 /** 30 32 * Immediate operand for break instruction. … … 37 39 #define SYSCALL_IMM 1 38 40 39 .global __syscall 40 __syscall: 41 FUNCTION_BEGIN(__syscall) 41 42 alloc r14 = ar.pfs, 7, 0, 0, 0 ;; 42 43 break SYSCALL_IMM 43 44 mov ar.pfs = r14 ;; 44 45 br.ret.sptk.many b0 46 FUNCTION_END(__syscall) 47 -
uspace/lib/c/arch/ia64/src/thread_entry.S
r054476d r27f67f5 27 27 # 28 28 29 #include <abi/asmtool.h> 30 29 31 .text 30 31 .globl __thread_entry32 32 33 33 ## User-space thread entry point for all but the first threads. 34 34 # 35 35 # 36 __thread_entry: 36 SYMBOL(__thread_entry) 37 37 alloc loc0 = ar.pfs, 0, 1, 1, 0 38 38 … … 49 49 # Not reached. 50 50 # 51 52 .end __thread_entry 51
Note:
See TracChangeset
for help on using the changeset viewer.