Commit Graph

69 Commits

Author SHA1 Message Date
Enrico Fraccaroli fe13f087c9 Add direntry search and new file generation. 2021-12-16 01:51:31 +01:00
Enrico Fraccaroli 73ef08dc11 Add the code for reading a file. Write the root file initialization. 2021-12-15 18:57:52 +01:00
Enrico Fraccaroli 7d74ab6bce Add the code to allocate new blocks within inodes, and to read them. 2021-12-15 18:18:51 +01:00
Enrico Fraccaroli ef90d20604 Add function to compute the real block index based on an inode. 2021-12-15 17:28:16 +01:00
Enrico Fraccaroli ae56fd09fa Complete and test EXT2 block allocation. 2021-12-15 16:37:12 +01:00
Enrico Fraccaroli 0949f75054 Fix ata write... I was compying the output data on the PRDT not the DMA area... 2021-12-15 15:51:09 +01:00
Enrico Fraccaroli df1ef59063 Add functions to write/read superblock, blocks, and inodes. Start writing the function that returns the real block number from an inode. 2021-12-15 14:11:22 +01:00
Enrico Fraccaroli f53100453f Improve dec_to_binary function. 2021-12-15 14:10:35 +01:00
Enrico Fraccaroli 69f3cc6b88 Add more EXT2 data structures. 2021-12-14 01:51:48 +01:00
Enrico Fraccaroli 4715809f96 Correctly read ext2 superblock. 2021-12-13 21:57:04 +01:00
Enrico Fraccaroli 43d34814bf Add check if the mount callback is set. 2021-12-13 21:10:17 +01:00
Enrico Fraccaroli f6090319c7 Finish fixing PATA and SATA support. 2021-12-13 13:41:53 +01:00
Enrico Fraccaroli b48d2ad54a Minor fixes. 2021-12-13 09:44:35 +01:00
Enrico Fraccaroli 4c8ce44426 Fix ATA read/write and test it. 2021-12-12 22:32:55 +01:00
Enrico Fraccaroli f6eb4f8138 Merge branch 'develop' into fix_ata 2021-12-11 16:52:24 +01:00
Enrico Fraccaroli 9d8e700fc6 Make the shell where qemu is running in debug wait. 2021-12-11 16:51:46 +01:00
Enrico Fraccaroli 1df4d8748f Fix the gdb file generation. Add a message telling the user how to start debugging. 2021-12-11 16:48:32 +01:00
Enrico Fraccaroli (Galfurian) ac3141a6d8 Fix ATA read. 2021-12-11 16:32:09 +01:00
Enrico Fraccaroli d0a0f338c7 Add helper functions to handle the stack. 2021-11-10 14:07:14 +01:00
Enrico Fraccaroli ca4250c663 Move debugging functions to io folder. 2021-11-10 12:14:40 +01:00
Enrico Fraccaroli f8da589298 Move debugging functions to io folder. 2021-11-10 12:10:39 +01:00
Enrico Fraccaroli 36242acdb0 Update drivers comments. 2021-11-10 11:14:08 +01:00
Enrico Fraccaroli f7297e3ded Clean up the bootloader code. 2021-11-09 16:30:35 +01:00
Enrico Fraccaroli 04bf7b9e3b Move boot.S inside the src folder. Move the buddy system library inside the src/mem folder. 2021-11-09 16:13:10 +01:00
Enrico Fraccaroli 60a56e1139 Improve comments. 2021-10-26 08:24:50 +02:00
Enrico Fraccaroli 7a78333bae Test improved organization of the doxygen documentation, using modules. 2021-10-20 14:11:32 +02:00
Enrico Fraccaroli 37465c2d2f Move doxygen sources to a separate folder. 2021-10-20 13:21:03 +02:00
Enrico Fraccaroli f2032f0bf4 Improve documentation. 2021-10-20 12:50:15 +02:00
Enrico Fraccaroli 50ad329b6e Improve buddysystem comments. 2021-10-19 14:32:08 +02:00
Enrico Fraccaroli 28981a82d0 Change name to the help program. 2021-10-19 12:07:45 +02:00
Enrico Fraccaroli c9d7026293 Merge branch 'release/v0.4.0' v0.4.0 2021-10-14 18:01:02 +02:00
Enrico Fraccaroli f43bce08d6 Update README. 2021-10-14 17:48:18 +02:00
Enrico Fraccaroli c4e76f027d Merge branch 'develop' of github.com:mentos-team/MentOS into develop 2021-10-14 17:41:50 +02:00
Enrico Fraccaroli a968c1bd6d Remove useless file. 2021-10-14 17:41:26 +02:00
Enrico Fraccaroli 064136703c Add missing comments. 2021-10-13 12:39:36 +02:00
Enrico Fraccaroli 18a2fd9baa Force includes to use absolute paths. 2021-10-05 14:29:24 +02:00
Enrico Fraccaroli 0c6a38e189 Update scheduler comments and improve code readability. 2021-10-05 10:08:49 +02:00
Enrico Fraccaroli 5263b115bf Add help command. Remove compiled files. 2021-10-04 11:55:18 +02:00
Enrico Fraccaroli b01eccca2e Update MentOs code to the latest development version. 2021-10-04 11:44:02 +02:00
Mirco De Marchi a8201fcdde Fix MacOS installation instructions 2021-04-12 02:13:23 +02:00
Enrico Fraccaroli 1236941a9c Merge pull request #4 from mentos-team/compatibility
Compatibility
2021-01-26 10:02:28 +01:00
Mirco De Marchi de33947249 Update README.md with prerequisistes install commands and some fix 2021-01-19 21:24:53 +01:00
Mirco De Marchi 05397f24c9 Add compatibility for GCC 10
Insert additional -fcommon C flag to obtain the same behavior of previous versions of GCC compilers, because
now, by default GCC 10 compiler has the -fno-common flag
that give error when omitting extern when declaring
a global variable in a header file.

TODO: for the next MentOS release check the "extern"
keyword in global variable in header files.
2021-01-19 19:17:59 +01:00
Mirco De Marchi 0d8fa6c9cd Remove SDL in qemu command for ubuntu 19 and 20
Add compatibility for ubuntu lsb versions that haven't sdl support
2021-01-19 17:02:56 +01:00
Mirco De Marchi b47110b402 Improve compatibility for Ubuntu 18.04
Disable ASM_NASM language and take only ASM language with third_party nasm tool to avoid errors.
2021-01-19 15:43:53 +01:00
Mirco De Marchi f99b9f739c Add MacOS compatibility with cross-compiler toolchain 2021-01-19 10:42:42 +01:00
Enrico Fraccaroli 6fd063984a Add new defines to vfs types 2019-05-16 17:22:47 +02:00
Enrico Fraccaroli bc2623ce99 Clean up stdlib 2019-05-16 17:22:21 +02:00
Enrico Fraccaroli c16a750251 Use standard limits for VFS file and path length 2019-05-16 17:13:35 +02:00
Enrico Fraccaroli c673fb9351 Improve multiboot code 2019-05-16 17:03:37 +02:00