Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/i386 If there is no BIOS32 present, don't try ...



details:   https://anonhg.NetBSD.org/src/rev/c92336678c85
branches:  trunk
changeset: 481558:c92336678c85
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Feb 02 04:09:37 2000 +0000

description:
If there is no BIOS32 present, don't try to call into it.

diffstat:

 sys/arch/i386/i386/bios32.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 8b28c1f95c6a -r c92336678c85 sys/arch/i386/i386/bios32.c
--- a/sys/arch/i386/i386/bios32.c       Wed Feb 02 04:07:50 2000 +0000
+++ b/sys/arch/i386/i386/bios32.c       Wed Feb 02 04:09:37 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bios32.c,v 1.1 1999/11/17 00:55:50 thorpej Exp $       */
+/*     $NetBSD: bios32.c,v 1.2 2000/02/02 04:09:37 thorpej Exp $       */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -142,6 +142,9 @@
        u_int32_t eax, ebx, ecx, edx;
        paddr_t entry;
 
+       if (bios32_entry.offset == 0)
+               return (0);     /* BIOS32 not present */
+
        __asm __volatile("lcall (%%edi)"
                : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
                : "0" (service), "1" (0), "D" (&bios32_entry));



Home | Main Index | Thread Index | Old Index