Skip to content

Commit 61a5010

Browse files
author
Ingo Molnar
committed
x86/boot/e820: Rename everything to e820_table
No change in functionality. Cc: Alex Thorlton <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Brian Gerst <[email protected]> Cc: Dan Williams <[email protected]> Cc: Denys Vlasenko <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Huang, Ying <[email protected]> Cc: Josh Poimboeuf <[email protected]> Cc: Juergen Gross <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Paul Jackson <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Rafael J. Wysocki <[email protected]> Cc: Tejun Heo <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Wei Yang <[email protected]> Cc: Yinghai Lu <[email protected]> Cc: [email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent acd4c04 commit 61a5010

File tree

19 files changed

+163
-163
lines changed

19 files changed

+163
-163
lines changed

Documentation/x86/zero-page.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ Offset Proto Name Meaning
2727
1C0/020 ALL efi_info EFI 32 information (struct efi_info)
2828
1E0/004 ALL alk_mem_k Alternative mem check, in KB
2929
1E4/004 ALL scratch Scratch field for the kernel setup code
30-
1E8/001 ALL e820_entries Number of entries in e820_array (below)
30+
1E8/001 ALL e820_entries Number of entries in e820_table (below)
3131
1E9/001 ALL eddbuf_entries Number of entries in eddbuf (below)
3232
1EA/001 ALL edd_mbr_sig_buf_entries Number of entries in edd_mbr_sig_buffer
3333
(below)
3434
1EF/001 ALL sentinel Used to detect broken bootloaders
3535
290/040 ALL edd_mbr_sig_buffer EDD MBR signatures
36-
2D0/A00 ALL e820_array E820 memory map table
36+
2D0/A00 ALL e820_table E820 memory map table
3737
(array of struct e820_entry)
3838
D00/1EC ALL eddbuf EDD data (array of struct edd_info)

arch/x86/boot/compressed/eboot.c

+11-11
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ static void add_e820ext(struct boot_params *params,
917917
static efi_status_t setup_e820(struct boot_params *params,
918918
struct setup_data *e820ext, u32 e820ext_size)
919919
{
920-
struct e820_entry *e820_array = &params->e820_array[0];
920+
struct e820_entry *e820_table = &params->e820_table[0];
921921
struct efi_info *efi = &params->efi_info;
922922
struct e820_entry *prev = NULL;
923923
u32 nr_entries;
@@ -982,26 +982,26 @@ static efi_status_t setup_e820(struct boot_params *params,
982982
continue;
983983
}
984984

985-
if (nr_entries == ARRAY_SIZE(params->e820_array)) {
985+
if (nr_entries == ARRAY_SIZE(params->e820_table)) {
986986
u32 need = (nr_desc - i) * sizeof(struct e820_entry) +
987987
sizeof(struct setup_data);
988988

989989
if (!e820ext || e820ext_size < need)
990990
return EFI_BUFFER_TOO_SMALL;
991991

992992
/* boot_params map full, switch to e820 extended */
993-
e820_array = (struct e820_entry *)e820ext->data;
993+
e820_table = (struct e820_entry *)e820ext->data;
994994
}
995995

996-
e820_array->addr = d->phys_addr;
997-
e820_array->size = d->num_pages << PAGE_SHIFT;
998-
e820_array->type = e820_type;
999-
prev = e820_array++;
996+
e820_table->addr = d->phys_addr;
997+
e820_table->size = d->num_pages << PAGE_SHIFT;
998+
e820_table->type = e820_type;
999+
prev = e820_table++;
10001000
nr_entries++;
10011001
}
10021002

1003-
if (nr_entries > ARRAY_SIZE(params->e820_array)) {
1004-
u32 nr_e820ext = nr_entries - ARRAY_SIZE(params->e820_array);
1003+
if (nr_entries > ARRAY_SIZE(params->e820_table)) {
1004+
u32 nr_e820ext = nr_entries - ARRAY_SIZE(params->e820_table);
10051005

10061006
add_e820ext(params, e820ext, nr_e820ext);
10071007
nr_entries -= nr_e820ext;
@@ -1055,9 +1055,9 @@ static efi_status_t exit_boot_func(efi_system_table_t *sys_table_arg,
10551055

10561056
if (first) {
10571057
nr_desc = *map->buff_size / *map->desc_size;
1058-
if (nr_desc > ARRAY_SIZE(p->boot_params->e820_array)) {
1058+
if (nr_desc > ARRAY_SIZE(p->boot_params->e820_table)) {
10591059
u32 nr_e820ext = nr_desc -
1060-
ARRAY_SIZE(p->boot_params->e820_array);
1060+
ARRAY_SIZE(p->boot_params->e820_table);
10611061

10621062
status = alloc_e820ext(nr_e820ext, &p->e820ext,
10631063
&p->e820ext_size);

arch/x86/boot/compressed/kaslr.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ static unsigned long find_random_phys_addr(unsigned long minimum,
518518

519519
/* Verify potential e820 positions, appending to slots list. */
520520
for (i = 0; i < boot_params->e820_entries; i++) {
521-
process_e820_entry(&boot_params->e820_array[i], minimum,
521+
process_e820_entry(&boot_params->e820_table[i], minimum,
522522
image_size);
523523
if (slot_area_index == MAX_SLOT_AREA) {
524524
debug_putstr("Aborted e820 scan (slot_areas full)!\n");

arch/x86/boot/memory.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ static int detect_memory_e820(void)
2121
{
2222
int count = 0;
2323
struct biosregs ireg, oreg;
24-
struct e820_entry *desc = boot_params.e820_array;
24+
struct e820_entry *desc = boot_params.e820_table;
2525
static struct e820_entry buf; /* static so it is zeroed */
2626

2727
initregs(&ireg);
@@ -66,7 +66,7 @@ static int detect_memory_e820(void)
6666

6767
*desc++ = buf;
6868
count++;
69-
} while (ireg.ebx && count < ARRAY_SIZE(boot_params.e820_array));
69+
} while (ireg.ebx && count < ARRAY_SIZE(boot_params.e820_table));
7070

7171
return boot_params.e820_entries = count;
7272
}

arch/x86/include/asm/e820/api.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
#include <asm/e820/types.h>
55

66
/* see comment in arch/x86/kernel/e820.c */
7-
extern struct e820_array *e820_array;
8-
extern struct e820_array *e820_array_saved;
7+
extern struct e820_table *e820_table;
8+
extern struct e820_table *e820_table_saved;
99

1010
extern unsigned long pci_mem_start;
1111

1212
extern int e820_any_mapped(u64 start, u64 end, unsigned type);
1313
extern int e820_all_mapped(u64 start, u64 end, unsigned type);
1414
extern void e820_add_region(u64 start, u64 size, int type);
1515
extern void e820_print_map(char *who);
16-
extern int sanitize_e820_array(struct e820_entry *biosmap, int max_nr_map, u32 *pnr_map);
16+
extern int sanitize_e820_table(struct e820_entry *biosmap, int max_nr_map, u32 *pnr_map);
1717
extern u64 e820_update_range(u64 start, u64 size, unsigned old_type, unsigned new_type);
1818
extern u64 e820_remove_range(u64 start, u64 size, unsigned old_type, int checktype);
1919
extern void update_e820(void);

arch/x86/include/asm/e820/types.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
* This allows for bootstrap/firmware quirks such as possible duplicate
2323
* E820 entries that might need room in the same arrays, prior to the
24-
* call to sanitize_e820_array() to remove duplicates. The allowance
24+
* call to sanitize_e820_table() to remove duplicates. The allowance
2525
* of three memory map entries per node is "enough" entries for
2626
* the initial hardware platform motivating this mechanism to make
2727
* use of additional EFI map entries. Future platforms may want
@@ -68,7 +68,7 @@
6868
/*
6969
* The whole array of E820 entries:
7070
*/
71-
struct e820_array {
71+
struct e820_table {
7272
__u32 nr_map;
7373
struct e820_entry map[E820_X_MAX];
7474
};

arch/x86/include/uapi/asm/bootparam.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ struct boot_params {
152152
struct setup_header hdr; /* setup header */ /* 0x1f1 */
153153
__u8 _pad7[0x290-0x1f1-sizeof(struct setup_header)];
154154
__u32 edd_mbr_sig_buffer[EDD_MBR_SIG_MAX]; /* 0x290 */
155-
struct e820_entry e820_array[E820MAX]; /* 0x2d0 */
155+
struct e820_entry e820_table[E820MAX]; /* 0x2d0 */
156156
__u8 _pad8[48]; /* 0xcd0 */
157157
struct edd_info eddbuf[EDDMAXNR]; /* 0xd00 */
158158
__u8 _pad9[276]; /* 0xeec */

arch/x86/kernel/crash.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ static int add_e820_entry(struct boot_params *params, struct e820_entry *entry)
512512
if (nr_e820_entries >= E820MAX)
513513
return 1;
514514

515-
memcpy(&params->e820_array[nr_e820_entries], entry,
515+
memcpy(&params->e820_table[nr_e820_entries], entry,
516516
sizeof(struct e820_entry));
517517
params->e820_entries++;
518518
return 0;

0 commit comments

Comments
 (0)