News for hackers. Stuff that matters.
Re:Kernel 101 – Let’s write a Kernel by breadbox on Monday April 14, 2014 @05:50PM (#7589170)
... and the gcc flag would need to be -m64. But I don't think it's this easy. If grub is in 32-bit mode when it hands you control, I would think you would need to switch to Long Mode before you could execute 64-bit code. So your entry point would still have to be a 32-bit program, which would set up everything necessary for Long Mode, make the switch, and then load and execute the 64-bit part of your program.

There are no comments on this comment yet.