karina
bedb03fc37
feat: basic modules:
2026-05-03 17:59:46 +04:00
karina
08248e3f3c
WIP: modules
2026-05-03 15:49:40 +04:00
karina
2c7396353c
Readme and license
2026-05-03 13:05:55 +04:00
karina
038219772e
fix(scheduler): yield fixed and dont panic
2026-05-03 12:28:30 +04:00
karina
5ef70cc72d
feat: CPUCleanAndInvalidateCode for future EL0 support
2026-05-03 12:27:47 +04:00
karina
684c7216fe
chore: update .gitignore
2026-05-03 12:26:58 +04:00
karina
c428097ec6
fix(serial): VMPhysToHHDM
2026-05-03 12:26:46 +04:00
karina
359eaeb405
fix(VMM): use correct APTable encoding for table descriptors
...
fix(VMM): use correct APTable encoding for table descriptors
fix(vmm): changed flags to match ARMv8
2026-05-03 10:47:15 +04:00
karina
a3dc3054b8
build: added -Wno-incompatible-library-redeclaration to kernel cmakelists to disable warning
2026-05-03 00:43:31 +04:00
karina
6dd68f8162
fix: plug memory map leak, save sp_el0, dynamic UART, kill loop
...
- Bootloader: reallocate memory map buffer when ExitBootServices fails,
so GetMemoryMap doesn't scribble past the old allocation on retry.
- vectors.S: actually store sp_el0 into the exception frame. Previously
it was read into x24 and then… vanished. EL0 tasks would wake up with
a corrupted stack pointer. Not great.
- Serial: split hardcoded 0x09000000 into a fallback default; add
SerialUpdate() so the DTB-parsed UART address actually gets used.
- DTB: add bounds check on reserved[] with PMM's 3 extra slots accounted
for, so malformed/overstuffed DTBs don't silently corrupt memory.
- PMM.h: bump kVMMaxReservedRegions 128→256, define kPMMReservedRegionCount.
- Types.h: remove `#define loop while(1)`. while(true) is fine.
- Rename IOSerial* → Serial* — the IO prefix was redundant, Serial.c
already lives under IO/.
2026-05-03 00:32:30 +04:00
karina
7ff9f4ad4c
fix: use rounded bitmap size in VMM kernel mapping calculation
2026-05-02 23:17:09 +04:00
karina
5673c44a99
fix: scheduler L0 table confusion, PMM bitmap rounding, dead task handling
2026-05-02 23:01:40 +04:00
karina
272b9c8998
chore: general cleanup in code (removed unused includes and cosmetic stuff
2026-05-02 22:43:32 +04:00
karina
b519e69fbd
feat(panic): funMessages in panic
...
feat(rand): also implemented rand
2026-04-30 13:10:07 +04:00
hwachakarter
fa6e8dfe7c
Merge pull request #17 from 0xKSor/feat/scheduler
...
feat(scheduler): working scheduler
2026-04-29 22:05:59 +09:00
karina
e06abbcb23
feat(scheduler): working scheduler
2026-04-29 17:00:11 +04:00
karina
3f51d93a4e
fix(timer): fixed warning about implict casting int to UInt64
2026-04-29 09:35:22 +04:00
hwachakarter
1f09260983
Merge pull request #16 from 0xKSor/feat/gic
...
feat: GICv2 and timer
2026-04-29 14:00:21 +09:00
karina
f3e60da11d
ref: cleaned debug logs
2026-04-29 08:59:05 +04:00
karina
8d675abae9
fix: changed phyisical timer to virtual timer
2026-04-29 08:56:34 +04:00
karina
7fcb50587e
feat: GICv2 and timer
...
fix: TimerReset in GIC.c now uses kTimerFrequency
2026-04-29 08:49:37 +04:00
hwachakarter
270aae56b4
Merge pull request #15 from 0xKSor/feat/vmm
...
feat(arm64): higher-half kernel, VMM, and working MMU bring-up
2026-04-27 21:12:09 +09:00
karina
7935a6132e
ref: cleaned code a bit
2026-04-27 07:02:56 +04:00
karina
5d010f7fb2
fix(vmm): make MMU bring-up and kernel mappings reliable
2026-04-26 23:41:57 +04:00
karina
b56b55e4b3
feat(arm64): higher-half kernel, early MMU in boot, and VMM
2026-04-26 21:47:41 +04:00
hwachakarter
3a55665bd7
Merge pull request #14 from 0xKSor/feat/pmm
...
PMM
2026-04-26 20:18:40 +09:00
karina
55335013a9
feat: completely functional PMM
2026-04-26 15:12:04 +04:00
karina
785a61b451
feat: DTB now populates VMBootMemoryMap structure.
2026-04-26 13:32:44 +04:00
hwachakarter
a05b51fca3
Merge pull request #13 from 0xKSor/refactor/build
...
build: removed drun, dcrun, crun and combined it as flags to run
2026-04-26 16:11:56 +09:00
karina
32bb6a933e
build: removed drun, dcrun, crun and combined it as flags to run
2026-04-26 11:09:56 +04:00
karina
d0948b9f2b
feat: checking bootinfo magic at the start of the kernel
2026-04-26 10:57:01 +04:00
hwachakarter
32544abb12
Merge pull request #12 from 0xKSor/feat/dtb
...
Feat/dtb
2026-04-26 15:53:55 +09:00
karina
32931021d2
feat: parsing dtb
2026-04-26 10:51:53 +04:00
karina
f15a146608
wip: dtb;
2026-04-26 10:51:53 +04:00
karina
7d68e78cb2
wip: dtb:
2026-04-26 10:51:53 +04:00
hwachakarter
8ede78359d
Merge pull request #11 from 0xKSor/feat/elf
2026-04-26 14:34:37 +09:00
karina
6698c4ab3f
feat: kernel is now elf
2026-04-26 09:32:07 +04:00
karina
1463402c6c
fix: added missing backslash in justfile
2026-04-25 16:09:32 +04:00
Karina
6d9402aac2
Merge pull request #9 from 0xKSor/build/debugging
...
Build/debugging
2026-04-25 16:06:29 +04:00
karina
77db85ccc5
build: added drun and dcrun (debugging)
2026-04-25 16:04:10 +04:00
karina
716dc37da1
fix: rename types.h to Types.h to fix clang warnings
2026-04-25 11:22:50 +04:00
hwachakarter
a7f0fa3a15
Merge pull request #8 from 0xKSor/build/switched-to-ninja
...
build: switched to ninja
2026-04-25 15:32:07 +09:00
hwachakarter
e8a686f23f
Merge pull request #7 from 0xKSor/refactor/renamed-types-to-Types
...
ref: renamed types.h to Types.h for match naming convention; also add…
2026-04-25 15:06:20 +09:00
karina
14912b8067
build: switched to ninja
2026-04-25 10:01:31 +04:00
karina
e49af76aef
ref: renamed types.h to Types.h for match naming convention; also added Align.h and Bytes.h with helpers
2026-04-25 09:56:17 +04:00
karina
b606fa23d0
feat: OSPanic(message)
2026-04-25 06:55:41 +04:00
karina
730d88f9b0
fix: preserve bootinfo pointer in kernel _start
2026-04-25 06:05:46 +04:00
hwachakarter
0d8b38a9b9
Merge pull request #6 from 0xKSor/experimental/ckernel
...
Rewrite kernel in C
2026-04-24 23:18:33 +09:00
karina
560bdc8b1d
feat: error parse in panic
2026-04-24 18:14:04 +04:00
karina
78dcfdd662
feat: formatter and oslog()
2026-04-24 16:30:02 +04:00