diff boot/bootx64.c @ 21:e3accb15b1bb default tip

add alloc and loader.
author taiki
date Mon, 11 Feb 2013 04:30:42 +0900
parents 5e184d4c01b8
children
line wrap: on
line diff
--- a/boot/bootx64.c	Sun Feb 10 00:15:05 2013 +0900
+++ b/boot/bootx64.c	Mon Feb 11 04:30:42 2013 +0900
@@ -8,7 +8,7 @@
 #include "bootx64.h"
 #include "mach-o/mach_o.h"
 
-extern EFI_STATUS open(fs_t *fs, EFI_FILE_HANDLE *fd, CHAR16 *name); 
+extern EFI_STATUS open(fs_interface_t *this, EFI_FILE_HANDLE *fd, CHAR16 *name); 
 extern EFI_STATUS close(fs_t *fs, EFI_FILE_HANDLE *fd);
 extern EFI_STATUS read(fs_t *fs, EFI_FILE_HANDLE *fd, VOID *buf, UINTN *size);
 extern EFI_STATUS seek(fs_t *fs, EFI_FILE_HANDLE *fd, UINTN newpos);
@@ -43,10 +43,12 @@
 
     fs_t fs;
     dev_tab_t boot_dev;
+    fs_interface_t fsi;
+    
     status = config_fs(&fs, info->DeviceHandle ,&boot_dev);
 
     EFI_FILE_HANDLE fd;
-    open(&fs, &fd, kname);
+    open(&fsi, &fd, kname);
 
     load(&fs, &fd, kname);