Commit Graph

  • 17b90a484a kernel: print version banner on boot Max Wash 2023-02-04 19:19:48 +00:00
  • 49d2b0a847 x86_64: make vgacon clear the display on init Max Wash 2023-02-04 19:19:37 +00:00
  • dee639968b x86_64: remove vga functions from start_32 and start_64 Max Wash 2023-02-04 19:18:25 +00:00
  • 31cb7aab8b kernel: add basic console registration system and printk() Max Wash 2023-02-04 19:03:45 +00:00
  • d0a431c860 kernel: add basic spinlocks Max Wash 2023-02-04 17:46:05 +00:00
  • 6e290ee18a x86_64: cleanup Max Wash 2023-02-04 15:25:39 +00:00
  • 6eb9c5ad6c sandbox: delete orphaned test files Max Wash 2023-02-03 20:53:48 +00:00
  • 247bb2b530 kernel: port sandbox components Max Wash 2023-02-03 20:51:23 +00:00
  • 40f83922da sandbox: moved all sources to main kernel tree Max Wash 2023-02-03 20:43:38 +00:00
  • e714d619ba kernel: remove placeholder vm subsystem Max Wash 2023-02-03 20:37:45 +00:00
  • bcdf101779 kernel: add stub logging function Max Wash 2023-02-03 20:26:02 +00:00
  • c65f034e0e kernel: x86_64: add machine init function called by kernel_init Max Wash 2023-02-03 20:24:27 +00:00
  • dba6269fcb kernel: remove printf() (but keep other string formatters) Max Wash 2023-02-03 20:23:36 +00:00
  • 453ccd4596 sandbox: multi-threaded kmalloc() stress-test Max Wash 2023-02-02 21:16:17 +00:00
  • d4e8754f21 sandbox: vm: implement vm_cache_free() and kfree() Max Wash 2023-02-02 21:15:59 +00:00
  • 4237b6ca20 sandbox: vm: add synchronisation using spinlocks Max Wash 2023-02-02 21:14:02 +00:00
  • d4449b8d87 sandbox: vm: make kmalloc(size: 0) return NULL Max Wash 2023-02-02 21:12:14 +00:00
  • ba415b2942 sandbox: vm: fix double evaluation of queue_pop_front() Max Wash 2023-02-02 21:11:29 +00:00
  • 4175f67b9b sandbox: vm: replace calls to queue_length() with queue_empty() Max Wash 2023-02-02 21:10:37 +00:00
  • a33c490852 sandbox: vm: vm_page p_slab field is now set for slab pages Max Wash 2023-02-02 21:07:22 +00:00
  • c47da5864c sandbox: vm: add temporary vm_virt_to_phys() implementation Max Wash 2023-02-02 21:06:04 +00:00
  • 90dd51008f sandbox: vm: fix vm_cache.c_hdr_size not being calculated Max Wash 2023-02-02 21:03:27 +00:00
  • d43347436f sandbox: memblock: align allocated pointers to 16-byte boundary Max Wash 2023-02-02 21:01:22 +00:00
  • 799a23014a sandbox: add locking primitives Max Wash 2023-02-02 21:00:40 +00:00
  • 7d3000e84d sandbox: queue: remove q_length field, add queue_empty() Max Wash 2023-02-02 21:00:23 +00:00
  • 662be5ec1f sandbox: vm: add cache allocator, generic size-N caches for kmalloc() Max Wash 2023-02-02 16:58:48 +00:00
  • 3c781a4cb3 sandbox: vm: make vm_page queue entry private, owner-defined usage Max Wash 2023-02-02 16:58:24 +00:00
  • e5a7546996 sandbox: vm: temporary implementation of vm_page_get_vaddr() Max Wash 2023-02-02 16:57:03 +00:00
  • 7331bdefda sandbox: vm: reduce vm_page order field size to 4 bits Max Wash 2023-02-02 16:54:48 +00:00
  • ab46b7cd13 sandbox: vm: fix bad array index in replenish_free_page_list Max Wash 2023-02-02 16:47:32 +00:00
  • 49e23849a5 sandbox: queue: check list is not empty before popping entries Max Wash 2023-02-02 16:45:13 +00:00
  • 9409ebbb19 sandbox: vm: implement page freeing; merge/split bugfix Max Wash 2023-02-01 17:05:14 +00:00
  • ca92093c10 sandbox: vm: add function to iterate though pages in a hugepage Max Wash 2023-02-01 17:04:20 +00:00
  • f82ca449b3 build: ensure "all" is the default build rule Max Wash 2023-02-01 15:04:10 +00:00
  • af49d47ba8 sandbox: vm: add page splitting, merging, and allocation Max Wash 2023-02-01 15:03:42 +00:00
  • 4cb30737fb sandbox: vm: remove relative include Max Wash 2023-02-01 14:03:07 +00:00
  • bfe3c1cc80 build: rebuild objects that depend on modified headers Max Wash 2023-02-01 13:58:15 +00:00
  • 2147837e9e sandbox: vm: encode vm_page zone id within p_flags Max Wash 2023-02-01 12:26:49 +00:00
  • a0d1fee01e sandbox: add util functions Max Wash 2023-02-01 12:26:07 +00:00
  • 01b526660e sandbox: vm: set maximum page size to 8 MiB Max Wash 2023-01-31 18:25:52 +00:00
  • ee08088fcf sandbox: vm: fix convert_region_to_blocks() not creating more than one block of a given size Max Wash 2023-01-31 18:25:32 +00:00
  • 324ed2c9d0 sandbox: vm: remove vm_ prefix from source files Max Wash 2023-01-31 15:28:46 +00:00
  • 2b390ccccb kernel: update license Max Wash 2023-01-31 13:11:53 +00:00
  • 30d9c011f3 sandbox: memblock: add documentation and license Max Wash 2023-01-31 13:11:35 +00:00
  • caf4d2b969 sandbox: btree: add documentation and license Max Wash 2023-01-30 20:57:55 +00:00
  • 07e2e5099d sandbox: queue: add queue_delete_all() and QUEUE_INIT Max Wash 2023-01-29 20:11:02 +00:00
  • 077237c4cf sandbox: extra page stats output Max Wash 2023-01-29 20:10:35 +00:00
  • c0c930e5a9 sandbox: vm: fix incorrect region/zone limit addresses Max Wash 2023-01-29 20:10:15 +00:00
  • 8fb71ccb77 sandbox: vm: add page attribute getters Max Wash 2023-01-29 20:09:15 +00:00
  • 66afb5ca28 sandbox: vm: fix block reservation status for regions with one homogeneous set of pages Max Wash 2023-01-29 11:17:09 +00:00
  • 885ed7d765 sandbox: memblock: abort on unsatisfiable alloc request Max Wash 2023-01-29 11:15:43 +00:00
  • a7ebdeba73 sandbox: increase memblock heap area size Max Wash 2023-01-29 11:14:33 +00:00
  • a3c6018d96 sandbox: vm: enforce alignment requirements for multi-page blocks Max Wash 2023-01-29 11:03:53 +00:00
  • d0341a5e35 sandbox: vm: organise pages into zoned blocks Max Wash 2023-01-28 19:24:28 +00:00
  • 0227cb822b sandbox: add double linked-list data structure Max Wash 2023-01-27 21:04:26 +00:00
  • 350a3da18d sandbox: re-organise test functions Max Wash 2023-01-26 20:36:11 +00:00
  • 44836149cd sandbox: btree: add in-order tree traversal Max Wash 2023-01-26 20:35:56 +00:00
  • e2fbc4e40b sandbox: btree: add macros to define custom btree inserter Max Wash 2023-01-26 18:30:14 +00:00
  • c35f06e191 sandbox: increase number of nodes in btree test Max Wash 2023-01-25 18:17:34 +00:00
  • 2b099142e3 sandbox: btree: fix replace_node_with_one_subtree() not updating tree root Max Wash 2023-01-24 21:35:32 +00:00
  • dbf3ad101d sandbox: btree: deletion fixup bugfix Max Wash 2023-01-24 21:26:22 +00:00
  • bf8da4dbb5 sandbox: AVL tree deletion bugfixes and testing Max Wash 2023-01-22 20:21:29 +00:00
  • cd217186a2 sandbox: btree_test() now checks that constructed tree is a valid AVL tree Max Wash 2023-01-21 21:42:54 +00:00
  • 09ce964190 sandbox: added some AVL tree insertion stress testing Max Wash 2023-01-21 17:36:37 +00:00
  • 4eba81eb09 Removed debug messages from generate_compile_commands Max Wash 2023-01-19 20:53:12 +00:00
  • 1bd9576a8d Implemented more memory manager and btree tests in sandbox Max Wash 2023-01-19 20:52:56 +00:00
  • a53edf230f AVL tree is now fixed after node is deleted Max Wash 2023-01-19 20:51:59 +00:00
  • a275ca0955 Started implementing btree deletion Max Wash 2023-01-18 19:45:58 +00:00
  • 1c0a4bc708 Implemented AVL tree insertion Max Wash 2023-01-15 08:24:51 +00:00
  • a97b2da73e Started implementing a self-balancing binary tree data structure Max Wash 2023-01-13 18:31:29 +00:00
  • a84355a063 generate_compile_commands.py can now handle different make-output path delimiters Max Wash 2023-01-10 20:59:14 +00:00
  • 18157925e7 Updated gitignore Max Wash 2023-01-10 20:54:16 +00:00
  • 39c2ee0e0f Added a memory map to sandbox memblock test Max Wash 2023-01-10 20:53:50 +00:00
  • 44cd04c57a Fixed directory change parsing in generate_compile_commands.py Max Wash 2023-01-10 20:53:07 +00:00
  • bfb0b98a80 Added more tests for memblock_alloc() Max Wash 2023-01-09 18:26:33 +00:00
  • 34faa01b8e Fixed bounded memblock iteration including negative-sized regions Max Wash 2023-01-09 18:25:35 +00:00
  • 2f6845692a Updated gitignore Max Wash 2023-01-08 14:17:36 +00:00
  • bbb09b2549 Created separate memblock functions for virtual and physical memory allocation Max Wash 2023-01-08 12:21:13 +00:00
  • 0d77d97561 memblock can now self re-allocate its internal buffers Max Wash 2023-01-08 12:13:59 +00:00
  • 02211e6eba Implemented memblock_alloc() Max Wash 2022-12-29 20:53:39 +00:00
  • d9daeae384 Fixed an arithmetic bug causing reserved memory regions at address 0x00 to be ignored Max Wash 2022-12-29 20:53:24 +00:00
  • 677661b115 Updated compiler database generator to handle multiple target executables Max Wash 2022-12-29 20:17:06 +00:00
  • 2ac3e8602f Re-factored sandbox into a single executable Max Wash 2022-12-29 19:47:25 +00:00
  • 2b59afcaf3 Started building the kernel memory manager in userspace Max Wash 2022-12-29 19:22:16 +00:00
  • 7f51b0755b Added a status field to memory regions to differentiate allocated and reserved regions Max Wash 2022-12-29 19:21:59 +00:00
  • 02b3be636b Added header containing kernel typedefs for sandbox programs Max Wash 2022-12-29 10:25:50 +00:00
  • 84efc44710 memblock region iteration can now be bounded to a certain memory range Max Wash 2022-12-29 10:19:57 +00:00
  • e922a776c3 Added stubs for the kernel memory manager Max Wash 2022-12-28 23:04:09 +00:00
  • fac31086f5 Implemented a status return type Max Wash 2022-12-28 23:03:49 +00:00
  • d0091a4df7 Implemented macros for iterating over memblock regions, including free regions Max Wash 2022-12-28 23:03:30 +00:00
  • 5a2b81c8b9 Sandbox programs are now compiled with debug symbols Max Wash 2022-12-28 18:41:50 +00:00
  • 30ffc429fc Started implementing a boot-time memory manager Max Wash 2022-12-28 18:41:04 +00:00
  • fe6b7220df Kernel is now compiled with -Wall -Werror -pedantic Max Wash 2022-12-28 18:40:41 +00:00
  • 63d4dba493 More build system adjustments Max Wash 2022-12-27 08:43:42 +00:00
  • c337d12d05 Sandbox program list is now auto-generated Max Wash 2022-12-27 08:28:05 +00:00
  • 83c7f2293c Implemented support for building host binaries to test kernel features Max Wash 2022-12-26 22:12:53 +00:00
  • 23e8e654d9 Changed jump label in gdt_load Max Wash 2022-12-24 21:11:43 +00:00
  • 0309e1edd1 Adjusted build system to make it more portable Max Wash 2022-12-24 17:42:33 +00:00
  • 26853c32c8 Implemented GDT initialisation Max Wash 2022-12-24 10:28:41 +00:00
  • 0c0830cca7 QEMU monitor is now enabled Max Wash 2022-12-24 10:28:28 +00:00