Results 1 to 2 of 2
Hello,
In x86_64, how would one go about writing kernel code that takes the kernel down to compatibility mode, then to protected mode, run some code and come back up ...
- 09-03-2011 #1Just Joined!
- Join Date
- Sep 2011
- Posts
- 1
x86_64: long mode -> compatibility mode -> protected mode
Hello,
In x86_64, how would one go about writing kernel code that takes the kernel down to compatibility mode, then to protected mode, run some code and come back up to long mode?
Thank you,
- 09-06-2011 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,961
And you need to do this why?
In any case, it would require some gnarly assembly code, and have tonnes of side effects that would likely cause kernel problems unless you are VERY careful to disable all the appropriate interrupts while performing the operation. Staying in that state too long will have all sorts of bad effects.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
