Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/novmm/loader/linux_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package loader
#include <linux/const.h>
#include <string.h>
#include <asm/bootparam.h>
#include <asm/e820.h>

// E820 codes.
const int E820Ram = E820_RAM;
Expand All @@ -40,9 +41,9 @@ static inline void e820_set_region(
__u64 size,
__u8 type) {

boot->e820_map[index].addr = start;
boot->e820_map[index].size = size;
boot->e820_map[index].type = type;
boot->e820_table[index].addr = start;
boot->e820_table[index].size = size;
boot->e820_table[index].type = type;
}
static inline void set_header(
struct boot_params* boot,
Expand Down