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

@@ -54,7 +54,7 @@ void* mmap (void* addr, size_t size, int prot, int flags, int fd, size_t off) {
size = div_align_up (size, PAGE_SIZE);
physaddr_t p_addr = pmm_alloc (size);
uintptr_t p_addr = pmm_alloc (size);
if (p_addr == PMM_ALLOC_ERR)
return (void*)-1;
@@ -75,7 +75,7 @@ int munmap (void* addr, size_t length) {
struct limine_hhdm_response* hhdm = limine_hhdm_request.response;
physaddr_t p_addr = (uintptr_t)addr - hhdm->offset;
uintptr_t p_addr = (uintptr_t)addr - hhdm->offset;
pmm_free (p_addr, length);