- Timestamp:
- 2016-04-24T08:00:09Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 38ad239
- Parents:
- 0407636
- Location:
- uspace/lib/c/arch/ppc32
- Files:
-
- 3 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/ppc32/Makefile.inc
r0407636 rb66cc97 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.c \ 34 34 arch/$(UARCH)/src/fibril.S \ -
uspace/lib/c/arch/ppc32/src/entry.S
r0407636 rb66cc97 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 # r6 contains the PCB pointer 38 38 # 39 __entry: 39 SYMBOL(__entry) 40 40 # 41 41 # Create the first stack frame. -
uspace/lib/c/arch/ppc32/src/entryjmp.S
r0407636 rb66cc97 27 27 # 28 28 29 .globl entry_point_jmp 29 #include <abi/asmtool.h> 30 30 31 31 ## void entry_point_jmp(void *entry_point, void *pcb); … … 35 35 # 36 36 # Jump to program entry point 37 entry_point_jmp: 37 FUNCTION_BEGIN(entry_point_jmp) 38 38 mtctr %r3 39 39 mr %r6, %r4 # Pass pcb to the entry point in %r6 40 40 bctr 41 FUNCTION_END(entry_point_jmp) -
uspace/lib/c/arch/ppc32/src/fibril.S
r0407636 rb66cc97 29 29 .text 30 30 31 .global context_save 32 .global context_restore 33 31 #include <abi/asmtool.h> 34 32 #include <libarch/regname.h> 35 33 #include <libarch/fibril_context.h> 36 34 37 context_save: 35 FUNCTION_BEGIN(context_save) 38 36 stw sp, CONTEXT_OFFSET_SP(r3) 39 37 stw r2, CONTEXT_OFFSET_TLS(r3) … … 67 65 li r3, 1 68 66 blr 67 FUNCTION_END(context_save) 69 68 70 71 context_restore: 69 FUNCTION_BEGIN(context_restore) 72 70 lwz sp, CONTEXT_OFFSET_SP(r3) 73 71 lwz r2, CONTEXT_OFFSET_TLS(r3) … … 101 99 li r3, 0 102 100 blr 101 FUNCTION_END(context_restore) -
uspace/lib/c/arch/ppc32/src/stacktrace_asm.S
r0407636 rb66cc97 29 29 .text 30 30 31 #include <abi/asmtool.h> 31 32 #include <libarch/regname.h> 32 33 33 .global stacktrace_prepare 34 .global stacktrace_fp_get 35 .global stacktrace_pc_get 34 FUNCTION_BEGIN(stacktrace_prepare) 35 blr 36 FUNCTION_END(stacktrace_prepare) 36 37 37 stacktrace_prepare: 38 blr 39 40 stacktrace_fp_get: 38 FUNCTION_BEGIN(stacktrace_fp_get) 41 39 mr r3, sp 42 40 blr 41 FUNCTION_END(stacktrace_fp_get) 43 42 44 stacktrace_pc_get: 43 FUNCTION_BEGIN(stacktrace_pc_get) 45 44 mflr r3 46 45 blr 46 FUNCTION_END(stacktrace_pc_get) -
uspace/lib/c/arch/ppc32/src/thread_entry.S
r0407636 rb66cc97 27 27 # 28 28 29 #include <abi/asmtool.h> 30 29 31 .text 30 32 31 .globl __thread_entry32 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 # 38 38 # Create the first stack frame. … … 44 44 b __thread_main 45 45 46 .end __thread_entry
Note:
See TracChangeset
for help on using the changeset viewer.