Changeset 378
- Timestamp:
- 05/01/08 13:14:39 (7 months ago)
- Location:
- Whitix/branches/hybrid
- Files:
-
- 5 added
- 8 modified
-
Makefile (modified) (1 diff)
-
include/elf.h (modified) (2 diffs)
-
include/sys.h (modified) (1 diff)
-
kernel/Makefile (modified) (1 diff)
-
kernel/module.c (added)
-
kernel/sys.c (modified) (1 diff)
-
user/Makefile (modified) (3 diffs)
-
user/librtl/sysdefs.h (modified) (1 diff)
-
user/system (added)
-
user/system/Makefile (added)
-
user/system/moduleadd.c (added)
-
user/system/testm.c (added)
-
user/xynth/src/widget/widgetr/widgetr (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/hybrid/Makefile
r376 r378 18 18 19 19 all: cd 20 mkdir -p CdRoot CdRoot/Applications CdRoot/Mount CdRoot/System/Devices CdRoot/System/Include CdRoot/System/Runtime CdRoot/System/Runtime/C 20 mkdir -p CdRoot CdRoot/Applications CdRoot/Mount CdRoot/System/Devices CdRoot/System/Include CdRoot/System/Runtime CdRoot/System/Runtime/C CdRoot/System/Modules 21 21 make -C user install 22 22 mkisofs -o cd.iso -b Boot/isoboot -no-emul-boot -c Boot/boot.cat -boot-load-size 4 -boot-info-table -iso-level 3 -l CdRoot -
Whitix/branches/hybrid/include/elf.h
r7 r378 48 48 49 49 /* ELF file types */ 50 #define ELF_EXEC 2 51 #define ELF_DYN 3 50 #define ELF_REL 1 51 #define ELF_EXEC 2 52 #define ELF_DYN 3 52 53 53 54 /* ELF segment types */ … … 60 61 61 62 /* ElfCheckHeader - sanity checks the ELF header */ 62 #define ElfCheckHeader(header, type) \63 #define ElfCheckHeader(header, type) \ 63 64 (!ELF_HEAD_CHECK(header) || !((header)->fileType & (type)) || header->phEntrySize != sizeof(struct ElfSegmentHeader)) 64 65 -
Whitix/branches/hybrid/include/sys.h
r229 r378 92 92 int SysSocketClose(int fd); 93 93 94 /* Module */ 95 int SysModuleAdd(void* data, unsigned long length); 96 int SysModuleRemove(const char* name); 97 94 98 /* Miscellaneous */ 95 99 int SysShutdown(int type); -
Whitix/branches/hybrid/kernel/Makefile
r1 r378 2 2 include ../make.inc 3 3 4 OBJS = main.o sched.o sys.o load.o reboot.o timer.o panic.o wait.o 4 OBJS = main.o sched.o sys.o load.o reboot.o timer.o panic.o wait.o module.o 5 5 6 6 build: $(OBJS) -
Whitix/branches/hybrid/kernel/sys.c
r192 r378 83 83 (DWORD)&SysSocketClose, 84 84 85 /* Module syscalls */ 86 (DWORD)&SysModuleAdd, 87 (DWORD)&SysModuleRemove, 88 85 89 /* Other syscalls */ 86 90 (DWORD)&SysShutdown, -
Whitix/branches/hybrid/user/Makefile
r284 r378 7 7 make -C posix 8 8 make -C sdk 9 make -C system 9 10 10 11 #Applications … … 48 49 make -C sdk install 49 50 make -C posix install 51 make -C system install 50 52 51 53 #Applications … … 66 68 make -C sdk clean 67 69 make -C xynth clean 70 make -C system clean 68 71 make ports_clean -
Whitix/branches/hybrid/user/librtl/sysdefs.h
r230 r378 60 60 SYSCALL(50,int,SysSocketClose,4,(int fd)); 61 61 62 /* Module syscalls */ 63 SYSCALL(51, int, SysModuleAdd, 8, (void* data, unsigned int length)); 64 SYSCALL(52, int, SysModuleRemove, 4, (const char* name)); 65 62 66 /* Miscellaenous syscalls */ 63 SYSCALL(5 1,int,SysShutdown,4,(int));64 SYSCALL(5 2,int,SysIoAccess,4,(int on));67 SYSCALL(53,int,SysShutdown,4,(int)); 68 SYSCALL(54,int,SysIoAccess,4,(int on));
