/*
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* Copyright (C) 2015 Kay Sievers <kay@vrfy.org>
*/
#include <efi.h>
#include <efilib.h>
#include "linux.h"
#include "util.h"
struct SetupHeader {
} __attribute__((packed));
#ifdef __x86_64__
asm volatile ("cli");
}
#else
typedef VOID(*handover_f)(VOID *image, EFI_SYSTEM_TABLE *table, struct SetupHeader *setup) __attribute__((regparm(0)));
}
#endif
return EFI_LOAD_ERROR;
return EFI_LOAD_ERROR;
addr = 0x3fffffff;
return err;
if (cmdline) {
addr = 0xA0000;
return err;
}
return EFI_LOAD_ERROR;
}