efi: finish stubbing platform file
authorJack Miller <jack@codezen.org>
Wed, 4 May 2016 23:23:21 +0000 (18:23 -0500)
committerJack Miller <jack@codezen.org>
Wed, 4 May 2016 23:23:21 +0000 (18:23 -0500)
include/platform.h
kernel/platforms/efi/setup.c
kernel/platforms/platform.c

index d161f2d..519a278 100644 (file)
@@ -38,3 +38,6 @@ void bios_console_putch(struct platform *plat, char c);
 
 int efi_probe(struct platform *plat, struct boot_header *header);
 void efi_parse_memmap(struct platform *plat, struct plat_memmap *entry);
+void efi_console_init(struct platform *plat);
+void efi_console_reset(struct platform *plat);
+void efi_console_putch(struct platform *plat, char c);
index fd10e65..8ad3fe4 100644 (file)
@@ -3,6 +3,21 @@
 #include <kernel.h>
 #include <asm/boot.h>
 
+void efi_console_init(struct platform *plat)
+{
+
+}
+
+void efi_console_reset(struct platform *plat)
+{
+
+}
+
+void efi_console_putch(struct platform *plat, char c)
+{
+
+}
+
 void efi_parse_memmap(struct platform *plat, struct plat_memmap *entry)
 {
 
index b8476d6..69c3297 100644 (file)
@@ -10,6 +10,10 @@ struct platform platforms[] = {
     {
         .probe = efi_probe,
         .parse_memmap = efi_parse_memmap,
+
+        .console_init = efi_console_init,
+        .console_reset = efi_console_reset,
+        .console_putch = efi_console_putch,
     },
     {
         .probe = bios_probe,