Making an RISC-V OS (Part 3): Managing free memory
1–10 of 13 posts
Re: Making an RISC-V OS (Part 3): Managing free memory
#2Re: Making an RISC-V OS (Part 3): Managing free memory
#3Re: Making an RISC-V OS (Part 3): Managing free memory
#4Part 1: https://traxys.me/riscv_os_setup.html Part 2: https://traxys.me/riscv_os_2.html
Re: Making an RISC-V OS (Part 3): Managing free memory
#5For a moment there I thought this was referring to RISC OS[1]. [1]: https://en.wikipedia.org/wiki/RISC_OS
Re: Making an RISC-V OS (Part 3): Managing free memory
#6As nice as this was to read (and I read all three parts), it's basically all the functionality of grub (or similar).
For toy OSes on x86/x86_64 the best way to get started is to use grub to do all the setup and then launch the kernel.
Re: Making an RISC-V OS (Part 3): Managing free memory
#7Wouldn't it be more accurate to call this "Making a RISC-V Bootloader"? As nice as this was to read (and I read all three parts), it's basically all the functionality of grub (or similar). For toy OSes on x86/x86_64 the best way to get started is to use grub to do all the setup and then launch the kernel.
Re: Making an RISC-V OS (Part 3): Managing free memory
#8Also, your buddy allocator fills me with shame. I didn't think of doing it that way when I wrote the physical memory allocator for my hobby OS, and my algorithm is way slow to initialize as a result of how I did it. I'm thinking I might have to go and revisit my allocator.
Re: Making an RISC-V OS (Part 3): Managing free memory
#9For a moment there I thought this was referring to RISC OS[1]. [1]: https://en.wikipedia.org/wiki/RISC_OS
Might as well be. Little to no RISC-V content here, and it's not even depending on the page table format, just blasting through physical RAM.
Re: Making an RISC-V OS (Part 3): Managing free memory
#10Wouldn't it be more accurate to call this "Making a RISC-V Bootloader"? As nice as this was to read (and I read all three parts), it's basically all the functionality of grub (or similar). For toy OSes on x86/x86_64 the best way to get started is to use grub to do all the setup and then launch the kernel.