flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Getting Into 64-bits... |
Author |
|
cod3b453 10 Feb 2015, 23:20
For the first paragraph it's a double yes (I think - don't know if MZ offsets you describe introduce any issues). I can't comment on the second, I've never done it.
On the last, you'll definitely want to map your 64bit entry point as an executable paged location as well as mapping every single bit of memory that is getting used for other data (boot tables in 16/32bit code/GDT/IDT/VESA LFB/VGA/etc) in the 64bit code before you get to code that modifies the mappings. [I found it was just as easy to map everything from E820 as 2MB pages mapped 1:1 to get things up and running]. Hope that helps. |
|||
10 Feb 2015, 23:20 |
|
smiddy 11 Feb 2015, 01:53
Yes, thanks! Your second paragraph is huge, much appreciated! If I can figure out the mapping that is (I assume if I map everything then the OS will use it [for now]). I am having issues elsewhere, not able to code tonight like I would prefer, so it will have to wait until I can get to it, maybe tomorrow.
I've been going back and forth between real and protected modes, and want the ability to go between real, protected, and now long mode. Lots of transitions, so long as I've set it up correctly, it [cross your fingers] should just work. What sucks is I've been thinking about this all day and I'm sure it will work, but I cannot get to it right now. <sniff> |
|||
11 Feb 2015, 01:53 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.