diff options
author | Daniel Dickman <daniel@cvs.openbsd.org> | 2022-08-15 04:17:52 +0000 |
---|---|---|
committer | Daniel Dickman <daniel@cvs.openbsd.org> | 2022-08-15 04:17:52 +0000 |
commit | 1ab0837bd133d2ef84edcdcb6d494373fd2f0c5c (patch) | |
tree | eea1705bdf18f67cb1eb9b703a55928bbbd85744 /sys/arch/amd64/stand | |
parent | 4400587544b28b093320cdd1a6287ecc0fa17942 (diff) |
drop detection code for 386sx/386dx CPUs
OpenBSD/i386 doesn't actually support running on 386sx or 386dx CPUs
so we don't need to test whether we're running on one of these CPUs
anymore.
The 486 (which was launched in 1989) added a few new features over
the 386:
- an alignment check flag in EFLAGS
- 3 new userland instructions: bswap / cmpxchg / xadd
- 3 new kernel mode instructions: invd / wbinvd / invlpg
- new bits in CR0 (386 CPUs did not support ring0 write protection)
- new bits in CR3
In this diff, we remove the code that checks for the alignment check
flag as we've only supported Pentium (or newer) CPUs for some time.
The rest of the diff is about updating comments related to pre-486
CPUs. 2 files under arch/amd64 are updated to keep them in sync
with the arch/i386 updates.
ok mlarkin@, jsg@; tweak from miod@
Diffstat (limited to 'sys/arch/amd64/stand')
-rw-r--r-- | sys/arch/amd64/stand/mbr/mbr.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/stand/mbr/mbr.S b/sys/arch/amd64/stand/mbr/mbr.S index 8099532d35f..6fd9e6ade88 100644 --- a/sys/arch/amd64/stand/mbr/mbr.S +++ b/sys/arch/amd64/stand/mbr/mbr.S @@ -1,4 +1,4 @@ -/* $OpenBSD: mbr.S,v 1.7 2022/06/27 16:10:09 deraadt Exp $ */ +/* $OpenBSD: mbr.S,v 1.8 2022/08/15 04:17:50 daniel Exp $ */ /* * Copyright (c) 1997 Michael Shalayeff and Tobias Weingartner @@ -112,7 +112,7 @@ start: * * Accordingly, this code will fail on very early 8086/88s, but * nick@ will just have to live with it. Others will note that - * we require an 80386 (or compatible) or above processor, anyway. + * we require at least a Pentium compatible processor anyway. */ /* cli */ movw %ax, %ss |