18d6273
--- kexec-tools-1.101/kexec/arch/i386/kexec-multiboot-x86.c.orig	2006-08-28 14:32:50.000000000 -0400
18d6273
+++ kexec-tools-1.101/kexec/arch/i386/kexec-multiboot-x86.c	2006-08-28 14:34:29.000000000 -0400
18d6273
@@ -47,7 +47,6 @@
18d6273
 #include <getopt.h>
18d6273
 #include <elf.h>
18d6273
 #include <boot/elf_boot.h>
18d6273
-#include <asm/page.h>
18d6273
 #include <ip_checksum.h>
18d6273
 #include "../../kexec.h"
18d6273
 #include "../../kexec-elf.h"
18d6273
@@ -342,7 +341,7 @@
18d6273
 			/* Pick the next aligned spot to load it in */
18d6273
 			freespace = add_buffer(info,
18d6273
 				buf, mod_size, mod_size,
18d6273
-				PAGE_SIZE, 0, 0xffffffffUL, 1);
18d6273
+				getpagesize(), 0, 0xffffffffUL, 1);
18d6273
 
18d6273
 			/* Add the module command line */
18d6273
 			sprintf(mod_clp, "%s", mod_command_line);