mem: improve device memory mapping
MMIO ports will no longer directly map to HHDM addresses and will need to be searched for in the memory mapping tree
This commit is contained in:
parent
24e2610a6b
commit
4dc4f07dc6
10 changed files with 111 additions and 16 deletions
|
|
@ -27,6 +27,7 @@ int vsnprintf(char *str, const char *restrict fmt, size_t size, va_list args)
|
|||
char *s;
|
||||
int i;
|
||||
long l;
|
||||
unsigned int u;
|
||||
|
||||
int n;
|
||||
|
||||
|
|
@ -77,16 +78,16 @@ int vsnprintf(char *str, const char *restrict fmt, size_t size, va_list args)
|
|||
str[ret] = i & 0xFF;
|
||||
break;
|
||||
case 'x':
|
||||
i = va_arg(args, int);
|
||||
u = va_arg(args, int);
|
||||
|
||||
n = 0;
|
||||
|
||||
memset(buf, 0, sizeof(buf));
|
||||
|
||||
do {
|
||||
buf[n] = convert[i & 0xF];
|
||||
buf[n] = convert[u & 0xF];
|
||||
n++;
|
||||
} while ((i >>= 4));
|
||||
} while ((u >>= 4));
|
||||
|
||||
goto printf_reverse;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue