Displaying 1 result from an estimated 1 matches for "smt_reserv".
Did you mean:
smt_reserved
2008 Jun 16
0
Com32/PXELINUX issues when booting on certain hardware
...000 -0700
@@ -42,6 +42,9 @@
#include <com32.h>
#include <syslinux/movebits.h>
+#define PAGE_SIZE 4096
+#define PAGE_MASK (PAGE_SIZE - 1)
+
struct e820_entry {
uint64_t start;
uint64_t len;
@@ -87,8 +90,22 @@
break;
type = e820buf->type == 1 ? SMT_FREE : SMT_RESERVED;
- start = e820buf->start;
- len = e820buf->len;
+
+ /*
+ * If the start and length of a usable region in the BIOS
+ * memory map are not page-aligned, we may end up passing
+ * an initrd to the kernel that shares a page with a reserved
+ * region of memory. This r...