Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    x86_64: long mode -> compatibility mode -> protected mode


    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,

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts