diff options
author | Anton Altaparmakov <aia21@cantab.net> | 2006-01-19 11:39:33 -0500 |
---|---|---|
committer | Anton Altaparmakov <aia21@cantab.net> | 2006-01-19 11:39:33 -0500 |
commit | 944d79559d154c12becde0dab327016cf438f46c (patch) | |
tree | 50c101806f4d3b6585222dda060559eb4f3e005a /fs/proc/vmcore.c | |
parent | d087e4bdd24ebe3ae3d0b265b6573ec901af4b4b (diff) | |
parent | 0f36b018b2e314d45af86449f1a97facb1fbe300 (diff) |
Merge branch 'master' of /usr/src/ntfs-2.6/
Diffstat (limited to 'fs/proc/vmcore.c')
-rw-r--r-- | fs/proc/vmcore.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c index 3b2e7b69e63a..4063fb32f78c 100644 --- a/fs/proc/vmcore.c +++ b/fs/proc/vmcore.c | |||
@@ -14,7 +14,6 @@ | |||
14 | #include <linux/a.out.h> | 14 | #include <linux/a.out.h> |
15 | #include <linux/elf.h> | 15 | #include <linux/elf.h> |
16 | #include <linux/elfcore.h> | 16 | #include <linux/elfcore.h> |
17 | #include <linux/proc_fs.h> | ||
18 | #include <linux/highmem.h> | 17 | #include <linux/highmem.h> |
19 | #include <linux/bootmem.h> | 18 | #include <linux/bootmem.h> |
20 | #include <linux/init.h> | 19 | #include <linux/init.h> |
@@ -35,11 +34,14 @@ static size_t elfcorebuf_sz; | |||
35 | /* Total size of vmcore file. */ | 34 | /* Total size of vmcore file. */ |
36 | static u64 vmcore_size; | 35 | static u64 vmcore_size; |
37 | 36 | ||
37 | /* Stores the physical address of elf header of crash image. */ | ||
38 | unsigned long long elfcorehdr_addr = ELFCORE_ADDR_MAX; | ||
39 | |||
38 | struct proc_dir_entry *proc_vmcore = NULL; | 40 | struct proc_dir_entry *proc_vmcore = NULL; |
39 | 41 | ||
40 | /* Reads a page from the oldmem device from given offset. */ | 42 | /* Reads a page from the oldmem device from given offset. */ |
41 | static ssize_t read_from_oldmem(char *buf, size_t count, | 43 | static ssize_t read_from_oldmem(char *buf, size_t count, |
42 | loff_t *ppos, int userbuf) | 44 | u64 *ppos, int userbuf) |
43 | { | 45 | { |
44 | unsigned long pfn, offset; | 46 | unsigned long pfn, offset; |
45 | size_t nr_bytes; | 47 | size_t nr_bytes; |