sparc: Build fixes

- Wrong printf format in bootloader elf panic call
- Missing functions for sparc

Change-Id: I4715a8d6d3d864d379b8386dc3958e0a2c1962e7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3571
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
PulkoMandy
2020-12-31 02:58:10 +00:00
committed by waddlesplash
parent 03c037b99a
commit 185e6809fc
2 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ struct ELF64Class {
#else
void *result;
if (platform_kernel_address_to_bootloader_address(address, &result) != B_OK) {
panic("Couldn't convert address %#lx", address);
panic("Couldn't convert address %#" PRIx64, address);
}
return result;
#endif
@@ -28,6 +28,22 @@ platform_allocate_region(void **_address, size_t size, uint8 protection,
}
extern "C" status_t
platform_bootloader_address_to_kernel_address(void *address, addr_t *_result)
{
*_result = (addr_t)address;
return B_OK;
}
extern "C" status_t
platform_kernel_address_to_bootloader_address(addr_t address, void **_result)
{
*_result = (void*)address;
return B_OK;
}
status_t
platform_free_region(void *address, size_t size)
{