I am making an OS. I want a code written in C with inline assembly. The program should be able to switch from real to Protected mode and then back to real mode thus providing 32 bit capability and enabling linear flat 4GB memory access. The program should also enable A20 line.
I also want to create an array of size 3GB if required. Please include the documentation in the program or provide the code to create an array in C of size 3gb.
I require this code urgently.