Make the ofw_reg structure and ofw_alloc_heap 64-bit save.

This commit is contained in:
Robert Drehmel 2001-10-15 12:16:20 +00:00
parent fc06896610
commit 7081e52987
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=84975
2 changed files with 4 additions and 4 deletions

View File

@ -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;
};

View File

@ -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;
}