Added support for basic x86 features

Includes 'gdt', 'idt' and a serial driver
This commit is contained in:
Michael Shaw 2023-02-27 18:36:15 -05:00
commit ca5351b847
11 changed files with 231 additions and 67 deletions

View file

@ -23,7 +23,6 @@ int printf(const char *restrict fmt, ...)
{
int ret = 0;
char c;
char vac;
char *s;
int i;
@ -69,9 +68,9 @@ int printf(const char *restrict fmt, ...)
ret += printf_write(s);
break;
case 'c':
vac = va_arg(args, char);
i = va_arg(args, int);
ret++;
printf_out(vac);
printf_out(i);
}
} else {
printf_out(c);