diff options
Diffstat (limited to 'sys/arch/i386/stand/libsa/machdep.c')
-rw-r--r-- | sys/arch/i386/stand/libsa/machdep.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/i386/stand/libsa/machdep.c b/sys/arch/i386/stand/libsa/machdep.c index 1e77754e561..e4676e351a2 100644 --- a/sys/arch/i386/stand/libsa/machdep.c +++ b/sys/arch/i386/stand/libsa/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.36 2007/04/27 10:08:34 tom Exp $ */ +/* $OpenBSD: machdep.c,v 1.37 2015/09/02 04:09:24 yasuoka Exp $ */ /* * Copyright (c) 2004 Tom Cosgrove @@ -32,6 +32,10 @@ #include <machine/apmvar.h> #include <machine/biosvar.h> +#ifdef EFIBOOT +#include "efiboot.h" +#endif + volatile struct BIOS_regs BIOS_regs; #if defined(DEBUG) && !defined(_TEST) @@ -66,5 +70,9 @@ machdep(void) int check_skip_conf(void) { /* Return non-zero (skip boot.conf) if Control "shift" key down */ +#ifndef EFIBOOT return (pc_getshifts(0) & 0x04); +#else + return (efi_cons_getshifts(0) & 0x04); +#endif } |