summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/specialreg.h
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1998-10-06 13:16:29 +0000
committerkato <kato@FreeBSD.org>1998-10-06 13:16:29 +0000
commit5c811970f93597f910f75c2df6a06a262c02984f (patch)
tree15b2411727db7060104658127a54dd17de6e7b9a /sys/amd64/include/specialreg.h
parentf37c35755da9a0f27e648ac1ffc453524689aac6 (diff)
downloadFreeBSD-src-5c811970f93597f910f75c2df6a06a262c02984f.zip
FreeBSD-src-5c811970f93597f910f75c2df6a06a262c02984f.tar.gz
- Implement enabling write allocate on AMD K5/K6/K6-2 cpus.
The code was originaly contributed by Kelly Yancey <kbyanc@freedomnet.com> in PR i386/6269 and revised by Akio Morita <amorita@meadow.scphys.kyoto-u.ac.jp> and me. Test was performed by Akio Morita and Toshiomi Moriki <moriki@db.is.kyushu-u.ac.jp>. - Fix stylistic bug in identcpu.c. - Update copyright in initcpu.c - Fix typo in LINT. PR: 6269 and 6270
Diffstat (limited to 'sys/amd64/include/specialreg.h')
-rw-r--r--sys/amd64/include/specialreg.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/amd64/include/specialreg.h b/sys/amd64/include/specialreg.h
index c09e51a..c09c2de 100644
--- a/sys/amd64/include/specialreg.h
+++ b/sys/amd64/include/specialreg.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)specialreg.h 7.1 (Berkeley) 5/9/91
- * $Id: specialreg.h,v 1.14 1997/07/21 17:53:51 fsmp Exp $
+ * $Id: specialreg.h,v 1.15 1998/03/04 11:39:16 kato Exp $
*/
#ifndef _MACHINE_SPECIALREG_H_
@@ -258,6 +258,11 @@
#define RCR_WT 0x10 /* Write-through. */
#define RCR_NLB 0x20 /* LBA# pin is not asserted. */
+/* AMD Write Allocate Top-Of-Memory and Control Register */
+#define AMD_WT_ALLOC_TME 0x40000 /* top-of-memory enable */
+#define AMD_WT_ALLOC_PRE 0x20000 /* programmable range enable */
+#define AMD_WT_ALLOC_FRE 0x10000 /* fixed (A0000-FFFFF) range enable */
+
#ifndef LOCORE
static __inline u_char
OpenPOWER on IntegriCloud