mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
This patch adds explicit casts to remove some compiler warnings.
Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://coreboot.org/repository/coreboot-v3@949 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
2174dd2c78
commit
84b3e13596
2 changed files with 4 additions and 4 deletions
|
@ -145,7 +145,7 @@ void *arch_write_tables(void)
|
|||
#endif
|
||||
|
||||
/* The Multiboot information structure */
|
||||
mbi = rom_table_end;
|
||||
mbi = (void*)rom_table_end;
|
||||
rom_table_end = write_multiboot_info(
|
||||
low_table_start, low_table_end,
|
||||
rom_table_start, rom_table_end);
|
||||
|
|
|
@ -78,12 +78,12 @@ unsigned long write_multiboot_info(
|
|||
struct multiboot_info *mbi;
|
||||
int i;
|
||||
|
||||
mbi = rom_table_end;
|
||||
mbi = (void*)rom_table_end;
|
||||
memset(mbi, 0, sizeof(*mbi));
|
||||
rom_table_end += sizeof(*mbi);
|
||||
|
||||
mbi->mmap_addr = (u32) rom_table_end;
|
||||
mb_mem = rom_table_end;
|
||||
mb_mem = (struct multiboot_mmap_entry*)rom_table_end;
|
||||
|
||||
/* reserved regions */
|
||||
reserved_mem[0].addr = low_table_start;
|
||||
|
@ -107,5 +107,5 @@ unsigned long write_multiboot_info(
|
|||
|
||||
printk(BIOS_INFO, "Multiboot Information structure has been written.\n");
|
||||
|
||||
return mb_mem;
|
||||
return (unsigned long)mb_mem;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue