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:
@@ -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