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)); +}