diff options
-rw-r--r-- | arch/i386/kernel/e820.c | 2 | ||||
-rw-r--r-- | include/asm-i386/e820.h | 14 | ||||
-rw-r--r-- | include/asm-x86_64/e820.h | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/arch/i386/kernel/e820.c b/arch/i386/kernel/e820.c index 9645bb51f76a..fc822a46897a 100644 --- a/arch/i386/kernel/e820.c +++ b/arch/i386/kernel/e820.c | |||
@@ -734,7 +734,7 @@ void __init print_memory_map(char *who) | |||
734 | case E820_NVS: | 734 | case E820_NVS: |
735 | printk("(ACPI NVS)\n"); | 735 | printk("(ACPI NVS)\n"); |
736 | break; | 736 | break; |
737 | default: printk("type %lu\n", e820.map[i].type); | 737 | default: printk("type %u\n", e820.map[i].type); |
738 | break; | 738 | break; |
739 | } | 739 | } |
740 | } | 740 | } |
diff --git a/include/asm-i386/e820.h b/include/asm-i386/e820.h index 096a2a8eb1da..c03290ccecb2 100644 --- a/include/asm-i386/e820.h +++ b/include/asm-i386/e820.h | |||
@@ -25,13 +25,15 @@ | |||
25 | 25 | ||
26 | #ifndef __ASSEMBLY__ | 26 | #ifndef __ASSEMBLY__ |
27 | 27 | ||
28 | struct e820entry { | ||
29 | u64 addr; /* start of memory segment */ | ||
30 | u64 size; /* size of memory segment */ | ||
31 | u32 type; /* type of memory segment */ | ||
32 | } __attribute__((packed)); | ||
33 | |||
28 | struct e820map { | 34 | struct e820map { |
29 | int nr_map; | 35 | u32 nr_map; |
30 | struct e820entry { | 36 | struct e820entry map[E820MAX]; |
31 | unsigned long long addr; /* start of memory segment */ | ||
32 | unsigned long long size; /* size of memory segment */ | ||
33 | unsigned long type; /* type of memory segment */ | ||
34 | } map[E820MAX]; | ||
35 | }; | 37 | }; |
36 | 38 | ||
37 | extern struct e820map e820; | 39 | extern struct e820map e820; |
diff --git a/include/asm-x86_64/e820.h b/include/asm-x86_64/e820.h index 6216fa3f2802..3486e701bd86 100644 --- a/include/asm-x86_64/e820.h +++ b/include/asm-x86_64/e820.h | |||
@@ -11,8 +11,6 @@ | |||
11 | #ifndef __E820_HEADER | 11 | #ifndef __E820_HEADER |
12 | #define __E820_HEADER | 12 | #define __E820_HEADER |
13 | 13 | ||
14 | #include <linux/mmzone.h> | ||
15 | |||
16 | #define E820MAP 0x2d0 /* our map */ | 14 | #define E820MAP 0x2d0 /* our map */ |
17 | #define E820MAX 128 /* number of entries in E820MAP */ | 15 | #define E820MAX 128 /* number of entries in E820MAP */ |
18 | #define E820NR 0x1e8 /* # entries in E820MAP */ | 16 | #define E820NR 0x1e8 /* # entries in E820MAP */ |
@@ -30,7 +28,7 @@ struct e820entry { | |||
30 | } __attribute__((packed)); | 28 | } __attribute__((packed)); |
31 | 29 | ||
32 | struct e820map { | 30 | struct e820map { |
33 | int nr_map; | 31 | u32 nr_map; |
34 | struct e820entry map[E820MAX]; | 32 | struct e820entry map[E820MAX]; |
35 | }; | 33 | }; |
36 | 34 | ||