Changeset 0407636 in mainline for uspace/lib/c
- Timestamp:
- 2016-04-24T07:30:53Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b66cc97
- Parents:
- a52e2f4
- Location:
- uspace/lib/c/arch/mips32/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/mips32/src/entry.S
ra52e2f4 r0407636 27 27 # 28 28 29 #include <abi/asmtool.h> 29 30 #include <libarch/stack.h> 30 31 31 32 .text 32 33 .section .init, "ax" 33 34 .global __entry35 34 36 35 .set noreorder … … 41 40 # $a0 ($4) contains the PCB pointer 42 41 # 43 .ent __entry 44 __entry: 42 FUNCTION_BEGIN(__entry) 43 .ent __entry 45 44 .frame $sp, ABI_STACK_FRAME, $ra 46 45 .cpload $t9 … … 63 62 # 64 63 addiu $sp, ABI_STACK_FRAME 65 .end __entry 64 FUNCTION_END(__entry) -
uspace/lib/c/arch/mips32/src/entryjmp.S
ra52e2f4 r0407636 27 27 # 28 28 29 #include <abi/asmtool.h> 29 30 #include <libarch/stack.h> 30 31 31 32 .text 32 33 .section .text 33 .global entry_point_jmp34 34 .set noreorder 35 35 … … 40 40 # 41 41 # Jump to program entry point 42 .ent entry_point_jmp 43 entry_point_jmp: 42 FUNCTION_BEGIN(entry_point_jmp) 44 43 # tmp := entry_point 45 44 move $t9, $a0 … … 51 50 addiu $sp, -ABI_STACK_FRAME 52 51 addiu $sp, ABI_STACK_FRAME 53 .end entry_point_jmp 52 FUNCTION_END(entry_point_jmp) 53 -
uspace/lib/c/arch/mips32/src/fibril.S
ra52e2f4 r0407636 32 32 .set noreorder 33 33 34 #include <abi/asmtool.h> 34 35 #include <libarch/fibril_context.h> 35 36 36 .global context_save 37 .global context_restore 38 39 context_save: 37 FUNCTION_BEGIN(context_save) 40 38 sw $s0, CONTEXT_OFFSET_S0($a0) 41 39 sw $s1, CONTEXT_OFFSET_S1($a0) … … 92 90 j $ra 93 91 li $v0, 1 92 FUNCTION_END(context_save) 94 93 95 context_restore: 94 FUNCTION_BEGIN(context_restore) 96 95 lw $s0, CONTEXT_OFFSET_S0($a0) 97 96 lw $s1, CONTEXT_OFFSET_S1($a0) … … 151 150 j $ra 152 151 xor $v0, $v0 152 FUNCTION_END(context_restore) -
uspace/lib/c/arch/mips32/src/stacktrace_asm.S
ra52e2f4 r0407636 27 27 # 28 28 29 #include <abi/asmtool.h> 30 29 31 .text 30 32 … … 32 34 .set noreorder 33 35 34 .global stacktrace_prepare 35 .global stacktrace_fp_get 36 .global stacktrace_pc_get 37 38 stacktrace_prepare: 39 stacktrace_fp_get: 40 stacktrace_pc_get: 36 FUNCTION_BEGIN(stacktrace_prepare) 37 FUNCTION_BEGIN(stacktrace_fp_get) 38 FUNCTION_BEGIN(stacktrace_pc_get) 41 39 j $ra 42 40 xor $v0, $v0 41 FUNCTION_END(stacktrace_prepare) 42 FUNCTION_END(stacktrace_fp_get) 43 FUNCTION_END(stacktrace_pc_get) -
uspace/lib/c/arch/mips32/src/thread_entry.S
ra52e2f4 r0407636 27 27 # 28 28 29 #include <abi/asmtool.h> 29 30 #include <libarch/stack.h> 30 31 … … 35 36 .option pic2 36 37 37 .globl __thread_entry38 39 38 ## User-space thread entry point for all but the first threads. 40 39 # 41 40 # 42 .ent __thread_entry 43 __thread_entry: 41 SYMBOL(__thread_entry) 42 .ent __thread_entry 44 43 .frame $sp, ABI_STACK_FRAME, $ra 45 44 .cpload $t9 … … 63 62 # 64 63 addiu $sp, ABI_STACK_FRAME 65 .end __thread_entry
Note:
See TracChangeset
for help on using the changeset viewer.