# include <xen/hvm/hvm_info_table.h>
#endif
+#include "maru_common.h"
#include "guest_debug.h"
#define MAX_IDE_BUS 2
/* allocate ram and load rom/bios */
if (!xen_enabled()) {
+ // W/A for allocate larger continuous heap.
+ // see vl.c
+ if(preallocated_ptr != NULL) {
+ qemu_vfree(preallocated_ptr);
+ }
+ //
pc_memory_init(system_memory,
kernel_filename, kernel_cmdline, initrd_filename,
below_4g_mem_size, above_4g_mem_size,
#ifndef CONFIG_DARWIN
// maru specialized device init...
if (pci_enabled) {
- //tizen_ac97_init(pci_bus);
- codec_init(pci_bus);
+ //tizen_ac97_init(pci_bus);
+ codec_init(pci_bus);
}
#endif
}
#include <stdint.h>
#include <stdbool.h>
+// W/A for preserve larger continuous heap for RAM.
+extern void *preallocated_ptr;
+
#endif /* __MARU_COMMON_H__ */
#include "ui/qemu-spice.h"
#ifdef CONFIG_MARU
+#include "tizen/src/maru_common.h"
#include "tizen/src/maru_display.h"
#include "tizen/src/option.h"
#include "tizen/src/emul_state.h"
}
int use_qemu_display = 0; //0:use tizen qemu sdl, 1:use original qemu sdl
+
+
+#ifdef CONFIG_MARU
+// W/A for preserve larger continuous heap for RAM.
+void *preallocated_ptr = 0;
+#endif
+
int main(int argc, char **argv, char **envp)
{
const char *gdbstub_dev = NULL;
if (ram_size == 0) {
ram_size = DEFAULT_RAM_SIZE * 1024 * 1024;
}
+#ifdef CONFIG_MARU
+ // W/A for preserve larger continuous heap for RAM.
+ preallocated_ptr = qemu_vmalloc(ram_size);
+#endif
#ifdef CONFIG_HAX
hax_pre_init(ram_size);