Changeset 4a8ed8a in mainline
- Timestamp:
- 2006-03-09T12:38:00Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ef54d3
- Parents:
- fbd6f81
- Location:
- libc/arch/ia64
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libc/arch/ia64/_link.ld.in
rfbd6f81 r4a8ed8a 4 4 5 5 SECTIONS { 6 .text 0x000 04000 : {6 .text 0x00010000 : { 7 7 *(.text) 8 8 *(.rodata .rodata.*) -
libc/arch/ia64/src/entry.s
rfbd6f81 r4a8ed8a 37 37 # 38 38 __entry: 39 br.call.sptk.many b0 = main 40 br.call.sptk.many b0 = __exit 39 mov r1 = __entry 40 { br.call.sptk.many b0 = main } 41 { br.call.sptk.many b0 = __exit } 41 42 42 43 .end __entry -
libc/arch/ia64/src/syscall.c
rfbd6f81 r4a8ed8a 29 29 #include <libc.h> 30 30 31 /** 32 * Immediate operand for break instruction. 33 * Be carefull about the value as Ski simulator 34 * is somewhat sensitive to its value. 35 * 36 * 0 will be confused with Ski breakpoint. 37 * And higher values will be confused with SSC's. 38 */ 39 #define SYSCALL_IMM 1 40 31 41 sysarg_t __syscall(const syscall_t id, const sysarg_t p1, const sysarg_t p2, const sysarg_t p3) 32 42 { … … 38 48 "mov r16 = %3\n" 39 49 "mov r17 = %4\n" 40 "break 0\n"50 "break %5\n" 41 51 "mov %0 = r8\n" 42 52 : "=r" (ret) 43 : "r" (id), "r" (p1), "r" (p2), "r" (p3) 53 : "r" (id), "r" (p1), "r" (p2), "r" (p3), "i" (SYSCALL_IMM) 44 54 : "r8", "r14", "r15", "r16" 45 55 );
Note:
See TracChangeset
for help on using the changeset viewer.