mem: add page entry type

This commit is contained in:
Michael Shaw 2023-03-01 14:20:13 -05:00
commit 2b9d76d015
7 changed files with 100 additions and 9 deletions

View file

@ -26,6 +26,7 @@ int printf(const char *restrict fmt, ...)
char c;
char *s;
int i;
long l;
int n;
@ -82,6 +83,15 @@ int printf(const char *restrict fmt, ...)
ret++;
}
break;
case 'X':
l = va_arg(args, long);
for (uint64_t j = 0; j < (2 * sizeof(l)); j++) {
int sel = ((sizeof(l) * 2) - j - 1) * 4;
int num = (l >> sel) & 0xF;
printf_out(convert[num]);
ret++;
}
break;
default:
printf_out(c);
ret++;