XHCI works on real hardware!

This commit is contained in:
2026-03-24 22:12:36 +01:00
parent b2e4a3802d
commit 0478570b2b
11 changed files with 215 additions and 102 deletions

View File

@@ -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;