Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58780
b: refs/heads/master
c: 9c25d13
h: refs/heads/master
v: v3
  • Loading branch information
H. Peter Anvin authored and Linus Torvalds committed Jul 12, 2007
1 parent fc26dc7 commit acb09c3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 85414b693ac037d709582a167a330db3a5d186d8
refs/heads/master: 9c25d134b3735a4b197e108b4c7d6bbec1a275e8
2 changes: 1 addition & 1 deletion trunk/arch/i386/kernel/e820.c
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ void __init print_memory_map(char *who)
case E820_NVS:
printk("(ACPI NVS)\n");
break;
default: printk("type %lu\n", e820.map[i].type);
default: printk("type %u\n", e820.map[i].type);
break;
}
}
Expand Down
14 changes: 8 additions & 6 deletions trunk/include/asm-i386/e820.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@

#ifndef __ASSEMBLY__

struct e820entry {
u64 addr; /* start of memory segment */
u64 size; /* size of memory segment */
u32 type; /* type of memory segment */
} __attribute__((packed));

struct e820map {
int nr_map;
struct e820entry {
unsigned long long addr; /* start of memory segment */
unsigned long long size; /* size of memory segment */
unsigned long type; /* type of memory segment */
} map[E820MAX];
u32 nr_map;
struct e820entry map[E820MAX];
};

extern struct e820map e820;
Expand Down
4 changes: 1 addition & 3 deletions trunk/include/asm-x86_64/e820.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#ifndef __E820_HEADER
#define __E820_HEADER

#include <linux/mmzone.h>

#define E820MAP 0x2d0 /* our map */
#define E820MAX 128 /* number of entries in E820MAP */
#define E820NR 0x1e8 /* # entries in E820MAP */
Expand All @@ -30,7 +28,7 @@ struct e820entry {
} __attribute__((packed));

struct e820map {
int nr_map;
u32 nr_map;
struct e820entry map[E820MAX];
};

Expand Down

0 comments on commit acb09c3

Please sign in to comment.