diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-07-11 15:18:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-12 13:55:54 -0400 |
commit | 9c25d134b3735a4b197e108b4c7d6bbec1a275e8 (patch) | |
tree | 20c1bdca391c864cce126e3615c84d10d62852b6 /include/asm-i386/e820.h | |
parent | 85414b693ac037d709582a167a330db3a5d186d8 (diff) |
Make definitions for struct e820entry and struct e820map consistent
Make definitions for struct e820entry and struct e820map
consistent between i386 and x86-64.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-i386/e820.h')
-rw-r--r-- | include/asm-i386/e820.h | 14 |
1 files changed, 8 insertions, 6 deletions
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; |