XHCI works on real hardware!
This commit is contained in:
@@ -58,7 +58,7 @@ static struct pg_index mm_page_index (uint64_t vaddr) {
|
||||
/* Walk paging tables and allocate necessary structures along the way */
|
||||
static uint64_t* mm_next_table (uint64_t* table, uint64_t entry_idx, bool alloc) {
|
||||
uint64_t entry = table[entry_idx];
|
||||
physaddr_t paddr;
|
||||
uintptr_t paddr;
|
||||
|
||||
struct limine_hhdm_response* hhdm = limine_hhdm_request.response;
|
||||
|
||||
@@ -194,7 +194,7 @@ void mm_unmap_kernel_page (uintptr_t vaddr) {
|
||||
uintptr_t mm_alloc_user_pd_phys (void) {
|
||||
struct limine_hhdm_response* hhdm = limine_hhdm_request.response;
|
||||
|
||||
physaddr_t cr3 = pmm_alloc (1);
|
||||
uintptr_t cr3 = pmm_alloc (1);
|
||||
if (cr3 == PMM_ALLOC_ERR)
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user