Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Dec 1997 17:23:36 -0500 (EST)
From:      Thomas David Rivers <rivers@dignus.com>
To:        freebsd-hackers@freefall.FreeBSD.org
Subject:   F00F patch problems for 2.2.5-RELEASE (incomplete patch.)
Message-ID:  <199712062223.RAA02916@lakes.dignus.com>

next in thread | raw e-mail | index | archive | help


Well -

 I noticed on the Web site the "official" F00F fix for 2.2.5
had been supplied.

 I got it downloaded, and applied it to my 2.2.5-RELEASE kernel source
tree... (with some questionable fuzz-factors and line offsets), only
to find it didn't work.  That is, the F00F_HACK wasn't enabled.

 For example, the patch to machdep.c has:

#if defined(I586_CPU) && !define(NO_F00F_HACK)

 which one would suppose to be fine.  

 But... the 2.2.5 release of machdep.c doesn't include "opt_cpu.h",
thus, I586_CPU isn't defined... so the F00F workaround doesn't get
compiled in... (perhaps somewhere after the 2.2.5-RELEASE cut, this
include was added?)


 trap.c suffers from this problem as well.

 
 The following diff to machdep.c and trap.c fixes the patch...

	- Dave Rivers -

*** machdep.c~	Sat Dec  6 17:07:23 1997
--- machdep.c	Sat Dec  6 17:10:33 1997
***************
*** 45,50 ****
--- 45,51 ----
  #include "opt_machdep.h"
  #include "opt_perfmon.h"
  #include "opt_userconfig.h"
+ #include "opt_cpu.h"
  
  #include <sys/param.h>
  #include <sys/systm.h>
*** trap.c~	Sat Dec  6 16:16:41 1997
--- trap.c	Sat Dec  6 17:11:03 1997
***************
*** 44,49 ****
--- 44,50 ----
  
  #include "opt_ktrace.h"
  #include "opt_ddb.h"
+ #include "opt_cpu.h"
  
  #include <sys/param.h>
  #include <sys/systm.h>



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