Commit Graph

66 Commits

Author SHA1 Message Date
Mathieu Maret 9713f527a8 Change userspace by partition type
Userspace should be on the first Linux partition found
2024-02-15 23:36:01 +01:00
Mathieu Maret 7b953e625e Show allocated/mapped stats 2024-02-11 15:34:33 +01:00
Mathieu Maret cca78b269d init: use zero driver for stack alloc 2024-02-08 23:15:29 +01:00
Mathieu Maret 44c5551655 Wip: zero mmap 2024-02-08 23:15:29 +01:00
Mathieu Maret 8af3ba0762 mmap syscall declaration 2024-02-08 23:08:14 +01:00
Mathieu Maret f110f85498 Simplify partition setup
To prepare part1 for grub, part2 for userdata
2023-11-20 00:15:50 +01:00
Mathieu Maret f05e017d45 backtrace: print function name instead of addr
Thx to the ELF header given by the bootloader
2023-11-20 00:12:58 +01:00
Mathieu Maret 18ea283213 Use format attribut and correct associated errors 2023-11-09 23:44:04 +01:00
Mathieu Maret 6471ee9a2d Implement brk syscall simple case 2022-09-03 22:43:41 +02:00
Mathieu Maret 0e11da855c Replace cst by its name 2022-08-07 16:20:01 +02:00
Mathieu Maret 7891554d8b move elf in dedicated file 2022-07-25 17:10:28 +02:00
Mathieu Maret 08a9d7442e Add user file size before the file
As a quick fix before FS support
2021-11-08 22:33:15 +01:00
Mathieu Maret 69d4702696 Remove debug log 2021-11-06 00:17:15 +01:00
Mathieu Maret d3a7ab59b7 Basic shell 2021-11-06 00:13:40 +01:00
Mathieu Maret 2b32908029 load userspace from disk 2021-11-05 23:02:23 +01:00
Mathieu Maret 4ad5b58787 Userspace with a syscall 2021-11-04 11:40:53 +01:00
Mathieu Maret 0040fb1cda Add basic test for process 2021-10-30 15:43:40 +02:00
Mathieu Maret e65a57d55d Rename kthread to thread 2021-10-30 14:29:12 +02:00
Mathieu Maret 79a2bc58ae Integrate MMU context 2021-10-30 00:28:31 +02:00
Mathieu Maret 7b9ceba6b2 Give stack information to area 2021-10-28 00:32:35 +02:00
Mathieu Maret 8f6f6cf471 WIP: add TSS management 2021-10-25 21:29:18 +02:00
Mathieu Maret 8a53ecfecd VGA: could be configured from MBI 2021-10-25 21:29:02 +02:00
Mathieu Maret 8ff10c938c Improve print information from mbi 2021-10-18 20:39:08 +02:00
Mathieu Maret ddc0c4c84a Wrap IRQ with ASM 2021-10-08 11:24:02 +02:00
Mathieu Maret f2e32cc0fd Add ATA 2021-10-03 23:19:00 +02:00
Mathieu Maret 8edaa8646f link slab allocator to areaAlloc 2021-10-01 22:21:11 +02:00
Mathieu Maret 31aaf10635 bootstrap alloc and area 2021-08-09 14:55:47 +02:00
Mathieu Maret 8bb6cdbad4 Complete details about first 1MB reserved 2021-06-09 22:23:33 +02:00
Mathieu Maret 4887984322 Thinner phy page pre-booking 2021-04-10 00:24:02 +02:00
Mathieu Maret ede53ae4f9 VGA renaming 2021-01-25 14:00:06 +01:00
Mathieu Maret bea3449b11 Implement vsnprintf and use it 2021-01-24 23:51:21 +01:00
Mathieu Maret 73b721dbc1 Add some mem stat 2021-01-23 21:51:00 +01:00
Mathieu Maret c3d345bb87 Add 64bit printf 2021-01-23 21:21:13 +01:00
Mathieu Maret 8309174f1a Get mem mapping from bootloader 2021-01-23 00:47:06 +01:00
Mathieu Maret 77b495e382 Fix naming and mem bottom 2021-01-22 23:10:07 +01:00
Mathieu Maret 5de1c54b61 Move sleep Thread to test 2020-07-06 17:21:49 +02:00
Mathieu Maret 319f197fcd Fix scheduler with sleeping task 2020-05-03 23:13:17 +02:00
Mathieu Maret 4b3f928f67 kthreadMsleep implementation wip 2020-05-03 14:45:26 +02:00
Mathieu Maret c65c7bb7b0 More more stuff in arch subdir 2020-04-29 23:07:01 +02:00
Mathieu Maret 6c3a03a4bc Implement Jiffies 2020-04-27 23:26:22 +02:00
Mathieu Maret 3b97d0307d Style: harmonize formatting
Thanks to: "clang-format -i -style=file **/*.{c,h}"
2020-04-27 00:14:51 +02:00
Mathieu Maret c7feb31c22 Add default exception handler 2020-04-24 23:39:56 +02:00
Mathieu Maret 0c389afa8f Harmonize kthread func naming 2020-04-24 13:42:47 +02:00
Mathieu Maret 59a8d3b582 Exception handler can access their ID 2020-04-23 23:59:57 +02:00
Mathieu Maret de14e795d6 kthread: implement exit 2020-04-23 23:40:16 +02:00
Mathieu Maret c1b13bc3f4 Improve log at boot 2020-04-23 23:38:20 +02:00
Mathieu Maret 2c0f54926d Initial kthread implementation 2020-04-23 14:49:42 +02:00
Mathieu Maret a19f4cb609 Set PIT IRQ in main
complete interrupt_frame struct and formatting
2020-04-22 16:52:54 +02:00
Mathieu Maret 13f1dc7878 Multiboot: display mmap and mod informations
sample code from https://www.gnu.org/software/grub/manual/multiboot/html_node/kernel_002ec.html#kernel_002ec
have issue (c.f. https://forum.osdev.org/viewtopic.php?t=30318)
2019-05-16 23:24:54 +02:00
Mathieu Maret 8cf50c9a6e implement memcmp 2019-04-16 10:19:36 +02:00