Changeset b419162 in mainline
- Timestamp:
- 2006-03-13T19:37:24Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7fc78da
- Parents:
- a3aa1e1
- Files:
-
- 3 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
ra3aa1e1 rb419162 34 34 DIRS = \ 35 35 libc \ 36 libipc \ 36 37 init \ 37 38 softfloat -
init/Makefile
ra3aa1e1 rb419162 31 31 32 32 LIBC_PREFIX = ../libc 33 LIBIPC_PREFIX = ../libipc 33 34 include $(LIBC_PREFIX)/Makefile.toolchain 35 36 CFLAGS += -I../libipc/include 34 37 35 38 ## Sources … … 56 59 57 60 $(OUTPUT): $(OBJECTS) 58 $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(LFLAGS) $(OBJECTS) $(LIBC_PREFIX)/libc.a -o $@ -Map $(OUTPUT).map61 $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(LFLAGS) $(OBJECTS) $(LIBC_PREFIX)/libc.a $(LIBIPC_PREFIX)/libipc.a -o $@ -Map $(OUTPUT).map 59 62 60 63 disasm: -
init/init.c
ra3aa1e1 rb419162 28 28 29 29 #include "version.h" 30 #include <ipc.h> 30 31 31 32 int main(int argc, char *argv[]) 32 33 { 33 34 version_print(); 35 36 ipc_call_sync(0, 1, 2); 37 34 38 return 0; 35 39 } -
libc/Makefile
ra3aa1e1 rb419162 50 50 ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES))) 51 51 52 .PHONY: all clean depend 52 .PHONY: all clean depend kerninc 53 53 54 all: libc.a arch/$(ARCH)/_link.ld 54 all: kerninc libc.a arch/$(ARCH)/_link.ld 55 56 kerninc: 57 ln -sf ../../../kernel/generic/include include/kernel 55 58 56 59 -include Makefile.depend 57 60 58 61 clean: 59 -rm -f libc.a arch/$(ARCH)/_link.ld Makefile.depend62 -rm -f include/kernel libc.a arch/$(ARCH)/_link.ld Makefile.depend 60 63 find generic/ arch/$(ARCH)/ -name '*.o' -follow -exec rm \{\} \; 61 64 -
libc/arch/mips32/src/syscall.c
ra3aa1e1 rb419162 29 29 #include <libc.h> 30 30 31 sysarg_t __syscall(const syscall_t id, const sysarg_t p1, const sysarg_t p2, const sysarg_t p3) 31 sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2, 32 const sysarg_t p3, const syscall_t id) 32 33 { 33 34 register sysarg_t __mips_reg_a0 asm("$4") = p1; -
libc/generic/io.c
ra3aa1e1 rb419162 48 48 ssize_t write(int fd, const void * buf, size_t count) 49 49 { 50 return (ssize_t) __ syscall(SYS_IO, (sysarg_t) fd, (sysarg_t) buf, (sysarg_t) count);50 return (ssize_t) __SYSCALL3(SYS_IO, (sysarg_t) fd, (sysarg_t) buf, (sysarg_t) count); 51 51 } -
libc/include/libc.h
ra3aa1e1 rb419162 32 32 #include <types.h> 33 33 34 #include <kernel/syscall/syscall.h> 34 35 35 #define __SYSCALL0(id) __syscall(id, 0, 0, 0) 36 #define __SYSCALL1(id, p1) __syscall(id, p1, 0, 0) 37 #define __SYSCALL2(id, p1, p2) __syscall(id, p1, p2, 0) 38 39 40 typedef enum { 41 SYS_CTL = 0, 42 SYS_IO = 1 43 } syscall_t; 44 36 #define __SYSCALL0(id) __syscall(0, 0, 0, id) 37 #define __SYSCALL1(id, p1) __syscall(p1, 0, 0, id) 38 #define __SYSCALL2(id, p1, p2) __syscall(p1, p2, 0, id) 39 #define __SYSCALL3(id, p1, p2, p3) __syscall(p1,p2,p3,id) 45 40 46 41 extern void __main(void); 47 42 extern void __exit(void); 48 extern sysarg_t __syscall(const syscall_t id, const sysarg_t p1, const sysarg_t p2, const sysarg_t p3); 43 extern sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2, 44 const sysarg_t p3, const syscall_t id); 49 45 50 46 -
uspace.config
ra3aa1e1 rb419162 3 3 # Architecture 4 4 @ "ia32" Intel IA-32 5 @ "amd64" AMD64/Intel EM64T 5 6 @ "ia64" Intel IA-64 6 @ "amd64" AMD64/Intel EM64T7 7 @ "mips32" MIPS 32-bit Little Endian 8 8 @ "mips32eb" MIPS 32-bit Big Endian
Note:
See TracChangeset
for help on using the changeset viewer.