mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Make __elfN(ofw_loadfile) match parameter declaration for file_format
in boot/common/bootstrap.h. Having a 32-bit size when a 64-bit param is declared wreaks havoc on PPC. Not objected to by: sparc64
This commit is contained in:
parent
934eb1922a
commit
bca2f486f0
1 changed files with 4 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ extern char end[];
|
|||
extern vm_offset_t reloc; /* From <arch>/conf.c */
|
||||
|
||||
int
|
||||
__elfN(ofw_loadfile)(char *filename, vm_offset_t dest,
|
||||
__elfN(ofw_loadfile)(char *filename, u_int64_t dest,
|
||||
struct preloaded_file **result)
|
||||
{
|
||||
int r;
|
||||
|
|
@ -52,6 +52,9 @@ __elfN(ofw_loadfile)(char *filename, vm_offset_t dest,
|
|||
if (r != 0)
|
||||
return (r);
|
||||
|
||||
#if defined(__powerpc__)
|
||||
__syncicache((void *) (*result)->f_addr, (*result)->f_size);
|
||||
#endif
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue