From b60401ea8fc3d59c3adda530e995fc04ee7cf457 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Mon, 16 Jul 2012 13:38:57 +0800 Subject: [PATCH] KernelLand - Fixing issues compiling ARMv7 --- KernelLand/Kernel/Makefile | 2 +- KernelLand/Modules/Display/VIAVideo/main.c | 4 ++-- KernelLand/Modules/Filesystems/RAMDisk/ramdisk.c | 6 +++--- KernelLand/Modules/IPStack/adapters.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/KernelLand/Kernel/Makefile b/KernelLand/Kernel/Makefile index e391f03c..aecab40a 100644 --- a/KernelLand/Kernel/Makefile +++ b/KernelLand/Kernel/Makefile @@ -106,7 +106,7 @@ $(BIN): $(OBJ) $(MODS) arch/$(ARCHDIR)/link.ld Makefile ../../BuildConf/$(ARCH)/ @echo BUILD_NUM = $$(( $(BUILD_NUM) + 1 )) > Makefile.BuildNum.$(ARCH) $(POSTBUILD) @cp $(BIN) $(BIN)_ - @$(STRIP) $(BIN)_ + @-$(STRIP) $(BIN)_ @gzip -c $(BIN)_ > $(GZBIN) @$(RM) $(BIN)_ diff --git a/KernelLand/Modules/Display/VIAVideo/main.c b/KernelLand/Modules/Display/VIAVideo/main.c index 1291113c..30844eba 100644 --- a/KernelLand/Modules/Display/VIAVideo/main.c +++ b/KernelLand/Modules/Display/VIAVideo/main.c @@ -24,8 +24,8 @@ const struct sVGA_Timings int HFP, HSync, HDisplay, HBP; int VFP, VSync, VDisplay, VBP; } csaTimings[] = { - {40, 128, 800, 88, 1, 4, 600, 23}, // SVGA @ 60Hz - {24, 136, 1024, 160, 3, 6, 768, 29}, // XGA @ 60Hz + {40, 128, 800, 88, 1, 4, 600, 23}, // SVGA @ 60Hz + {24, 136, 1024, 160, 3, 6, 768, 29}, // XGA @ 60Hz {38, 112, 1280, 248, 1, 3, 1024, 38} // 1280x1024 @ 60Hz }; const Uint16 caVIAVideo_CardIDs[][2] = { diff --git a/KernelLand/Modules/Filesystems/RAMDisk/ramdisk.c b/KernelLand/Modules/Filesystems/RAMDisk/ramdisk.c index adfc38a0..defa50b4 100644 --- a/KernelLand/Modules/Filesystems/RAMDisk/ramdisk.c +++ b/KernelLand/Modules/Filesystems/RAMDisk/ramdisk.c @@ -16,7 +16,7 @@ // === PROTOTYPES === int RAMFS_Install(char **Arguments); -void RAMFS_Cleanup(void); + int RAMFS_Cleanup(void); // --- Mount/Unmount --- tVFS_Node *RAMFS_InitDevice(const char *Device, const char **Options); void RAMFS_Unmount(tVFS_Node *Node); @@ -65,9 +65,9 @@ int RAMFS_Install(char **Arguments) return 0; } -void RAMFS_Cleanup(void) +int RAMFS_Cleanup(void) { - + return 0; } diff --git a/KernelLand/Modules/IPStack/adapters.c b/KernelLand/Modules/IPStack/adapters.c index 90c0b245..58e503c0 100644 --- a/KernelLand/Modules/IPStack/adapters.c +++ b/KernelLand/Modules/IPStack/adapters.c @@ -344,7 +344,7 @@ void IPStack_SendDebugText(const char *Text) if( CPU_HAS_LOCK(&lLock) ) return ; // Nested! SHORTLOCK(&lLock); - __asm__ __volatile__ ("sti"); // Start interrupts (x86 specific) +// __asm__ __volatile__ ("sti"); // Start interrupts (x86 specific) // Cache packets until a newline static char cache[1500 - (sizeof(pkt_hdr) + 4)]; -- 2.20.1