Modules/PS2KbMouse - Fixed 8042 not being initialised
authorJohn Hodge <[email protected]>
Wed, 5 Oct 2011 04:09:08 +0000 (12:09 +0800)
committerJohn Hodge <[email protected]>
Wed, 5 Oct 2011 04:09:08 +0000 (12:09 +0800)
Modules/Input/PS2KbMouse/8042.c
Modules/Input/PS2KbMouse/main.c
Modules/Makefile.tpl

index fd78bb6..e11bc74 100644 (file)
@@ -38,6 +38,8 @@ void KBC8042_KeyboardHandler(int IRQ, void *Ptr)
 {
        Uint8   scancode;
 
+//     Log("KBC8042_KeyboardHandler: (IRQ=%i, Ptr=%p)", IRQ, Ptr);
+
        scancode = inb(0x60);
        KB_HandleScancode( scancode );
 }
index 7a2b83d..0015b93 100644 (file)
@@ -36,10 +36,10 @@ MODULE_DEFINE(0, 0x0100, PS2Mouse, PS2Mouse_Install, NULL, NULL);
 // === CODE ===
 int PS2_Install(char **Arguments)
 {
-       #if ARCH_is_x86 || ARCH_is_x86_64
+       #if ARCHDIR_is_x86 || ARCHDIR_is_x86_64
        KBC8042_Init();
        gpMouse_EnableFcn = KBC8042_EnableMouse;
-       #elif ARCH_is_armv7
+       #elif ARCHDIR_is_armv7
        PL050_Init(KEYBOARD_IRQ, KEYBOARD_IRQ, MOUSE_BASE, MOUSE_IRQ);
        gpMouse_EnableFcn = PL050_EnableMouse;
        #endif
index b404046..36445f6 100644 (file)
@@ -6,7 +6,13 @@ _CPPFLAGS := $(CPPFLAGS)
 
 -include $(dir $(lastword $(MAKEFILE_LIST)))../Makefile.cfg
 
-CPPFLAGS := -I$(ACESSDIR)/Kernel/include -I$(ACESSDIR)/Kernel/arch/$(ARCHDIR)/include -DARCH=$(ARCH) $(_CPPFLAGS)
+LIBINCLUDES := $(addprefix -I$(ACESSDIR)/Modules/Libraries/,$(LIBS))
+LIBINCLUDES := $(addsuffix /include,$(LIBINCLUDES))
+
+CPPFLAGS := -I$(ACESSDIR)/Kernel/include -I$(ACESSDIR)/Kernel/arch/$(ARCHDIR)/include
+CPPFLAGS += -DARCH=$(ARCH) -DARCH_is_$(ARCH) -DARCHDIR_is_$(ARCHDIR)
+CPPFLAGS += $(_CPPFLAGS)
+CPPFLAGS += $(LIBINCLUDES)
 CFLAGS := -std=gnu99 -Wall -Werror -fno-stack-protector -g -O3 -fno-builtin
 
 ifneq ($(CATEGORY),)

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