Skip to content

Commit 0c61bb1

Browse files
committed
FIXED
1 parent 8823696 commit 0c61bb1

156 files changed

Lines changed: 543 additions & 336 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define AI_MODEL_H
33

44
#include "fixedpoint.h"
5-
#include "gguf.h"
5+
#include "ai/gguf.h"
66
#include "types.h"
77

88
#define AI_MODEL_VIRT_BASE 0xE0000000u
File renamed without changes.

include/arch/x86/cpu.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
#include "types.h"
55

6-
struct registers {
6+
typedef struct registers {
77
uint32_t gs, fs, es, ds;
88
uint32_t edi, esi, ebp, esp, ebx, edx, ecx, eax;
99
uint32_t int_no, err_code;
1010
uint32_t eip, cs, eflags, useresp, ss;
11-
};
11+
} registers_t;
1212

1313
#define LAPIC_BASE 0xFEE00000
1414
#define LAPIC_ID 0x0020

include/mmu.h renamed to include/arch/x86/mmu.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ void mmu_destroy_space(uintptr_t* dir);
4545
// Fault handling
4646
uintptr_t mmu_get_fault_addr(void);
4747

48+
// Temporary mapping for physical memory access
49+
void* mmu_map_temp(uintptr_t phys);
50+
void mmu_unmap_temp(void);
51+
void* mmu_map_temp2(uintptr_t phys);
52+
void mmu_unmap_temp2(void);
53+
54+
// TLB management
55+
void mmu_tlb_flush(uintptr_t addr);
56+
void mmu_tlb_flush_all(void);
57+
4858
// x86 Specific (move to arch/x86/mmu.h if exists)
4959
void mmu_enable_pse(void);
5060
void mmu_enable_paging(void);

include/cpu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int interrupts_enabled(void);
3535
uint32_t cpu_get_id(void);
3636
uint32_t cpu_get_count(void);
3737

38-
#include "mmu.h"
38+
#include "arch/x86/mmu.h"
3939

4040
// TLB management
4141
static inline void tlb_flush(uintptr_t addr) { mmu_tlb_flush(addr); }
File renamed without changes.

0 commit comments

Comments
 (0)