Added support for basic x86 features
Includes 'gdt', 'idt' and a serial driver
This commit is contained in:
parent
39ed861359
commit
ca5351b847
11 changed files with 231 additions and 67 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue