Switch sparc64 to ofmem (Igor Kovalenko)

Initialize ofmem at startup.
Switch malloc/realloc/free to use ofmem.
Implement runtime migration of startup mappings to ofmem.
Implement mmu miss handlers to install tlb entries based on ofmem
translations list.


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@517 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2009-07-31 11:16:24 +00:00
parent e5b34330ee
commit ffd20b950d
4 changed files with 237 additions and 186 deletions

View File

@@ -20,6 +20,7 @@
#define NO_QEMU_PROTOS
#include "openbios/fw_cfg.h"
#include "video_subr.h"
#include "ofmem.h"
#define UUID_FMT "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x"
@@ -495,6 +496,8 @@ int openbios(void)
printk("OpenBIOS for Sparc64\n");
#endif
ofmem_init();
collect_sys_info(&sys_info);
dict = malloc(DICTIONARY_SIZE);