Imported Upstream version 3.6
[debian/elilo] / bootparams.c
index a6c9d7c47f7befac6fc1a70b08180139ccd976df..8859fcc48c1a0864e3ee25210629c56bf3929598 100644 (file)
@@ -38,7 +38,7 @@
  *     bp  : the address of the bootparams otherwise (opaque type)
  */
 VOID *
-create_boot_params(CHAR16 *args, memdesc_t *initrd, UINTN *cookie)
+create_boot_params(CHAR16 *args, memdesc_t *initrd, memdesc_t *vmcode, UINTN *cookie)
 {
 /* 
  * XXX: need cleanup
@@ -69,6 +69,7 @@ create_boot_params(CHAR16 *args, memdesc_t *initrd, UINTN *cookie)
         * Allocate memory for boot parameters.
         * This CANNOT be EfiLoaderData or EfiLoaderCode as the kernel
         * frees this region when initializing.
+        * FIXME:  Is this a bug?  (since the memory type *is* EfiLoaderData)
         */
 
        bp = (boot_params_t *)alloc(BOOT_PARAM_MEMSIZE, EfiLoaderData);
@@ -95,7 +96,7 @@ create_boot_params(CHAR16 *args, memdesc_t *initrd, UINTN *cookie)
         */
        Memset(bp, 0, BOOT_PARAM_MEMSIZE);
 
-       if (sysdeps_create_boot_params(bp, cp, initrd, cookie) == -1) return 0;
+       if (sysdeps_create_boot_params(bp, cp, initrd, vmcode, cookie) == -1) return 0;
 
        /*
         * Convert kernel command line args from UNICODE to ASCII and put them where