babbleberry / rpi4-osdev

Tutorial: Writing a "bare metal" operating system for Raspberry Pi 4
https://www.rpi4os.com
Creative Commons Zero v1.0 Universal
3.37k stars 246 forks source link

MMU and memory support? #8

Closed wooshifu closed 3 years ago

wooshifu commented 3 years ago

Are there any plans about MMU and physic & virtual memory management?

babbleberry commented 3 years ago

Hi,

I'm currently working on "part12" which will add a lot more graphics capabilities (all still CPU/GPU). That's required me to start implementing some ultra-simple heap management (still just physical memory) - basically malloc & free in lib/mem.c. I'm avoiding MMU/virtual memory for now as it gets very complicated quite quickly.

After I've got the graphics library finished, I plan to consolidate all my work so far.

Have you bztsrc's tutorial on virtual memory? https://github.com/bztsrc/raspi3-tutorial/tree/master/10_virtualmemory. Some changes may be required to make this work on RPi4... It's something I'm looking forward to, but I want to finish my graphics work first ;-)

Hope it helps!

A

wooshifu commented 3 years ago

Thanks for your reply 👍