summaryrefslogtreecommitdiffstats
path: root/kernel/arch/um/kernel/physmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/um/kernel/physmem.c')
-rw-r--r--kernel/arch/um/kernel/physmem.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/arch/um/kernel/physmem.c b/kernel/arch/um/kernel/physmem.c
index 9034fc805..4c9861b42 100644
--- a/kernel/arch/um/kernel/physmem.c
+++ b/kernel/arch/um/kernel/physmem.c
@@ -8,6 +8,7 @@
#include <linux/mm.h>
#include <linux/pfn.h>
#include <asm/page.h>
+#include <asm/sections.h>
#include <as-layout.h>
#include <init.h>
#include <kern.h>
@@ -55,8 +56,6 @@ void map_memory(unsigned long virt, unsigned long phys, unsigned long len,
}
}
-extern int __syscall_stub_start;
-
/**
* setup_physmem() - Setup physical memory for UML
* @start: Start address of the physical kernel memory,
@@ -110,8 +109,8 @@ void __init setup_physmem(unsigned long start, unsigned long reserve_end,
* Special kludge - This page will be mapped in to userspace processes
* from physmem_fd, so it needs to be written out there.
*/
- os_seek_file(physmem_fd, __pa(&__syscall_stub_start));
- os_write_file(physmem_fd, &__syscall_stub_start, PAGE_SIZE);
+ os_seek_file(physmem_fd, __pa(__syscall_stub_start));
+ os_write_file(physmem_fd, __syscall_stub_start, PAGE_SIZE);
os_fsync_file(physmem_fd);
bootmap_size = init_bootmem(pfn, pfn + delta);