[coreboot] New patch to review for coreboot: a4e7fb1 random hack in qemu target

Rudolf Marek (r.marek@assembler.cz) gerrit at coreboot.org
Tue Jun 5 01:02:27 CEST 2012


Rudolf Marek (r.marek at assembler.cz) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1093

-gerrit

commit a4e7fb13b611d5d3f14b3a21f34d19939e5e62ed
Author: Rudolf Marek <r.marek at assembler.cz>
Date:   Tue Jun 5 00:24:14 2012 +0200

    random hack in qemu target
    
    Not for merge, just simple hack to use userspace coreboot even without serialice (comment out serialice_init).
    if serialice_init is commented all IO will fail but one can test the memory access/workflow more faster.
    
    Change-Id: I0c8f8619fa054af72cca76a0825fd00a4d301c3d
    Signed-off-by: Rudolf Marek <r.marek at assembler.cz>
---
 src/mainboard/emulation/qemu-x86/northbridge.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/mainboard/emulation/qemu-x86/northbridge.c b/src/mainboard/emulation/qemu-x86/northbridge.c
index f1669bb..d701b8c 100644
--- a/src/mainboard/emulation/qemu-x86/northbridge.c
+++ b/src/mainboard/emulation/qemu-x86/northbridge.c
@@ -11,6 +11,7 @@
 #include "chip.h"
 #include <delay.h>
 #include <smbios.h>
+#include <ulinux.h>
 
 #if CONFIG_WRITE_HIGH_TABLES
 #include <cbmem.h>
@@ -38,7 +39,8 @@ static void cpu_pci_domain_set_resources(device_t dev)
 	unsigned long tomk = 0, tolmk;
 	int idx;
 
-	tomk = qemu_get_memory_size();
+//	tomk = qemu_get_memory_size();
+	tomk = 16*1024;
 	printk(BIOS_DEBUG, "Detected %lu Kbytes (%lu MiB) RAM.\n",
 	       tomk, tomk / 1024);
 
@@ -58,8 +60,10 @@ static void cpu_pci_domain_set_resources(device_t dev)
 	/* Leave some space for ACPI, PIRQ and MP tables */
 	high_tables_base = (tomk * 1024) - HIGH_MEMORY_SIZE;
 	high_tables_size = HIGH_MEMORY_SIZE;
+#if CONFIG_ULINUX
+	ulinux_mmap(high_tables_base, high_tables_size);
+#endif
 #endif
-
 	assign_resources(dev->link_list);
 }
 




More information about the coreboot mailing list