Commit Graph
100 Commits
Author SHA1 Message Date
thomas ce937c8088 VMM - free_page does not unset P2 entry if P1 is not empty 2018-03-20 14:11:22 +01:00
thomas 96a877c95b VMM - touch_page stops at P2 for huge pages 2018-03-20 14:11:22 +01:00
thomas e68698ff80 VMM - set_page does not overwrite 4kb pages with 2mb 2018-03-20 14:11:22 +01:00
thomas 518eaf73c3 VMM - set_page sets 2Mb pages 2018-03-20 14:11:22 +01:00
thomas f81e5cd8b0 VMM - get_page gets 2mb pages 2018-03-20 14:11:22 +01:00
thomas 69022cadd5 VMM -- refactoring, break out test for page presence 2018-03-20 14:11:22 +01:00
thomas d54a206f82 VMM - free_page returns P1 to PMM if empty 2018-03-20 14:11:22 +01:00
thomas 46e27fb817 VMM - free_page deos not unset P2 entry if P1 is not empty 2018-03-20 14:11:22 +01:00
thomas 992930d293 VMM - free_page deos not unset P2 entry if not asked to 2018-03-20 14:11:22 +01:00
thomas 3134a1d6ad VMM - free_page unsets P2 entry if P1 is empty 2018-03-20 14:11:22 +01:00
thomas e62c167494 VMM -- refactor page table setup in tests 2018-03-20 14:11:22 +01:00
thomas 063c065d2f VMM - free_page unsets page 2018-03-20 14:11:22 +01:00
thomas bbd220a395 VMM -- test refactoring 2018-03-20 14:11:22 +01:00
thomas f78500d603 PMM -- Make sure stuff works even with V2P and P2V 2018-03-20 14:11:22 +01:00
thomas acf9a43980 VMM - touch_page fails if out of pages 2018-03-20 14:11:22 +01:00
thomas 59ffd9d5f5 VMM - touch_page sets flags 2018-03-20 14:11:22 +01:00
thomas 86d8aea9ea VMM - touch_page adds P2 and P1 2018-03-20 14:11:22 +01:00
thomas 1d4b689215 VMM - touch_page adds P3 2018-03-20 14:11:22 +01:00
thomas 28c8afe3c5 VMM - set_page with tests 2018-03-20 14:11:21 +01:00
thomas cd7ed38a40 VMM -- get_page should include flags 2018-03-20 14:11:21 +01:00
thomas 57482136ae VMM - get_page fails if PTE not present 2018-03-20 14:11:21 +01:00
thomas d32e93b72b VMM - get_page works for different address 2018-03-20 14:11:21 +01:00
thomas 1ad156902a VMM - get_page ignores flags -- also restructuring - bad Thomas! 2018-03-20 14:11:21 +01:00
thomas 1b928b3c97 VMM - get_page returns correct address 2018-03-20 14:11:21 +01:00
thomas 1a7852de4d PMM -- finishing up and changing names, types 2018-03-20 14:11:21 +01:00
thomas 28916257f1 PMM -- Fix type for pointer to next block 2018-03-20 14:11:21 +01:00
thomas 82fbafc38e PMM -- Convert between virtual and physical address 2018-03-20 14:11:21 +01:00
thomas 1daf8ed47b PMM - alloc two pages 2018-03-20 14:11:21 +01:00
thomas e7bdea771b PMM - alloc zero after all free pages 2018-03-20 14:11:21 +01:00
thomas 9b930ae5d3 PMM - alloc return 0 if no free pages 2018-03-20 14:11:21 +01:00
thomas 776fd87862 PMM - alloc returns freed page 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 0b3648de7c Chapter 8: Exceptions - COMPLETE 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 b801c7cf3c Make tests unassuming 2018-03-20 14:11:21 +01:00
thomas 86808bce0d Breakpoint in int_handler. Function for checking fault in gdb 2018-03-20 14:11:21 +01:00
thomas 61bc1221bf Make python script py3 compatible 2018-03-20 14:11:21 +01:00
thomas 83e204e52e Change the way python generates .o files via .S 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 cbcc67fc31 Quick and dirty IDT setup 2018-03-20 14:11:21 +01:00
thomas 25ef5f4688 Chapter 7: Multiboot Data - COMPLETE 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 9dbbc7013c Use debug macros 2018-03-20 14:11:21 +01:00
thomas 497bdef9f4 Debug print some of the multiboot data 2018-03-20 14:11:21 +01:00
thomas 49f7738be2 Parse multiboot information 2018-03-20 14:11:21 +01:00
thomas d0b946f327 Chapter 6: Debug Output - COMPLETE 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 e6d046d593 A bit of cleanup in vga functions 2018-03-20 14:11:21 +01:00
thomas 15bbfd6e6a A real memmove function 2018-03-20 14:11:21 +01:00
thomas 042f61bdb3 Add padding to field width (right adjust) 2018-03-20 14:11:21 +01:00
thomas 0f5445da62 Script for viewing the serial log in glorious technicolor 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 b50b32afa9 Move VGA cursor when writing to screen 2018-03-20 14:11:21 +01:00
thomas 055c41adb3 Scrolling screen when necessary 2018-03-20 14:11:21 +01:00
thomas 4f00d428bf Writing (debug output) to screen 2018-03-20 14:11:21 +01:00
thomas b9e9df32f5 Tests for memory copy and write functions 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 c19bc51bdc Output serial to a file 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 a766726065 CLEANUP - Remove test tests 2018-03-20 14:11:21 +01:00
thomas 6730c599d2 Chapter 5: Unit Testing - COMPLETE 2018-03-20 14:11:21 +01:00
thomas 6f463b17d3 Turn off debug functions when testing 2018-03-20 14:11:21 +01:00
thomas 6c30e282ef Add tests for pointer comparison 2018-03-20 14:11:21 +01:00
thomas 498a78cd9f Tougher tests, and test the tests. 2018-03-20 14:11:21 +01:00
thomas 2b8fa6047d Use for instead of while - just a bit of cleanup 2018-03-20 14:11:21 +01:00
thomas 126ed26b3d A lot of refactoring 2018-03-20 14:11:21 +01:00
thomas 52846ceeac I just discovered __attribute__((constructor))! 2018-03-20 14:11:21 +01:00
thomas 71bee24e51 Make stuff happen in the right order 2018-03-20 14:11:21 +01:00
thomas dbd2017df7 A bit cleaner error string handling 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
thomas 826885df8a Make ttest compile under clang 2018-03-20 14:11:21 +01:00
thomas ad74123882 Handle null pointers in string comparisons 2018-03-20 14:11:21 +01:00
thomas cfa1a15076 Define TTEST when ttesting. Also allow multiple assertions per test 2018-03-20 14:11:21 +01:00
thomas 1b80c00658 Fix overflow bug when comparing strings 2018-03-20 14:11:21 +01:00
thomas e50fbff2d1 Handle compilation errors of tests 2018-03-20 14:11:21 +01:00
thomas 96849d6600 Keep going if a test fails, but report it 2018-03-20 14:11:21 +01:00
thomas cba19b62df More assertions and catching crashes 2018-03-20 14:11:21 +01:00
thomas 337d2cb032 Correct filenames in test error output 2018-03-20 14:11:21 +01:00
thomas faaedb212d A simple testing framework 2018-03-20 14:11:21 +01:00
thomas a908284dc6 Chapter 4: Higher Half Kernel - COMPLETE 2018-03-20 14:10:03 +01:00
thomas 823560d3ae Simplify P2V and V2P macros - also makes them more useful 2018-03-20 14:10:03 +01:00
thomas 8e47d7625f Don't set fs and gs. 2018-03-20 14:10:03 +01:00
thomas 950de8645c Update GDT pointer after unmapping GDT 2018-03-20 14:10:03 +01:00
thomas b5e0d749b8 Reload cr3 after updating P4 2018-03-20 14:10:03 +01:00
thomas 83f81b9a74 Cleaning up and commenting 2018-03-20 14:10:03 +01:00
thomas ab1a471857 Call a c function. 2018-03-20 14:10:03 +01:00