Sujet : Re: [OSDev] How to switch to long mode in x86 CPUs?
De : vandys (at) *nospam* vsta.org (Andy Valencia)
Groupes : comp.lang.c alt.os.developmentDate : 02. Mar 2025, 05:02:57
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <174088817787.9328.7228067901904056569@media.vsta.org>
References : 1 2
User-Agent : rn.py v0.0.1
cross@spitfire.i.gajendra.net (Dan Cross) writes:
I am trying to develop my own, simple operating system to learn more
about how kernels work and low level stuff like that. However, I am
stuck at setting up paging while switching long mode (64-bit protected
mode) in x86 processors.
Two things in addition to the fellow who cross-posted this and gave
you some great analysis.
1. If you use bochs, you can single step the emulator itself, and
basically have a microcode view of what the processor's trying to do
with your code. This can save you _tons_ of time.
2. You should crib from working code. For 32-bit x86, may I humbly
point at my protected mode microkernel, VSTa:
https://sources.vsta.org:7100/vsta/index
Andy Valencia
Home page:
https://www.vsta.org/andy/To contact me:
https://www.vsta.org/contact/andy.htmlFediverse: @
vandys@goto.vsta.org