This source file includes following definitions.
- setup_elfcorehdr
1
2 #include <linux/kernel.h>
3 #include <linux/crash_dump.h>
4 #include <linux/init.h>
5 #include <linux/errno.h>
6 #include <linux/export.h>
7
8
9
10
11
12 unsigned long saved_max_pfn;
13
14
15
16
17
18
19
20
21 unsigned long long elfcorehdr_addr = ELFCORE_ADDR_MAX;
22 EXPORT_SYMBOL_GPL(elfcorehdr_addr);
23
24
25
26
27 unsigned long long elfcorehdr_size;
28
29
30
31
32
33
34
35 static int __init setup_elfcorehdr(char *arg)
36 {
37 char *end;
38 if (!arg)
39 return -EINVAL;
40 elfcorehdr_addr = memparse(arg, &end);
41 if (*end == '@') {
42 elfcorehdr_size = elfcorehdr_addr;
43 elfcorehdr_addr = memparse(end + 1, &end);
44 }
45 return end > arg ? 0 : -EINVAL;
46 }
47 early_param("elfcorehdr", setup_elfcorehdr);