Tasks
Posted: Wed Jul 25, 2007 2:51 am
I am developing an OS in C++/C/ASM starting from Bran's tutorial
I can allocate and free memory correctly, read the keyboard, write on screen and reboot by pressing CTRL+ALT+DEL (as in Bran's tutorial I am making segmentation transparent so linear and physical addresses match)
The thing is I now would like to add some user programs to the OS. I'd like to start out with something simpe like single-tasking and no memory protection. I was thinking to build pure binary images of processes and somehow launch them. What I don't understand is if I should locate them at a fixed address or let the linker make out the addresses it wants and expect everything to work when I load the image and jump to it
Thanks for any help,
Enrico
I can allocate and free memory correctly, read the keyboard, write on screen and reboot by pressing CTRL+ALT+DEL (as in Bran's tutorial I am making segmentation transparent so linear and physical addresses match)
The thing is I now would like to add some user programs to the OS. I'd like to start out with something simpe like single-tasking and no memory protection. I was thinking to build pure binary images of processes and somehow launch them. What I don't understand is if I should locate them at a fixed address or let the linker make out the addresses it wants and expect everything to work when I load the image and jump to it
Thanks for any help,
Enrico