mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user