@@ -917,7 +917,7 @@ static void add_e820ext(struct boot_params *params,
917
917
static efi_status_t setup_e820 (struct boot_params * params ,
918
918
struct setup_data * e820ext , u32 e820ext_size )
919
919
{
920
- struct e820_entry * e820_array = & params -> e820_array [0 ];
920
+ struct e820_entry * e820_table = & params -> e820_table [0 ];
921
921
struct efi_info * efi = & params -> efi_info ;
922
922
struct e820_entry * prev = NULL ;
923
923
u32 nr_entries ;
@@ -982,26 +982,26 @@ static efi_status_t setup_e820(struct boot_params *params,
982
982
continue ;
983
983
}
984
984
985
- if (nr_entries == ARRAY_SIZE (params -> e820_array )) {
985
+ if (nr_entries == ARRAY_SIZE (params -> e820_table )) {
986
986
u32 need = (nr_desc - i ) * sizeof (struct e820_entry ) +
987
987
sizeof (struct setup_data );
988
988
989
989
if (!e820ext || e820ext_size < need )
990
990
return EFI_BUFFER_TOO_SMALL ;
991
991
992
992
/* boot_params map full, switch to e820 extended */
993
- e820_array = (struct e820_entry * )e820ext -> data ;
993
+ e820_table = (struct e820_entry * )e820ext -> data ;
994
994
}
995
995
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 ++ ;
1000
1000
nr_entries ++ ;
1001
1001
}
1002
1002
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 );
1005
1005
1006
1006
add_e820ext (params , e820ext , nr_e820ext );
1007
1007
nr_entries -= nr_e820ext ;
@@ -1055,9 +1055,9 @@ static efi_status_t exit_boot_func(efi_system_table_t *sys_table_arg,
1055
1055
1056
1056
if (first ) {
1057
1057
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 )) {
1059
1059
u32 nr_e820ext = nr_desc -
1060
- ARRAY_SIZE (p -> boot_params -> e820_array );
1060
+ ARRAY_SIZE (p -> boot_params -> e820_table );
1061
1061
1062
1062
status = alloc_e820ext (nr_e820ext , & p -> e820ext ,
1063
1063
& p -> e820ext_size );
0 commit comments