Changeset 25f9823 in mainline
- Timestamp:
- 2006-05-17T21:52:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2b399cc
- Parents:
- 04552a80
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
fb/Makefile
r04552a80 r25f9823 61 61 62 62 $(OUTPUT): $(OBJECTS) $(LIBS) 63 $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map63 $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld -e __entry_driver $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 64 64 65 65 disasm: -
kbd/Makefile
r04552a80 r25f9823 68 68 69 69 $(OUTPUT): $(ARCH_OBJECTS) $(GENERIC_OBJECTS) $(LIBS) 70 $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(GENERIC_OBJECTS) $(ARCH_OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map70 $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld -e __entry_driver $(GENERIC_OBJECTS) $(ARCH_OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 71 71 72 72 disasm: -
libc/arch/amd64/src/entry.s
r04552a80 r25f9823 32 32 33 33 .globl __entry 34 .globl __entry_driver 34 35 35 36 ## User-space task entry point … … 38 39 __entry: 39 40 call __main 41 call __io_init 40 42 call main 41 43 call __exit 42 43 .end __entry 44 45 __entry_driver: 46 call __main 47 call main 48 call __exit -
libc/arch/ia32/src/entry.s
r04552a80 r25f9823 32 32 33 33 .globl __entry 34 .globl __entry_driver 34 35 35 36 ## User-space task entry point … … 43 44 # Do not set %gs, it contains descriptor that can see TLS 44 45 45 call __main 46 call __main 47 call __io_init 46 48 call main 47 49 call __exit 48 50 49 .end __entry 51 __entry_driver: 52 mov %ss, %ax 53 mov %ax, %ds 54 mov %ax, %es 55 mov %ax, %fs 56 # Do not set %gs, it contains descriptor that can see TLS 57 58 call __main 59 call main 60 call __exit -
libc/arch/ia64/src/entry.s
r04552a80 r25f9823 32 32 33 33 .globl __entry 34 .globl __entry_driver 34 35 35 36 ## User-space task entry point … … 40 41 mov r1 = _gp 41 42 { br.call.sptk.many b0 = __main } 43 { br.call.sptk.many b0 = __io_init } 42 44 { br.call.sptk.many b0 = main } 43 45 { br.call.sptk.many b0 = __exit } 44 45 .end __entry 46 47 __entry_driver: 48 alloc loc0 = ar.pfs, 0, 1, 2, 0 49 mov r1 = _gp 50 { br.call.sptk.many b0 = __main } 51 { br.call.sptk.many b0 = main } 52 { br.call.sptk.many b0 = __exit } -
libc/arch/mips32/_link.ld.in
r04552a80 r25f9823 1 1 STARTUP(../libc/arch/ARCH/src/entry.o) 2 ENTRY(__ start)2 ENTRY(__entry) 3 3 4 4 PHDRS { -
libc/arch/mips32/src/entry.s
r04552a80 r25f9823 29 29 .text 30 30 .section .init, "ax" 31 .global __start 31 .global __entry 32 .global __entry_driver 32 33 .set noreorder 33 34 .option pic2 … … 36 37 # 37 38 # 38 .ent __start 39 __start: 39 .ent __entry 40 __entry: 41 .frame $sp, 32, $31 42 .cpload $25 43 44 45 # Mips o32 may store its arguments on stack, make space (16 bytes), 46 # so that it could work with -O0 47 # Make space additional 16 bytes for the stack frame 48 49 addiu $sp, -32 50 .cprestore 16 # Allow PIC code 51 52 jal __main 53 nop 54 55 jal __io_init 56 nop 57 58 jal main 59 nop 60 61 jal __exit 62 nop 63 64 .ent __entry_driver 65 __entry_driver: 40 66 .frame $sp, 32, $31 41 67 .cpload $25 … … 57 83 jal __exit 58 84 nop 59 60 .end __start61 85 62 86 # Alignment of output section data to 0x4000 -
libc/arch/ppc32/src/entry.s
r04552a80 r25f9823 32 32 33 33 .globl __entry 34 .globl __entry_driver 34 35 35 36 ## User-space task entry point … … 37 38 # 38 39 __entry: 39 bl __main 40 bl __main 41 bl __io_init 40 42 bl main 41 43 bl __exit 42 43 .end __entry 44 45 __entry_driver: 46 bl __main 47 bl main 48 bl __exit -
libc/generic/libc.c
r04552a80 r25f9823 46 46 psthread_setup(tcb); 47 47 _ipc_init(); 48 48 } 49 50 void __io_init(void) { 49 51 open("stdin", 0); 50 52 open("stdout", 0); -
ns/Makefile
r04552a80 r25f9823 59 59 60 60 $(OUTPUT): $(OBJECTS) $(LIBS) 61 $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map61 $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld -e __entry_driver $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 62 62 63 63 disasm: -
pci/Makefile
r04552a80 r25f9823 61 61 $(OUTPUT): $(OBJECTS) $(LIBS) 62 62 $(MAKE) -C libpci 63 $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld 63 $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map 64 64 65 65 disasm:
Note:
See TracChangeset
for help on using the changeset viewer.