From 7b8e45cf88bda5368988027a14183500979e222a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwenol=C3=A9=20Beauchesne?= Date: Mon, 4 Oct 2004 05:14:54 +0000 Subject: allow ioports on x86_64 too for pcmcia support --- mdk-stage1/dietlibc/include/sys/io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mdk-stage1/dietlibc') diff --git a/mdk-stage1/dietlibc/include/sys/io.h b/mdk-stage1/dietlibc/include/sys/io.h index 5edf33a57..40a0d459b 100644 --- a/mdk-stage1/dietlibc/include/sys/io.h +++ b/mdk-stage1/dietlibc/include/sys/io.h @@ -8,7 +8,7 @@ extern int iopl(int level) __THROW; #ifndef __STRICT_ANSI__ /* anyone have a cleaner solution for this mess? */ -#ifdef __i386__ +#if defined(__i386__) || defined(__x86_64__) static inline unsigned char inb (unsigned short int port) { unsigned char _v; __asm__ __volatile__ ("inb %w1,%0":"=a" (_v):"Nd" (port)); -- cgit v1.2.1