Commit graph

82 commits

Author SHA1 Message Date
Imbus
a6ae43f583 Convert from uart_puts to kprintf 2025-09-02 00:17:34 +02:00
Imbus
7018424278 stdio kprintf working 2025-09-02 00:17:12 +02:00
Imbus
a1f592c880 Stddef NULL 2025-09-02 00:15:58 +02:00
Imbus
0df09d5086 Spinlock cleaning 2025-09-01 23:41:11 +02:00
Imbus
eec052bafa Typedef some common structs 2025-09-01 23:41:00 +02:00
Imbus
52f88785c4 Pin to gnu99 2025-09-01 23:09:13 +02:00
Imbus
23a41dfbdd Split some cflags 2025-09-01 23:05:31 +02:00
Imbus
c8abe9e1aa Put bool into stdbool.h 2025-09-01 23:05:23 +02:00
Imbus
b24035c51f Branch out all kernel objects into a KERNEL_OBJ variable 2025-09-01 22:57:48 +02:00
Imbus
ca844d89e4 Remove junk main from makefile 2025-09-01 22:57:31 +02:00
Imbus
1c279c9d4d Note about mini-printf 2025-09-01 22:53:31 +02:00
Imbus
4bb015745a Yeet kprint 2025-09-01 22:47:55 +02:00
Imbus
f1fd7de79f Mass reformat 2025-09-01 22:43:50 +02:00
Imbus
3450ab2cb8 Format target 2025-09-01 22:43:19 +02:00
Imbus
3a476fa195 bool 2025-09-01 22:42:18 +02:00
Imbus
85ffed0c20 Unify spinlocks 2025-09-01 22:38:50 +02:00
Imbus
c1a2c75054 Fix qemu target 2025-09-01 22:33:03 +02:00
Imbus
b9f3a25595 Move kernel.elf into kern 2025-09-01 22:29:55 +02:00
Imbus
438f85dc79 fd -> find 2025-09-01 22:25:24 +02:00
Imbus
a79af996e1 Move kernel related files into kernel 2025-09-01 22:24:15 +02:00
Imbus
f28082f98f Ignore toolchain 2025-09-01 22:22:40 +02:00
Imbus
c52e19de83 Major restructure 2025-09-01 22:22:35 +02:00
Imbus
0562c2fe5a Figure out core count in a somewhat sane manner 2025-08-27 22:07:56 +02:00
Imbus
97c13200d2 NCPU to 4 2025-08-27 22:07:38 +02:00
Imbus
265a388c93 Inline nops in spinlock spin routine 2025-08-27 22:07:30 +02:00
Imbus
ee2ddd7e8c Warn for unused results 2025-08-18 11:17:13 +02:00
Imbus
1aed6c0715 Add some notes and links on libc implementations 2025-08-18 11:16:02 +02:00
Imbus
ddddf903dc Notes in ispinlock 2025-08-16 16:12:01 +02:00
Imbus
97e2508516 ispinlock make, phony all 2025-08-16 15:50:38 +02:00
Imbus
b0fe61094d proc calloc 2025-08-16 15:48:08 +02:00
Imbus
39ef34d41e Restructure, use ispinlock 2025-08-16 15:01:01 +02:00
Imbus
608968668b Types 2025-08-16 15:00:01 +02:00
Imbus
74a39e1822 kprint 2025-08-16 14:59:27 +02:00
Imbus
dc0487648a ispinlock 2025-08-16 14:59:24 +02:00
Imbus
6c3030c896 Libkern string 2025-08-16 14:57:54 +02:00
Imbus
f45d2a29fc Clang-format update 2025-08-16 14:47:10 +02:00
Imbus
b8bf28f597 Format 2025-08-08 01:51:32 +02:00
Imbus
bccc0b5200 Nasty unfixed bug related to spinlock panics 2025-06-26 14:45:45 +02:00
Imbus
d9896b4229 Purge fancy register macros, use inline assembly instead 2025-06-26 13:51:22 +02:00
Imbus
d855404c01 Revert to legacy mycpu() and cpuid() 2025-06-26 13:51:06 +02:00
Imbus
2aa06778b3 riscv.h, start.c: Some changed and some new machine specific routines 2025-06-26 13:30:45 +02:00
Imbus
b8474a12fc .clang-format: AlignConsecutiveMacros: true 2025-06-26 13:28:43 +02:00
Imbus
00bc2aa300 Use new API 'read_tp()' in proc.c mycpu() 2025-06-26 13:28:08 +02:00
Imbus
bd7959cc6c kalloc.[ch] from xv6, memory.[ch] containing memory probing algorithm and constants 2025-06-26 13:27:35 +02:00
Imbus
58ed873401 New type in types.h: size_t (u64) 2025-06-26 12:04:40 +02:00
Imbus
f2685ce7df Symbol rename in linker.ld: end -> kernel_end 2025-06-26 12:04:11 +02:00
Imbus
e82b75f8f0 Header: endian.h with endianness conversion functions 2025-06-26 12:03:02 +02:00
Imbus
71ff137192 Rename struct: spinlock -> Spinlock 2025-06-26 12:02:41 +02:00
Imbus
521217f2b5 String.[ch]: memset, memcpy, memmove, memcmph and strlen, strnlen 2025-06-26 12:01:53 +02:00
Imbus
be50854251 proc.c: Simplify mycpu(), remove cpuid() for now as it is only a front for r_tp() 2025-06-26 10:29:40 +02:00