Write Your Own 64-bit Operating System Kernel #2 - Stack, long mode and printing using C code
CodePulse
In the second episode of this series, we setup a basic stack, enable long mode, setup basic paging, and write some C code that prints any text onto the screen.
All the code is available on GitHub: https://github.com/davidcallanan/yt-os-series/tree/ep2
Consider becoming a Patreon supporter below if you'd like me to continue to spend time creating these videos: https://patreon.com/CodePulse
Thanks to the Patreon supporters since last episode: Helge Sverre Hessevik Liseth, Kaas, D L, Fernando Muinos
Useful resources (in no particular order):
https://wiki.osdev.org/ First edition: https://os.phil-opp.com/edition-1/ Latest edition: https://os.phil-opp.com/ https://en.wikipedia.org/wiki/X86_calling_conventions#System_V_AMD64_ABI http://www.osdever.net/bkerndev/Docs/creatingmain.htm
And some youtube videos such as: https://www.youtube.com/watch?v=rr-9w2gITDM https://www.youtube.com/watch?v=Lke3QOytgcQ&list=PLmlvkUN3-1MNKwINqdCDtTdNDjfBmWcZA https://www.youtube.com/watch?v=9GDX-IyZ_C8 ... https://www.youtube.com/watch?v=wz9CZBeXR6U
73878313 Bytes