ARM: cleanup of bootloader memory mapping

* Removes default mapping of a portion of the RAM (will be done
  as needed)
* Passes on the page directory area to kernel, so on early vm init
  the kernel can use the area for pagetable allocation.
* Leaves it to the platform to pass in physical memory range(s). This
  will ultimately come from FDT.
* Fix long standing issue with allocation of the heap, potentially
  causing other part of the bootloader to overwrite the heap.
* Implements pagetable allocator in kernel for early vm mapping.

This fixes the first PANIC seen, we now just get the same one later
on when the VM is up... more to come...
This commit is contained in:
Ithamar R. Adema
2014-09-07 20:56:15 +02:00
parent 3e450daa1c
commit eea45d0a32
5 changed files with 46 additions and 84 deletions
@@ -20,6 +20,7 @@ typedef struct {
// architecture specific
uint32 phys_pgdir;
uint32 vir_pgdir;
uint32 next_pagetable;
} arch_kernel_args;
#endif /* KERNEL_ARCH_ARM_KERNEL_ARGS_H */