Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jul 2005 04:37:03 +0300
From:      Sergey Gluschenko <deen@freebsd.org.ua>
To:        FreeBSD-gnats-submit@FreeBSD.org, freebsd-i386@FreeBSD.org
Cc:        delphij@frontfree.net
Subject:   Re: i386/84010: Buildkernel is broken with 'options CPU_DISABLE_SSE' in kernel conf file
Message-ID:  <20050725043703.42d5de0d.deen@freebsd.org.ua>
In-Reply-To: <200507241820.j6OIKGIS048017@freefall.freebsd.org>
References:  <200507241818.j6OIIKdL036862@www.freebsd.org> <200507241820.j6OIKGIS048017@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
According to this patch: 
	http://freebsd.rambler.ru/bsdmail/freebsd-arch_2005/msg00626.html
we need to clean up all CPU_ENABLE_SSE in kernel, as Ruslan said:
	http://freebsd.rambler.ru/bsdmail/freebsd-arch_2005/msg00627.html
But we need working "options CPU_DISABLE_SSE", so I decided to replace
all "#ifdef CPU_ENABLE_SSE" to "#ifndef CPU_DISABLE_SSE" and
all "#if defined(CPU_ENABLE_SSE)" to "#if !defined(CPU_DISABLE_SSE)"

Also, #include "opt_cpu.h" was missing in sys/i386/i386/ptrace_machdep.c

After all this changes the reported problem is gone.

Here the patches:
	http://xlab.users.sevsky.net/freebsd/sys_i386_i386_initcpu.c.diff
	http://xlab.users.sevsky.net/freebsd/sys_i386_i386_machdep.c.diff
	http://xlab.users.sevsky.net/freebsd/sys_i386_i386_pmap.c.diff
	http://xlab.users.sevsky.net/freebsd/sys_i386_i386_ptrace_machdep.c.diff
	http://xlab.users.sevsky.net/freebsd/sys_i386_isa_npx.c.diff
	http://xlab.users.sevsky.net/freebsd/sys_i386_linux_linux_ptrace.c.diff (not tested!)
	http://xlab.users.sevsky.net/freebsd/sys_pc98_pc98_machdep.c.diff (not tested!)


--
Sergey Gluschenko





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