Commit Graph
67 Commits
Author SHA1 Message Date
thomas 04f2123499 Move BootGDT definition to C 2018-03-29 19:36:32 +02:00
thomas e868b83f50 At this point the threads are really processes... 2018-03-29 19:36:32 +02:00
thomas 6523b10984 Threads have isolated memory spaces 2018-03-29 19:36:32 +02:00
thomas 2d0f539e23 Create and load new page directories 2018-03-29 19:36:32 +02:00
thomas a39fdcf3ce Adding a scheduler function and cleanup 2018-03-29 19:36:32 +02:00
thomas b5f5a40fbc Further queue improvements 2018-03-21 23:12:43 +01:00
thomas e5da45df2f Queue improvements 2018-03-21 23:12:43 +01:00
thomas 8af18644a3 Interface cleanup 2018-03-21 23:12:43 +01:00
thomas 024d772be8 Queues using some macro magic 2018-03-21 23:12:43 +01:00
thomas fd0ca6f617 Rename some stuff - cleanup 2018-03-21 23:12:43 +01:00
thomas 13946b1758 Pass around tcbs instead of thread stacks 2018-03-21 23:12:43 +01:00
thomas 1fca5af522 Change interface for getting and setting current thread 2018-03-21 23:12:43 +01:00
thomas c26434f814 Some threading code cleanup 2018-03-21 23:12:43 +01:00
thomas 251b5f71c9 Simple scheduler 2018-03-21 23:12:43 +01:00
thomas 1e2f81a5d8 Very simple threading and context switching. 2018-03-21 23:12:43 +01:00
thomas fc6c7f3bc7 VMM -- Interface cleanup 2018-03-21 09:21:40 +01:00
thomas 9bc1abceff VMM -- Touch and set page in one operation 2018-03-20 14:11:22 +01:00
thomas df0df93da7 Don't put multiboot data in page stack 2018-03-20 14:11:22 +01:00
thomas 36c517dd82 Use a direct address for P4 rather than a pointer 2018-03-20 14:11:22 +01:00
thomas 8711fee390 Interface cleanup 2018-03-20 14:11:22 +01:00
thomas 9a479b1132 Add a PAGE_GLOBAL flag for kernel pages 2018-03-20 14:11:22 +01:00
thomas 3a4136c225 PMM -- calloc function for getting cleared pages 2018-03-20 14:11:22 +01:00
thomas 5dc4e27392 Map all free memory pages and add to page stack 2018-03-20 14:11:22 +01:00
thomas 8ac8bc7b6c VMM -- adding interface to header file 2018-03-20 14:11:22 +01:00
thomas 1a7852de4d PMM -- finishing up and changing names, types 2018-03-20 14:11:21 +01:00
thomas 80cc165957 Read memory map tags from multiboot 2018-03-20 14:11:21 +01:00
thomas 73a33c23a4 Clean up header file for interrupts 2018-03-20 14:11:21 +01:00
thomas 6f0a745adc Ability to bind handler functions to interrupts 2018-03-20 14:11:21 +01:00
thomas c1c3842ace Functions for reading/writing some special registers 2018-03-20 14:11:21 +01:00
thomas 96d2ebd977 Collect the cpu specific stuff 2018-03-20 14:11:21 +01:00
thomas 6cbdb8f7de Remove magic numbers 2018-03-20 14:11:21 +01:00
thomas 127d6ca5a4 Interrupt cleanup 2018-03-20 14:11:21 +01:00
thomas e4e891bb86 Clean up interface 2018-03-20 14:11:21 +01:00
thomas 79ca4681ff Make tests independent of structures in header files 2018-03-20 14:11:21 +01:00
thomas 49f7738be2 Parse multiboot information 2018-03-20 14:11:21 +01:00
thomas 9e2483d78e Halt-And-Catch-Fire macro 2018-03-20 14:11:21 +01:00
thomas 2da088f031 Clean up interface 2018-03-20 14:11:21 +01:00
thomas 0659cf73f6 Some more debug macros 2018-03-20 14:11:21 +01:00
thomas 572bee19cc Add ability to disable debug printing and gdb symbols 2018-03-20 14:11:21 +01:00
thomas a9831c1038 A macro for debug printing 2018-03-20 14:11:21 +01:00
thomas a652bbb05e Remove magic numbers 2018-03-20 14:11:21 +01:00
thomas 4f00d428bf Writing (debug output) to screen 2018-03-20 14:11:21 +01:00
thomas 954696728c Add memory copy and move functions. Required by gcc, and we'll also use
them soon
2018-03-20 14:11:21 +01:00
thomas 034a870ac7 Sending data (debug printing) to serial port 2018-03-20 14:11:21 +01:00
thomas d05ddfeab4 Debug printing functions 2018-03-20 14:11:21 +01:00
thomas 81730fe96a Move ttest include file 2018-03-20 14:11:21 +01:00
thomas b82405a4c4 Make BEFORE and AFTER definiton function-like 2018-03-20 14:11:21 +01:00
thomas e29262e9aa Add AFTER() for cleanup 2018-03-20 14:11:21 +01:00
thomas 187d131ab0 Nicer test error output 2018-03-20 14:11:21 +01:00
thomas 512e1a988a Make test definitions more function like 2018-03-20 14:11:21 +01:00