|
@@ -34,6 +34,7 @@ static unsigned long __chunk_size = EFI_READ_CHUNK_SIZE;
|
|
|
|
|
|
|
|
static int __section(.data) __nokaslr;
|
|
static int __section(.data) __nokaslr;
|
|
|
static int __section(.data) __quiet;
|
|
static int __section(.data) __quiet;
|
|
|
|
|
+static int __section(.data) __novamap;
|
|
|
|
|
|
|
|
int __pure nokaslr(void)
|
|
int __pure nokaslr(void)
|
|
|
{
|
|
{
|
|
@@ -43,6 +44,10 @@ int __pure is_quiet(void)
|
|
|
{
|
|
{
|
|
|
return __quiet;
|
|
return __quiet;
|
|
|
}
|
|
}
|
|
|
|
|
+int __pure novamap(void)
|
|
|
|
|
+{
|
|
|
|
|
+ return __novamap;
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
#define EFI_MMAP_NR_SLACK_SLOTS 8
|
|
#define EFI_MMAP_NR_SLACK_SLOTS 8
|
|
|
|
|
|
|
@@ -482,6 +487,11 @@ efi_status_t efi_parse_options(char const *cmdline)
|
|
|
__chunk_size = -1UL;
|
|
__chunk_size = -1UL;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (!strncmp(str, "novamap", 7)) {
|
|
|
|
|
+ str += strlen("novamap");
|
|
|
|
|
+ __novamap = 1;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/* Group words together, delimited by "," */
|
|
/* Group words together, delimited by "," */
|
|
|
while (*str && *str != ' ' && *str != ',')
|
|
while (*str && *str != ' ' && *str != ',')
|
|
|
str++;
|
|
str++;
|