--- /dev/null
+#
+# Acess2 Host Native makefile
+# - Used for forcing the architecture
+#
+
+SAVED_CC_ := $(CC)
+SAVED_LD_ := $(LD)
+
+include $(ACESSDIR)/BuildConf/x86_64/Makefile.cfg
+
+OBJDUMP := objdump -S
+
+CC := $(SAVED_CC_)
+LD := $(SAVED_LD_)
+
+++ /dev/null
-#
-# Acess2 Host Native makefile
-# - Used for forcing the architecture
-#
-
-SAVED_CC_ := $(CC)
-SAVED_LD_ := $(LD)
-
-include $(ACESSDIR)/Makefile.x86_64.cfg
-
-OBJDUMP := objdump -S
-
-CC := $(SAVED_CC_)
-LD := $(SAVED_LD_)
-
--- /dev/null
+
+MODULES += Storage/ATA
+MODULES += Storage/FDDv2
+MODULES += Network/NE2000 Network/RTL8139
+MODULES += Display/VESA
+MODULES += Display/BochsGA
+MODULES += Input/PS2KbMouse
+MODULES += x86/ISADMA x86/VGAText
+MODULES += USB/Core USB/UHCI
LD = x86_64-none-elf-ld
DISASM = x86_64-none-elf-objdump -d -M x86-64 -S
-KERNEL_CFLAGS := -mcmodel=kernel -nostdlib -mno-red-zone -Wall -Werror
+KERNEL_CFLAGS := -mcmodel=kernel -nostdlib -mno-red-zone -Wall
DYNMOD_CFLAGS := -mcmodel=small -fPIC -mno-red-zone
ARCHDIR = x86_64
CPPFLAGS += -I./include -I./arch/$(ARCHDIR)/include -D_MODULE_NAME_=\"Kernel\"
CPPFLAGS += -DARCH=$(ARCH) -DARCHDIR=$(ARCHDIR) -DARCHDIR_IS_$(ARCHDIR)=1
CPPFLAGS += -DKERNEL_VERSION=$(KERNEL_VERSION)
-CFLAGS += -Wall -Werror -fno-stack-protector -Wstrict-prototypes -g
+CFLAGS += -Wall -fno-stack-protector -Wstrict-prototypes -g
CFLAGS += -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wuninitialized
CFLAGS += -O3
LDFLAGS += -T arch/$(ARCHDIR)/link.ld -g
CPPFLAGS += -DARCH=$(ARCH) -DARCH_is_$(ARCH) -DARCHDIR_is_$(ARCHDIR)
CPPFLAGS += $(_CPPFLAGS)
CPPFLAGS += $(LIBINCLUDES)
-CFLAGS := -std=gnu99 -Wall -Werror -fno-stack-protector -g -O3
+CFLAGS := -std=gnu99 -Wall -fno-stack-protector -g -O3
ifneq ($(CATEGORY),)
FULLNAME := $(CATEGORY)_$(NAME)
int disk = Disk & 1;
Uint16 base;
Sint64 timeoutTime;
- Uint8 val;
ENTER("iDisk XAddress iCount pBuffer", Disk, Address, Count, Buffer);
// Complete Transfer
ATA_int_BusMasterWriteByte( cont * 8, 8 ); // Read and stop
- val = inb(base+0x7);
- LOG("Status byte = 0x%02x, Controller Status = 0x%02x",
- val, ATA_int_BusMasterReadByte(cont * 8 + 2));
+ #if DEBUG
+ {
+ Uint8 val = inb(base+0x7);
+ LOG("Status byte = 0x%02x, Controller Status = 0x%02x",
+ val, ATA_int_BusMasterReadByte(cont * 8 + 2));
+ }
+ #else
+ inb(base+0x7);
+ #endif
if( gaATA_IRQs[cont] == 0 )
{