Clear preloaded kernel parameters to avoid crash at reset

git-svn-id: svn://coreboot.org/openbios/openbios-devel@132 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2007-04-29 19:50:57 +00:00
parent 9ebb76df0f
commit 9bcf7edf3d
2 changed files with 5 additions and 0 deletions

View File

@@ -245,6 +245,8 @@ first_cpu:
set AC_M_CTPR, %g2
sta %g7, [%g2] ASI_M_MMUREGS ! set ctx table ptr
set AC_M_CXR, %g2
sta %g0, [%g2] ASI_M_MMUREGS ! context 0
set 1, %g1
sta %g1, [%g0] ASI_M_MMUREGS ! enable mmu

View File

@@ -504,6 +504,9 @@ ob_nvram_init(unsigned long base, unsigned long offset)
obio_cmdline[size] = '\0';
cmdline = obio_cmdline;
cmdline_size = size;
((struct qemu_nvram_v1 *)nvram)->kernel_image = 0;
((struct qemu_nvram_v1 *)nvram)->kernel_size = 0;
((struct qemu_nvram_v1 *)nvram)->cmdline_size = 0;
boot_device = nv_info.boot_device;
nographic = nv_info.nographic;