physmem.c (0a7675aa204ac2470bb06f562557978b03914a71) | physmem.c (512b6fb1c14d4c34f23a3419b0789ad01914a899) |
---|---|
1/* 2 * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 3 * Licensed under the GPL 4 */ 5 6#include "linux/bootmem.h" 7#include "linux/mm.h" 8#include "linux/pfn.h" --- 85 unchanged lines hidden (view full) --- 94 int err, offset, bootmap_size; 95 96 physmem_fd = create_mem_file(len + highmem); 97 98 offset = uml_reserved - uml_physmem; 99 err = os_map_memory((void *) uml_reserved, physmem_fd, offset, 100 len - offset, 1, 1, 1); 101 if (err < 0) { | 1/* 2 * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 3 * Licensed under the GPL 4 */ 5 6#include "linux/bootmem.h" 7#include "linux/mm.h" 8#include "linux/pfn.h" --- 85 unchanged lines hidden (view full) --- 94 int err, offset, bootmap_size; 95 96 physmem_fd = create_mem_file(len + highmem); 97 98 offset = uml_reserved - uml_physmem; 99 err = os_map_memory((void *) uml_reserved, physmem_fd, offset, 100 len - offset, 1, 1, 1); 101 if (err < 0) { |
102 os_print_error(err, "Mapping memory"); | 102 printf("setup_physmem - mapping %ld bytes of memory at 0x%p " 103 "failed - errno = %d\n", len - offset, 104 (void *) uml_reserved, err); |
103 exit(1); 104 } 105 106 /* 107 * Special kludge - This page will be mapped in to userspace processes 108 * from physmem_fd, so it needs to be written out there. 109 */ 110 os_seek_file(physmem_fd, __pa(&__syscall_stub_start)); --- 110 unchanged lines hidden --- | 105 exit(1); 106 } 107 108 /* 109 * Special kludge - This page will be mapped in to userspace processes 110 * from physmem_fd, so it needs to be written out there. 111 */ 112 os_seek_file(physmem_fd, __pa(&__syscall_stub_start)); --- 110 unchanged lines hidden --- |