Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Apr 2012 09:36:23 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r233941 - head/sys/boot/forth
Message-ID:  <201204060936.q369aNCH001603@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Fri Apr  6 09:36:22 2012
New Revision: 233941
URL: http://svn.freebsd.org/changeset/base/233941

Log:
  retrofit Safe Mode loader menu item actions
  
  The menu item is now made completely independent with the ACPI item - most
  modern systems seem to require ACPI and become even more "unsafe"
  without it.
  Safe Mode no longer disables APIC for the same reason.
  kbdmux is not disabled as this feature has proven itself stable.
  
  New actions:
  - SMP is disabled in the Safe Mode now
  - eventtimers are forced to periodic mode (some real and virtual systems
    seem to have problems otherwise)
  - geom extra vigorous integrity checking is disabled, this is to
    facilitate migration from previous versions
  
  Possible short term to do:
  - make SMP switch a separate menu item
  - restore APIC switch as a separate menu item
  
  Longer term to do:
  - turn various tweaks into separate menu items in a Safe Mode sub-menu
  
  Please consider adding a safety tweak to Safe Mode when introducing
  new major features or changes that may cause instabilities.
  
  Discussed with:	jhb, scottl, Devin Teske
  MFC after:	3 weeks (stable/9 only)

Modified:
  head/sys/boot/forth/menu-commands.4th

Modified: head/sys/boot/forth/menu-commands.4th
==============================================================================
--- head/sys/boot/forth/menu-commands.4th	Fri Apr  6 09:03:02 2012	(r233940)
+++ head/sys/boot/forth/menu-commands.4th	Fri Apr  6 09:36:22 2012	(r233941)
@@ -62,30 +62,21 @@ marker task-menu-commands.4th
 	-rot 2dup 12 + c! rot    \ replace 'N' with ASCII numeral
 
 	evaluate 0= if
-		s" hint.apic.0.disabled" unsetenv
+		s" kern.smp.disabled" unsetenv
 		s" hw.ata.ata_dma" unsetenv
 		s" hw.ata.atapi_dma" unsetenv
 		s" hw.ata.wc" unsetenv
 		s" hw.eisa_slots" unsetenv
-		s" hint.kbdmux.0.disabled" unsetenv
+		s" kern.eventtimer.periodic" unsetenv
+		s" kern.geom.part.check_integrity" unsetenv
 	else
-		\ 
-		\ Toggle ACPI elements if necessary
-		\ 
-		acpipresent? if acpienabled? if
-			menuacpi @ dup 0<> if
-				toggle_menuitem ( N -- N )
-			then
-			drop
-			acpi_disable
-		then then
-
-		s" set hint.apic.0.disabled=1" evaluate
+		s" set kern.smp.disabled=1" evaluate
 		s" set hw.ata.ata_dma=0" evaluate
 		s" set hw.ata.atapi_dma=0" evaluate
 		s" set hw.ata.wc=0" evaluate
 		s" set hw.eisa_slots=0" evaluate
-		s" set hint.kbdmux.0.disabled=1" evaluate
+		s" set kern.eventtimer.periodic=1" evaluate
+		s" set kern.geom.part.check_integrity=0" evaluate
 	then
 
 	menu-redraw



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204060936.q369aNCH001603>