Gujin: Difference between revisions

No change in size ,  7 years ago
[unchecked revision][unchecked revision]
Line 14:
Same for interrupts, Gujin switches to protected mode but does not re-enable interrupts, that is the job of the kernel being booted to set-up the Interrupt Decriptor Table and handle each interrupts, because BIOS will not help the kernel any more.
 
Gujin can also relocate the ELF file if it contains relocation information, see option [http://sourceware.org/binutils/docs-2.19/ld/Options.html#index-g_t_002d_002demit_002drelocs-79 --emit-relocs] of the "ld" linker of the "binutilsBinutils" toolchain.
 
Because most applications will want to collect BIOS informations before the switch to protected mode, Gujin can call in real-mode a function of the ELF file, and if this function returns zero - continue the loading process - else display an error message (for instance: "trying to execute a 64 bits application on a processor without this feature!").
Anonymous user