Author: blueswirl Date: 2007-04-29 21:50:57 +0200 (Sun, 29 Apr 2007) New Revision: 132
Modified: openbios-devel/arch/sparc32/entry.S openbios-devel/drivers/obio.c Log: Clear preloaded kernel parameters to avoid crash at reset
Modified: openbios-devel/arch/sparc32/entry.S =================================================================== --- openbios-devel/arch/sparc32/entry.S 2007-04-26 17:15:45 UTC (rev 131) +++ openbios-devel/arch/sparc32/entry.S 2007-04-29 19:50:57 UTC (rev 132) @@ -245,6 +245,8 @@
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
Modified: openbios-devel/drivers/obio.c =================================================================== --- openbios-devel/drivers/obio.c 2007-04-26 17:15:45 UTC (rev 131) +++ openbios-devel/drivers/obio.c 2007-04-29 19:50:57 UTC (rev 132) @@ -504,6 +504,9 @@ 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;