diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1993-10-10 06:01:44 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1993-10-10 06:01:44 +0000 |
commit | b6b2858d36987636ae3c20c242fd3f697c00b729 (patch) | |
tree | ebafbc7a6aff3b148e19148c8622433ce92876a3 /sys/amd64 | |
parent | 663605e50b6da575a248479acd61059ba8cd70be (diff) | |
download | FreeBSD-src-b6b2858d36987636ae3c20c242fd3f697c00b729.zip FreeBSD-src-b6b2858d36987636ae3c20c242fd3f697c00b729.tar.gz |
Added a compile time #error so that if the user does not specify on of
the proper I_X86CPU in the config file the following error will occur
while building the kernel: (had to line wrap the error for this message)
../../i386/i386/machdep.c:343: #error This kernel is not configured for one \
of the supported CPUs
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 80ff898..5c6570c 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.8 1993/10/08 10:47:13 rgrimes Exp $ + * $Id: machdep.c,v 1.9 1993/10/08 20:45:12 rgrimes Exp $ */ #include "npx.h" @@ -339,6 +339,9 @@ identifycpu() /* translated from hp300 -- cgd */ */ switch (cpu_class) { case CPUCLASS_286: /* a 286 should not make it this far, anyway */ +#if !defined(I386_CPU) && !defined(I486_CPU) && !defined(I586_CPU) +#error This kernel is not configured for one of the supported CPUs +#endif #if !defined(I386_CPU) case CPUCLASS_386: #endif |