Make the ofw_reg structure and ofw_alloc_heap 64-bit save.
This commit is contained in:
parent
fc06896610
commit
7081e52987
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=84975
@ -103,6 +103,6 @@ extern int main(int (*openfirm)(void *));
|
||||
|
||||
struct ofw_reg
|
||||
{
|
||||
uint32_t base;
|
||||
uint32_t size;
|
||||
cell_t base;
|
||||
cell_t size;
|
||||
};
|
||||
|
@ -88,9 +88,9 @@ ofw_alloc_heap(unsigned int size)
|
||||
memory = OF_instance_to_package(meminstance);
|
||||
OF_getprop(memory, "available", &available, sizeof(available));
|
||||
|
||||
heap_base = OF_claim((void *)available.base, size, 4);
|
||||
heap_base = OF_claim((void *)available.base, size, sizeof(register_t));
|
||||
|
||||
if (heap_base != (void *)0xffffffff) {
|
||||
if (heap_base != (void *)-1) {
|
||||
heap_size = size;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user