From 23b70fee0f7279603aee24b6da05246be90792c9 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 29 Aug 2000 04:33:15 +0000 Subject: [PATCH] fixes for no optimisation --- source/gib_modules.c | 2 ++ source/vid_svgalib.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/source/gib_modules.c b/source/gib_modules.c index a25e4fd..d6b5221 100644 --- a/source/gib_modules.c +++ b/source/gib_modules.c @@ -4,6 +4,8 @@ #include #include +#include + #include "cvar.h" #include "console.h" #include "qargs.h" diff --git a/source/vid_svgalib.c b/source/vid_svgalib.c index 915dd1f..92db3ec 100644 --- a/source/vid_svgalib.c +++ b/source/vid_svgalib.c @@ -704,3 +704,8 @@ void VID_InitCvars () void VID_SetCaption (char *text) { } + +void outb(unsigned char value, unsigned short port) +{ + __asm__ __volatile__ ("outb %b0,%w1" : : "a" (value) , "Nd" (port)); +}