Index: kernel/arch/amd64/Makefile.inc
===================================================================
--- kernel/arch/amd64/Makefile.inc	(revision f58321c4042bfd9cc85a70809296594c96a72565)
+++ kernel/arch/amd64/Makefile.inc	(revision 0e56eb1a15c7e636f2beb1a2d7ca2c425fec275f)
@@ -76,4 +76,10 @@
 DEFS += -DCONFIG_I8042
 
+## Compile with EGA support
+#
+
+CONFIG_EGA = y
+DEFS += -DCONFIG_EGA
+
 ## Accepted configuration directives
 #
@@ -97,5 +103,4 @@
 	arch/$(ARCH)/src/context.S \
 	arch/$(ARCH)/src/ddi/ddi.c \
-	arch/$(ARCH)/src/drivers/ega.c \
 	arch/$(ARCH)/src/drivers/vesa.c \
 	arch/$(ARCH)/src/drivers/i8254.c \
Index: kernel/arch/amd64/include/types.h
===================================================================
--- kernel/arch/amd64/include/types.h	(revision f58321c4042bfd9cc85a70809296594c96a72565)
+++ kernel/arch/amd64/include/types.h	(revision 0e56eb1a15c7e636f2beb1a2d7ca2c425fec275f)
@@ -58,4 +58,6 @@
 typedef int64_t native_t;
 
+typedef uintptr_t ioport_t;
+
 /**< Formats for uintptr_t, size_t, count_t and index_t */
 #define PRIp "llx"
Index: kernel/arch/amd64/src/amd64.c
===================================================================
--- kernel/arch/amd64/src/amd64.c	(revision f58321c4042bfd9cc85a70809296594c96a72565)
+++ kernel/arch/amd64/src/amd64.c	(revision 0e56eb1a15c7e636f2beb1a2d7ca2c425fec275f)
@@ -41,4 +41,5 @@
 #include <proc/thread.h>
 #include <arch/drivers/ega.h>
+#include <genarch/drivers/ega/ega.h>
 #include <arch/drivers/vesa.h>
 #include <genarch/kbd/i8042.h>
@@ -140,5 +141,5 @@
 		else
 #endif
-			ega_init();	/* video */
+			ega_init(EGA_BASE, EGA_VIDEORAM);	/* video */
 		
 		/* Enable debugger */
