Commit Graph

421 Commits

Author SHA1 Message Date
Enrico Fraccaroli (Galfurian) f35abd187b Update readme. 2023-08-23 10:58:15 -04:00
Enrico Fraccaroli (Galfurian) a1071d50ef Update readme. 2023-08-23 10:56:24 -04:00
Enrico Fraccaroli (Galfurian) 24499a20e9 Update readme 2023-08-23 10:49:59 -04:00
Enrico Fraccaroli (Galfurian) 266f527d2a Merge branch 'feature/shm' into develop 2023-08-23 10:36:18 -04:00
Enrico Fraccaroli (Galfurian) 122551ab45 Revert init process changes. 2023-08-23 09:59:34 -04:00
Enrico Fraccaroli (Galfurian) 6b077ccfac Improve comments and code formatting. 2023-08-23 09:55:05 -04:00
Enrico Fraccaroli (Galfurian) 452aa40770 Properly set exit code for killed processed. 2023-08-22 16:32:43 -04:00
Enrico Fraccaroli (Galfurian) c82779f1af After queuing a SEGV for the process that caused a page fault, we call the scheduler to properly handle it. 2023-08-22 15:40:05 -04:00
Enrico Fraccaroli (Galfurian) bf59ccd0f4 Simplify debugging initialization, and allow vscode (Native Debug extension) to use .gdbinit. 2023-08-22 11:52:51 -04:00
Enrico Fraccaroli (Galfurian) aafa26ea38 Send a SIGSEGV whenever a page is not copy-on-write, and the user is trying to write on a readonly address. 2023-08-22 09:26:39 -04:00
Enrico Fraccaroli (Galfurian) 3fc0ba78ca Send a SIGSEGV whenever a page is not present and the user is involved. 2023-08-22 09:25:34 -04:00
Enrico Fraccaroli (Galfurian) a50c1a892f Return an integer from __page_handle_cow, allowing the caller to react to an error. 2023-08-22 09:24:55 -04:00
Enrico Fraccaroli (Galfurian) 08d87ea439 Add code that allows to create READONLY shared memory. 2023-08-22 09:24:01 -04:00
Enrico Fraccaroli (Galfurian) c37fbf6f40 Add shared memory tests. 2023-08-22 09:23:31 -04:00
Enrico Fraccaroli (Galfurian) 34319442aa Implement shmat and shmdt 2023-08-16 14:45:04 -04:00
Enrico Fraccaroli (Galfurian) dde6e6bc9e First rough implementation of shared memory. 2023-08-16 11:49:52 -04:00
Enrico Fraccaroli (Galfurian) 07d603f47a Fix wrong error check 2023-08-11 13:40:46 -04:00
Enrico Fraccaroli (Galfurian) df0a3701aa Improve format 2023-08-11 13:40:22 -04:00
Enrico Fraccaroli (Galfurian) 459d73b4e7 Change global format 2023-08-11 13:40:00 -04:00
Enrico Fraccaroli (Galfurian) 8578f078c6 Improve formatting and enable FLOATING_POINT_ERR 2023-08-11 13:39:45 -04:00
Enrico Fraccaroli (Galfurian) 20091b196f Start working on shared memory 2023-08-11 13:39:18 -04:00
Enrico Fraccaroli (Galfurian) b7f85b9500 Improve format 2023-08-11 13:38:57 -04:00
Enrico Fraccaroli (Galfurian) 83d4beb33d Clean up boot sequence code. 2023-08-11 13:31:32 -04:00
Enrico Fraccaroli (Galfurian) 63314a8363 Improve cd command output. 2023-08-11 13:29:01 -04:00
Enrico Fraccaroli (Galfurian) 23f2a036e7 Clean ps command code. 2023-08-11 13:28:36 -04:00
Enrico Fraccaroli (Galfurian) cd6f876fa8 Improve mkdir output 2023-08-11 13:28:19 -04:00
Enrico Fraccaroli (Galfurian) 954f6342ec Increase wait time. 2023-08-11 13:12:08 -04:00
Enrico Fraccaroli (Galfurian) 55b5eb8cee Fix format, and dela with type casting. 2023-08-11 13:04:34 -04:00
Enrico Fraccaroli (Galfurian) 24ebe9647c Minor format changes. 2023-08-11 11:37:30 -04:00
Enrico Fraccaroli (Galfurian) ee2c0ebd88 Fix how ATA driver determines the type of a device. 2023-07-12 14:28:36 -04:00
Enrico Fraccaroli (Galfurian) 1cbc7519c9 Add missing pragma once 2023-07-12 14:27:21 -04:00
Enrico Fraccaroli (Galfurian) 16b905625d Turn port-io into header-only. 2023-07-12 14:26:52 -04:00
Enrico Fraccaroli (Galfurian) 707c0e408b Improve dec_to_binary function 2023-07-12 14:26:14 -04:00
Enrico Fraccaroli (Galfurian) dc5a30573c Reorganize PCI functionalities, and ATA drivers. 2023-07-01 16:07:00 -04:00
Enrico Fraccaroli (Galfurian) 28276bf565 Add macro to compute number of elements inside an array. 2023-07-01 16:06:34 -04:00
Enrico Fraccaroli (Galfurian) 3ed59b6f55 Add function to count element in arrays. 2023-06-29 15:48:56 -04:00
Enrico Fraccaroli (Galfurian) d6c4dc3184 Add qemu disk flags to load ext2 drive first. 2023-06-29 13:17:37 -04:00
Enrico Fraccaroli (Galfurian) 86e046d080 Minor naming changes inside port_io 2023-06-29 13:00:15 -04:00
Enrico Fraccaroli (Galfurian) 760667e00f Show total size in human format in ls command. 2023-06-27 11:15:21 -04:00
Enrico Fraccaroli (Galfurian) f7fee4ca9b Refactor pmmngr_init function. 2023-06-27 11:14:51 -04:00
Enrico Fraccaroli (Galfurian) 4e35a1682f Clean up some comments in slab, and use round_up function instead of a custom one. 2023-06-27 11:13:54 -04:00
Enrico Fraccaroli (Galfurian) b7c82d7333 Rewrite realpath without memory allocation. 2023-06-23 15:02:17 -04:00
Enrico Fraccaroli (Galfurian) 7972ddeac7 - Add missing comments;
- Reimplement a more safer dirname;
- Implement a simple and safe tokenize function;
2023-06-23 14:37:24 -04:00
Enrico Fraccaroli (Galfurian) 394695784b Merge branch 'feature/kheap_rework' into develop 2023-06-23 11:26:08 -04:00
Enrico Fraccaroli (Galfurian) 8b6a72af3e Set logging to INFO for kheap. 2023-06-23 11:25:52 -04:00
Enrico Fraccaroli (Galfurian) ef6ef96576 Standardize the way we generate random numbers. 2023-06-22 15:42:00 -04:00
Enrico Fraccaroli (Galfurian) 87a796b440 Use bitfields to handle free blocks. Add check when creating new VM area. 2023-06-22 12:03:53 -04:00
Enrico Fraccaroli (Galfurian) 2cd03ccfe0 Check correctness of the kheap split and merge. Update memory test. 2023-06-22 11:08:39 -04:00
Enrico Fraccaroli (Galfurian) 90487afffc Use that beautiful list_head to implement the heap. 2023-06-19 19:32:10 -04:00
Enrico Fraccaroli (Galfurian) 96ee8198f8 Keep track of the tail of the heap, and of previous free blocks. 2023-06-19 19:06:12 -04:00