wm: teppich

Download patch

ref: 955c19f31b529241b31b780d4c65fa7e5bef4de3
parent: e96c973f19c287ed575d5cc11dca00c048205f83
author: mkf <mkf@cloud9p.org>
date: Mon Dec 4 11:31:17 EST 2023

dont inline

try to be compatible with ANSI C (should come handy later i guess)

--- a/include/x86.h
+++ b/include/x86.h
@@ -9,5 +9,5 @@
 #define VGAC 0x3d4
 #define VGAD 0x3d5
 
-extern inline uint8 inb(uint16 port);
-extern inline void outb(uint16 port, uint8 data);
\ No newline at end of file
+uint8 inb(uint16 port);
+void outb(uint16 port, uint8 data);
--- a/pc/x86.c
+++ b/pc/x86.c
@@ -1,13 +1,14 @@
 #include <u.h>
 
-extern inline void
+void
 outb(uint16 port, uint8 data)
 { 
 	asm volatile("out %0, %1" : : "a" (data), "d" (port));
 }
 
-extern inline uint8
-inb(uint16 port) {
+uint8
+inb(uint16 port)
+{
 	uint8 data;
 	asm volatile("in %1, %0" : "=a" (data) : "d" (port)); 
 	return data;