Fix minor warnings

This commit is contained in:
2025-10-03 22:41:38 +02:00
parent fc47ff581e
commit 20b4545cae
10 changed files with 18 additions and 17 deletions

View File

@ -25,7 +25,7 @@ typedef struct BackTraceFrame {
void backtrace(BackTraceFrame *bt) {
kprintf("Backtrace:\n");
for (size_t frame = 0; bt; frame++) {
kprintf(" 0x%llx\n", bt->rip);
kprintf(" %zu: 0x%lx\n", frame, bt->rip);
bt = bt->rbp;
}
}

View File

@ -110,7 +110,7 @@ void hal_vmm_map_kern(uint64_t targetcr3) {
}
}
uint64_t hal_vmm_userproc_pml4_phys(Proc *proc) {
uint64_t hal_vmm_userproc_pml4_phys(void) {
uint8_t *cr3phys = pmm_alloc(1);
uint64_t phys = (uint64_t)cr3phys;
hal_memset(VIRT(phys), 0, HAL_PAGE_SIZE);

View File

@ -17,8 +17,6 @@ typedef struct VasRange {
uint8_t pgflags;
} PACKED VasRange;
struct Proc;
enum {
HAL_PG_PRESENT = 1<<0,
HAL_PG_RW = 1<<1,
@ -60,6 +58,6 @@ void hal_vmm_map_page(uint64_t cr3phys, uint64_t virtaddr, uint64_t physaddr, ui
uint64_t hal_vmm_current_cr3(void);
void hal_vmm_map_range(uint64_t cr3phys, void *virtstart, void *physstart, size_t size, uint32_t flags);
void hal_vmm_unmap_range(uint64_t cr3phys, void *virtstart, void *physstart, size_t size);
uint64_t hal_vmm_userproc_pml4_phys(struct Proc *proc);
uint64_t hal_vmm_userproc_pml4_phys();
#endif // HAL_VMM_H_