Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
I've started to develop an OS.I'm developing a 64-bit OS.Using GRUB1 for loader.It seems that GRUB1 do not support flt64 files so I have to link 64-bit code to elf32. However the wayes on google don't work.I have on idea how to do it now. Can who show me how to do it?
PS:I'm really no a good writer in English. Forgive me.
If you only knew what problem you are supposed to solve.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
That is so wrong that it qualifies as "learn to read". Go learn the language properly first - the alternative is looking stupid instead of succeeding.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Two ways I can think of easily:
1. Have GRUB load a 32-bit kernel that sets up the environment and jumps to the real 64-bit kernel which is loaded as a separate module by GRUB.
2. Paste the 32-bit and 64-bit kernel together using a tool like cat and have GRUB load the resulting big executable. You will probably have to parse the headers of whatever executable file format you're using to setup the 64-bit part.