Changeset 40cb845e in mainline
- Timestamp:
- 2009-12-30T19:21:45Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a7a0417
- Parents:
- 26b50cb (diff), f0452536 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- uspace
- Files:
-
- 11 added
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/Makefile.build
r26b50cb r40cb845e 49 49 fault/fault1.c \ 50 50 fault/fault2.c \ 51 fault/fault3.c \ 51 52 vfs/vfs1.c \ 52 53 ipc/ping_pong.c \ -
uspace/app/tester/tester.c
r26b50cb r40cb845e 56 56 #include "fault/fault1.def" 57 57 #include "fault/fault2.def" 58 #include "fault/fault3.def" 58 59 #include "vfs/vfs1.def" 59 60 #include "ipc/ping_pong.def" -
uspace/app/tester/tester.h
r26b50cb r40cb845e 73 73 extern char *test_fault1(void); 74 74 extern char *test_fault2(void); 75 extern char *test_fault3(void); 75 76 extern char *test_vfs1(void); 76 77 extern char *test_ping_pong(void); -
uspace/lib/libc/Makefile.build
r26b50cb r40cb845e 87 87 generic/udebug.c \ 88 88 generic/vfs/vfs.c \ 89 generic/vfs/canonify.c 89 generic/vfs/canonify.c \ 90 generic/stacktrace.c 90 91 91 92 ARCH_SOURCES += \ -
uspace/lib/libc/arch/amd64/Makefile.inc
r26b50cb r40cb845e 36 36 ARCH_SOURCES += arch/$(UARCH)/src/syscall.S \ 37 37 arch/$(UARCH)/src/fibril.S \ 38 arch/$(UARCH)/src/tls.c 38 arch/$(UARCH)/src/tls.c \ 39 arch/$(UARCH)/src/stacktrace.S 39 40 41 GCC_CFLAGS += -fno-omit-frame-pointer 40 42 LFLAGS += -N 41 43 -
uspace/lib/libc/arch/amd64/include/fibril.h
r26b50cb r40cb845e 44 44 #define SP_DELTA 16 45 45 46 #define context_set(c, _pc, stack, size, ptls) \ 47 do { \ 48 (c)->pc = (sysarg_t) (_pc); \ 49 (c)->sp = ((sysarg_t) (stack)) + (size) - SP_DELTA; \ 50 (c)->tls = (sysarg_t) (ptls); \ 51 (c)->rbp = 0; \ 52 } while (0) 53 46 54 /* We include only registers that must be preserved 47 55 * during function call -
uspace/lib/libc/arch/amd64/src/entry.s
r26b50cb r40cb845e 38 38 # 39 39 __entry: 40 # 41 # Create the first stack frame. 42 # 43 pushq $0 44 mov %rsp, %rbp 45 40 46 # %rdi was deliberately chosen as the first argument is also in %rdi 41 47 # Pass PCB pointer to __main (no operation) -
uspace/lib/libc/arch/amd64/src/thread_entry.s
r26b50cb r40cb845e 36 36 __thread_entry: 37 37 # 38 # Create the first stack frame. 39 # 40 pushq $0 41 movq %rsp, %rbp 42 43 # 38 44 # RAX contains address of uarg 39 45 # -
uspace/lib/libc/arch/arm32/Makefile.inc
r26b50cb r40cb845e 37 37 arch/$(UARCH)/src/fibril.S \ 38 38 arch/$(UARCH)/src/tls.c \ 39 arch/$(UARCH)/src/eabi.S 39 arch/$(UARCH)/src/eabi.S \ 40 arch/$(UARCH)/src/stacktrace.S 40 41 41 42 GCC_CFLAGS += -ffixed-r9 -mtp=soft -
uspace/lib/libc/arch/ia32/Makefile.inc
r26b50cb r40cb845e 37 37 arch/$(UARCH)/src/fibril.S \ 38 38 arch/$(UARCH)/src/tls.c \ 39 arch/$(UARCH)/src/setjmp.S 39 arch/$(UARCH)/src/setjmp.S \ 40 arch/$(UARCH)/src/stacktrace.S 40 41 41 42 GCC_CFLAGS += -march=pentium -
uspace/lib/libc/arch/ia32/include/fibril.h
r26b50cb r40cb845e 44 44 #define SP_DELTA (12) 45 45 46 #define context_set(c, _pc, stack, size, ptls) \ 47 do { \ 48 (c)->pc = (sysarg_t) (_pc); \ 49 (c)->sp = ((sysarg_t) (stack)) + (size) - SP_DELTA; \ 50 (c)->tls = (sysarg_t) (ptls); \ 51 (c)->ebp = 0; \ 52 } while (0) 53 46 54 /* We include only registers that must be preserved 47 55 * during function call -
uspace/lib/libc/arch/ia32/src/entry.s
r26b50cb r40cb845e 55 55 movl $__syscall_fast, (%eax) 56 56 0: 57 # 58 # Create the first stack frame. 59 # 60 pushl $0 61 movl %esp, %ebp 57 62 58 63 # Pass the PCB pointer to __main as the first argument -
uspace/lib/libc/arch/ia32/src/thread_entry.s
r26b50cb r40cb845e 42 42 43 43 # 44 # Create the first stack frame. 45 # 46 pushl $0 47 mov %esp, %ebp 48 49 # 44 50 # EAX contains address of uarg. 45 51 # -
uspace/lib/libc/arch/ia64/Makefile.inc
r26b50cb r40cb845e 36 36 arch/$(UARCH)/src/fibril.S \ 37 37 arch/$(UARCH)/src/tls.c \ 38 arch/$(UARCH)/src/ddi.c 38 arch/$(UARCH)/src/ddi.c \ 39 arch/$(UARCH)/src/stacktrace.S 39 40 40 41 GCC_CFLAGS += -fno-unwind-tables -
uspace/lib/libc/arch/mips32/Makefile.inc
r26b50cb r40cb845e 35 35 ARCH_SOURCES += arch/$(UARCH)/src/syscall.c \ 36 36 arch/$(UARCH)/src/fibril.S \ 37 arch/$(UARCH)/src/tls.c 37 arch/$(UARCH)/src/tls.c \ 38 arch/$(UARCH)/src/stacktrace.S 38 39 39 40 GCC_CFLAGS += -mips3 -
uspace/lib/libc/arch/ppc32/Makefile.inc
r26b50cb r40cb845e 35 35 ARCH_SOURCES += arch/$(UARCH)/src/syscall.c \ 36 36 arch/$(UARCH)/src/fibril.S \ 37 arch/$(UARCH)/src/tls.c 37 arch/$(UARCH)/src/tls.c \ 38 arch/$(UARCH)/src/stacktrace.S 38 39 39 40 GCC_CFLAGS += -mcpu=powerpc -msoft-float -m32 -
uspace/lib/libc/arch/sparc64/Makefile.inc
r26b50cb r40cb845e 34 34 35 35 ARCH_SOURCES += arch/$(UARCH)/src/fibril.S \ 36 arch/$(UARCH)/src/tls.c 36 arch/$(UARCH)/src/tls.c \ 37 arch/$(UARCH)/src/stacktrace.S 37 38 38 39 GCC_CFLAGS += -mcpu=ultrasparc -m64 -
uspace/lib/libc/arch/sparc64/include/fibril.h
r26b50cb r40cb845e 46 46 #endif 47 47 48 #define context_set(c, _pc, stack, size, ptls) \ 49 (c)->pc = ((uintptr_t) _pc) - 8; \ 50 (c)->sp = ((uintptr_t) stack) + ALIGN_UP((size), \ 51 STACK_ALIGNMENT) - (STACK_BIAS + SP_DELTA); \ 52 (c)->fp = -STACK_BIAS; \ 53 (c)->tp = ptls 48 #define context_set(c, _pc, stack, size, ptls) \ 49 do { \ 50 (c)->pc = ((uintptr_t) _pc) - 8; \ 51 (c)->sp = ((uintptr_t) stack) + ALIGN_UP((size), \ 52 STACK_ALIGNMENT) - (STACK_BIAS + SP_DELTA); \ 53 (c)->fp = -STACK_BIAS; \ 54 (c)->tp = ptls; \ 55 } while (0) 54 56 55 57 /* -
uspace/lib/libc/arch/sparc64/src/entry.s
r26b50cb r40cb845e 39 39 # 40 40 __entry: 41 # 42 # Create the first stack frame. 43 # 44 save %sp, -176, %sp 45 flushw 46 add %g0, -0x7ff, %fp 47 41 48 # Pass pcb_ptr as the first argument to __main() 42 mov % o1, %o049 mov %i1, %o0 43 50 sethi %hi(_gp), %l7 44 51 call __main -
uspace/lib/libc/arch/sparc64/src/thread_entry.s
r26b50cb r40cb845e 35 35 # 36 36 __thread_entry: 37 # 38 # Create the first stack frame. 39 # 40 save %sp, -176, %sp 41 flushw 42 add %g0, -0x7ff, %fp 43 37 44 sethi %hi(_gp), %l7 38 45 call __thread_main ! %o0 contains address of uarg -
uspace/lib/libc/include/stdlib.h
r26b50cb r40cb845e 38 38 #include <unistd.h> 39 39 #include <malloc.h> 40 #include <stacktrace.h> 40 41 41 #define abort() _exit(1) 42 #define abort() \ 43 do { \ 44 stack_trace(); \ 45 _exit(1); \ 46 } while (0) 47 42 48 #define exit(status) _exit((status)) 43 49
Note:
See TracChangeset
for help on using the changeset viewer.