Commit Graph

107 Commits

Author SHA1 Message Date
Quinten Kock 627150b170 implement CPUID 2021-01-30 22:10:11 +01:00
Quinten Kock 062917d75b x86_64: replace comptime loop by GAS wrapper 2021-01-30 22:08:38 +01:00
Quinten Kock 0d10e698da add arch-specific stuff safely 2020-12-26 23:24:33 +01:00
Quinten Kock ab2ef5a415 reduce static kernel memory 2020-12-26 23:24:12 +01:00
Quinten Kock c7b7137292 add seperate sections 2020-12-26 23:23:43 +01:00
Quinten Kock 940f077480 fix compile 2020-12-26 02:24:15 +01:00
Quinten Kock d7e2df626d import arch-specific stuff in kernel-main 2020-12-26 02:18:32 +01:00
Quinten Kock b34cb5f8b4 support custom zig toolchains 2020-12-26 02:17:10 +01:00
Quinten Kock c9bd4ffa25 add mmap command to gdb 2020-12-23 04:54:12 +01:00
Quinten Kock 2fa8e37547 fix double-free 2020-12-23 04:13:50 +01:00
Quinten Kock 7398da9662 add basic and highly inaccurate time support 2020-12-23 04:11:00 +01:00
Quinten Kock 8b4bd0610b kernel.debug: make debugwriters public 2020-12-23 04:10:29 +01:00
Quinten Kock 725b2bd873 properly cleanup std.fs.Walker in build.zig 2020-12-23 04:10:05 +01:00
Quinten Kock 29bc4daf9e set up 1mb of static kernel-allocable memory 2020-12-23 04:09:38 +01:00
Quinten Kock a740f46ec3 print build-CPU info on boot 2020-12-21 15:03:23 +01:00
Quinten Kock 1604f22afd i386-stivale2: optimize linkscript 2020-12-21 14:48:46 +01:00
Quinten Kock f6a6cb63b1 Switch back to specifying build type on CLI 2020-12-21 14:38:55 +01:00
Quinten Kock 14affd5c79 Print less info about framebuffers to reduce binsize 2020-12-21 13:42:49 +01:00
Quinten Kock 1d8f06e8cf zigk: Implement debug printing 2020-12-21 13:42:32 +01:00
Quinten Kock e743d602a6 add $ZIGFLAGS to kernel/Makefile 2020-12-21 13:40:07 +01:00
Quinten Kock b5eaaf9112 Make building small again (in release mode) 2020-12-21 13:39:24 +01:00
Quinten Kock 75de049cbc stivale2-memmap: print location human-readably 2020-12-21 11:58:47 +01:00
Quinten Kock 58808d6590 x86_64-stivale2: increase stack size to 16k 2020-12-21 01:09:55 +01:00
Quinten Kock 41c6789687 i386-stivale2: fix stack 2020-12-19 18:26:23 +01:00
Quinten Kock 5535db2488 Build i386 for 80386 (TODO: add others like P4) 2020-12-19 18:25:57 +01:00
Quinten Kock ae884cc94b disable SSE 2020-12-19 02:36:04 +01:00
Quinten Kock e0c8cb32a5 disable setting cache-root 2020-12-18 20:56:16 +01:00
Quinten Kock 5a20cbd11b zbs: fix i386 2020-12-18 20:15:18 +01:00
Quinten Kock da37355d83 switch to zig build --prefix 2020-12-18 20:01:05 +01:00
Quinten Kock 1b75b576ad Migrate kernel to zig build 2020-12-18 19:44:51 +01:00
Quinten Kock e19165963b fix incorrect KEEP in linker.ld 2020-12-17 18:54:48 +01:00
Quinten Kock 25262960d9 add basic interrupt support 2020-12-14 23:10:58 +01:00
Quinten Kock 340557f5ab remove info.nasm 2020-12-14 23:08:36 +01:00
Quinten Kock bf7bb4443f kernel: add -mno-red-zone 2020-12-14 23:08:12 +01:00
Quinten Kock 03701dd96b initial work for aarch64 support 2020-12-11 02:38:48 +01:00
Quinten Kock 5383bf80d3 Merge branch 'master' of ssh://git.dehosting.club:3022/quintenk/kornos 2020-12-09 14:31:13 +01:00
Quinten Kock bb9ffb43ef make GDT printing work on all platforms 2020-12-09 14:30:34 +01:00
Quinten Kock 61c5386355 reenable normal Makefile echoing 2020-12-08 15:33:21 +01:00
Quinten Kock 7d257b014a add panicking from assembly 2020-12-08 12:21:05 +01:00
Quinten Kock 026e6d0e1a load my own fking GDT woop 2020-12-08 01:37:33 +01:00
Quinten Kock eb42be6dc4 Sleep before opening GDB to allow it to connect reliably 2020-12-08 01:37:19 +01:00
Quinten Kock 529c1e2a80 make printing GDT work on both x86 2020-12-07 23:07:42 +01:00
Quinten Kock fb71a09ec4 Update readme.md 2020-12-07 23:01:59 +01:00
Quinten Kock 9c51d9da98 Add README.md 2020-12-07 22:56:37 +01:00
Quinten Kock b0e433fca2 pretty-print GDT entries 2020-12-07 22:48:28 +01:00
Quinten Kock 22d75a4d43 add "make gdb" target 2020-12-07 21:51:01 +01:00
Quinten Kock 2a0b5ed86e Merge branch 'master' of ssh://git.dehosting.club:3022/quintenk/kornos 2020-12-07 21:31:08 +01:00
Quinten Kock 1229393a8c Add newline() 2020-12-07 21:30:44 +01:00
Quinten Kock 0b5c7ebcfb Let HCF print on interrupt 2020-12-07 21:30:38 +01:00
Quinten Kock f0c7411c61 Fix compiler warnings 2020-12-07 21:30:28 +01:00