From ab1ac381ea3ff6fa93821faa8c4efed1ee30d569 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 27 Aug 2000 22:03:46 +0000 Subject: [PATCH] add outb for when optimisations are turned off --- source/vid_svgalib.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/vid_svgalib.c b/source/vid_svgalib.c index 4fea969..433ada3 100644 --- a/source/vid_svgalib.c +++ b/source/vid_svgalib.c @@ -1020,3 +1020,7 @@ char *VID_ModeInfo (int modenum) } } +void outb(unsigned char value, unsigned short port) +{ + __asm__ __volatile__ ("outb %b0,%w1" : : "a" (value) , "Nd" (port)); +}