wip: memory change
This commit is contained in:
@ -1,9 +1,13 @@
|
||||
#include "alloc.h"
|
||||
#include "debug.h"
|
||||
#include "keyboard.h"
|
||||
#include "kprintf.h"
|
||||
#include "memory.h"
|
||||
#include "power.h"
|
||||
#include "terminal.h"
|
||||
|
||||
extern uint32_t page_table1[1024];
|
||||
|
||||
void kpanic(const char *format, ...)
|
||||
{
|
||||
va_list va;
|
||||
@ -16,6 +20,9 @@ void kpanic(const char *format, ...)
|
||||
uint32_t faulting_address;
|
||||
__asm__ __volatile__("mov %%cr2, %0" : "=r"(faulting_address));
|
||||
kprintf("fault at address: %p\n", faulting_address);
|
||||
/* for (int i = 16; i < 32; i++) */
|
||||
/* kprintf("%p\n", page_table1[i]); */
|
||||
show_valloc_mem();
|
||||
/* kprintf("\n\n"); */
|
||||
/* print_stack(); */
|
||||
/* kprintf("\n\n"); */
|
||||
|
Reference in New Issue
Block a user