From 0054a46d1da472a8c044dcb4449842b9ae7f44c2 Mon Sep 17 00:00:00 2001 From: Juli Mallett Date: Wed, 14 Aug 2002 18:07:09 +0000 Subject: Document why the has_f00f_bug variable is initialised rather than placed into the BSS (so that it can be binary-patched). Inspired by: bde --- sys/amd64/amd64/identcpu.c | 2 +- sys/i386/i386/identcpu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/amd64/amd64/identcpu.c b/sys/amd64/amd64/identcpu.c index c987bd19ccec..90a57d345ac5 100644 --- a/sys/amd64/amd64/identcpu.c +++ b/sys/amd64/amd64/identcpu.c @@ -115,7 +115,7 @@ static struct cpu_nameclass i386_cpus[] = { }; #if defined(I586_CPU) && !defined(NO_F00F_HACK) -int has_f00f_bug = 0; +int has_f00f_bug = 0; /* Initialized so that it can be patched. */ #endif void diff --git a/sys/i386/i386/identcpu.c b/sys/i386/i386/identcpu.c index c987bd19ccec..90a57d345ac5 100644 --- a/sys/i386/i386/identcpu.c +++ b/sys/i386/i386/identcpu.c @@ -115,7 +115,7 @@ static struct cpu_nameclass i386_cpus[] = { }; #if defined(I586_CPU) && !defined(NO_F00F_HACK) -int has_f00f_bug = 0; +int has_f00f_bug = 0; /* Initialized so that it can be patched. */ #endif void -- cgit v1.3