Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Aug 2005 18:22:12 +0200
From:      "Walter C. Pelissero" <walter@pelissero.de>
To:        freebsd-hackers@freebsd.org
Subject:   beastie.4th and SMP
Message-ID:  <17163.19764.120298.305593@zaphod.home.loc>

next in thread | raw e-mail | index | archive | help
I was wondering if anybody would care for a beastie.4th that included
a boot option which turns off SMP.  I personally believe it could make
sense where a SMP bug or a faulty MP motherboard made a boot
impossible.  It would be easier than having to open up the box and
remove a CPU.

I personally use the following patch to switch conveniently SMP-mode
on and off when I need to try DRI/DRM, which doesn't work with SMP.

-- 
walter pelissero
http://www.pelissero.de



*** /boot/beastie.4th.orig	Tue Aug 23 17:44:44 2005
--- /boot/beastie.4th	Tue Aug 23 18:06:36 2005
***************
*** 44,49 ****
--- 44,50 ----
  variable bootsafekey
  variable bootverbosekey
  variable bootsinglekey
+ variable bootnosmpkey
  variable escapekey
  variable rebootkey
  
***************
*** 161,166 ****
--- 162,168 ----
  	then
  	printmenuitem ."  Boot FreeBSD in Safe Mode" bootsafekey !
  	printmenuitem ."  Boot FreeBSD in single user mode" bootsinglekey !
+ 	printmenuitem ."  Boot FreeBSD in non-SMP mode" bootnosmpkey !
  	printmenuitem ."  Boot FreeBSD with verbose logging" bootverbosekey !
  	printmenuitem ."  Escape to loader prompt" escapekey !
  	s" arch-i386" environment? if
***************
*** 258,263 ****
--- 260,269 ----
  		then
  		dup bootsinglekey @ = if
  			s" YES" s" boot_single" setenv
+ 			0 boot
+ 		then
+ 		dup bootnosmpkey @ = if
+ 			s" 1" s" kern.smp.disabled" setenv
  			0 boot
  		then
  		dup escapekey @ = if



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