responsible

This commit is contained in:
spikey 2024-02-18 11:59:03 -05:00
parent a634a1d389
commit 4339305431
4 changed files with 8 additions and 6 deletions

View File

@ -3,3 +3,4 @@ echo "Kernel Build"
cc $CFLAGS -c sys/lib.c -o $OBJ/lib.o cc $CFLAGS -c sys/lib.c -o $OBJ/lib.o
cc $CFLAGS -c sys/video.c -o $OBJ/video.o cc $CFLAGS -c sys/video.c -o $OBJ/video.o
cc $CFLAGS -c sys/sysinit.c -o $OBJ/sysinit.o cc $CFLAGS -c sys/sysinit.c -o $OBJ/sysinit.o
cc $CFLAGS -c sys/kbd.c -o $OBJ/kbd.o

View File

@ -1,7 +1,9 @@
#ifndef KBD_H #ifndef KBD_H
#define KBD_H #define KBD_H
u8 inb(u16); #include <types.h>
s8 waitkey(void);
static u8 inb(u16);
u8 waitkey(void);
#endif #endif

View File

@ -11,10 +11,10 @@ inb(u16 port)
return ret; return ret;
} }
char u8
waitkey(void) waitkey(void)
{ {
char k; u8 k;
while ((k=inb(0x60))<128); while ((k=inb(0x60))<128);
while (inb(0x60)>128); while (inb(0x60)>128);

View File

@ -1,7 +1,6 @@
#include <types.h> #include <types.h>
#include <extern.h> #include <extern.h>
void void
sysinit(void) sysinit(void)
{ {
@ -12,5 +11,5 @@ sysinit(void)
char thing = waitkey(); char thing = waitkey();
vga_write(&thing, 1, 0x1F); vga_write(&thing, 1, 0x1F);
memory_init(); // memory_init();
} }