Fixing up misc x86-64 bugs
authorJohn Hodge <[email protected]>
Thu, 24 May 2012 14:01:53 +0000 (22:01 +0800)
committerJohn Hodge <[email protected]>
Thu, 24 May 2012 14:01:53 +0000 (22:01 +0800)
BuildConf/x86_64/default.mk
KernelLand/Kernel/bin/elf.c
Makefile
Usermode/Libraries/ld-acess.so_src/include_exp/acess/sys.h

index 2afabe8..51960b0 100644 (file)
@@ -1,8 +1,5 @@
 
-MODULES += Storage/ATA
-MODULES += Storage/FDDv2
-MODULES += Network/NE2000 Network/RTL8139
-MODULES += Display/BochsGA
-MODULES += Interfaces/UDI
-MODULES += Input/PS2KbMouse
-MODULES += x86/ISADMA x86/VGAText
+include $(ACESSDIR)/BuildConf/x86/default.mk
+
+MODULES := $(filter-out Display/VESA,$(MODULES))
+
index 31178e3..16da915 100644 (file)
@@ -13,12 +13,6 @@ void *GetSymbol(const char *Name, size_t *Size);
 void   *GetSymbol(const char *Name, size_t *Size) { Uint val; Binary_GetSymbol(Name, &val); if(Size)*Size=0; return (void*)val; };\r
 #define AddLoaded(a,b) do{}while(0)\r
 #define LoadLibrary(a,b,c)     0\r
-#if __STDC_HOSTED__\r
-#warning "Hosted? why!"\r
-#else\r
-#warning "freestanding - outstanding!"\r
-#endif\r
-\r
 #include "../../../Usermode/Libraries/ld-acess.so_src/elf.c"\r
 \r
 #define DEBUG_WARN     1\r
index 54d0e16..887db20 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -98,6 +98,10 @@ $(CLEAN_USRAPPS): clean-%:
        +@$(SUBMAKE) clean -C Usermode/Applications/$*_src
 
 # Install
+ifeq ($(ARCH),host)
+install-%:
+       
+else
 $(INSTALL_DYNMODS): install-%:
        @$(_build_dynmod)$* install
 $(INSTALL_MODULES): install-%:
@@ -110,3 +114,4 @@ $(INSTALL_USRLIBS): install-%:
        @$(SUBMAKE) install -C Usermode/Libraries/$*_src
 $(INSTALL_USRAPPS): install-%:
        @$(SUBMAKE) install -C Usermode/Applications/$*_src
+endif
index e91ffb6..368f2cc 100644 (file)
@@ -76,7 +76,7 @@ extern int    readdir(int fd, char *dest);
 extern int     _SysOpenChild(int fd, char *name, int flags);
 extern int     _SysGetACL(int fd, t_sysACL *dest);
 extern int     _SysMount(const char *Device, const char *Directory, const char *Type, const char *Options);
-extern int     _SysSelect(int nfds, fd_set *read, fd_set *write, fd_set *err, time_t *timeout, int extraevents);
+extern int     _SysSelect(int nfds, fd_set *read, fd_set *write, fd_set *err, int64_t *timeout, unsigned int extraevents);
 #define select(nfs, rdfds, wrfds, erfds, timeout)      _SysSelect(nfs, rdfds, wrfds, erfds, timeout, 0)
 
 // --- IPC ---

UCC git Repository :: git.ucc.asn.au