klange changed the topic of #osdev to: Operating System Development || Don't ask to ask---just ask! || For 3+ LoC, use a pastebin (for example https://gist.github.com/) || Stats + Old logs: http://osdev-logs.qzx.com New Logs: https://libera.irclog.whitequark.org/osdev || Visit https://wiki.osdev.org and https://forum.osdev.org || Books: https://wiki.osdev.org/Books
hwpplayer1 has joined #osdev
Arthuria has quit [Ping timeout: 246 seconds]
heat has quit [Read error: Connection reset by peer]
heat has joined #osdev
simpl_e has quit [Ping timeout: 248 seconds]
theruran has joined #osdev
Yoofie64644 has quit [Ping timeout: 244 seconds]
Yoofie64644 has joined #osdev
Arthuria has joined #osdev
Yoofie64644 has quit [Ping timeout: 244 seconds]
Dead_Bush_Sanpa1 has joined #osdev
Dead_Bush_Sanpai has quit [Ping timeout: 244 seconds]
Dead_Bush_Sanpa1 is now known as Dead_Bush_Sanpai
Garb00 has joined #osdev
Dead_Bush_Sanpa1 has joined #osdev
Garb00 is now known as Garb0
Dead_Bush_Sanpai has quit [Ping timeout: 276 seconds]
Dead_Bush_Sanpa1 is now known as Dead_Bush_Sanpai
vdamewood has joined #osdev
heat has quit [Read error: Connection reset by peer]
heat has joined #osdev
Arthuria has quit [Ping timeout: 252 seconds]
bliminse has quit [Ping timeout: 244 seconds]
bliminse has joined #osdev
heat has quit [Read error: Connection reset by peer]
heat has joined #osdev
vdamewood has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
Arthuria has joined #osdev
heat has quit [Ping timeout: 264 seconds]
heat has joined #osdev
pog has quit [Quit: byee]
agent314 has joined #osdev
Nixkernal has quit [Ping timeout: 276 seconds]
qubasa has joined #osdev
dude12312414 has joined #osdev
dude12312414 has quit [Remote host closed the connection]
jedesa has joined #osdev
heat has quit [Ping timeout: 264 seconds]
hwpplayer1 has quit [Remote host closed the connection]
hwpplayer1 has joined #osdev
Arthuria has quit [Ping timeout: 264 seconds]
hwpplayer1 has quit [Remote host closed the connection]
hwpplayer1 has joined #osdev
CompanionCube has quit [Quit: ZNC - http://znc.in]
Stary has quit [Quit: ZNC - http://znc.in]
Stary has joined #osdev
CompanionCube has joined #osdev
Garb0 has quit [Read error: Connection reset by peer]
hwpplayer1 has quit [Remote host closed the connection]
<zid> Advent of code done, `50*`
netbsduser has joined #osdev
<the_oz_> AHHH MIDNIGHT MUST LET LOOSE FIREWORKS. KILL SANTA IF YA SEES EM. People are silly :)
<klys> there is one more hour for me here.
netbsduser has quit [Ping timeout: 252 seconds]
cloudowind has quit [Ping timeout: 265 seconds]
cloudowind has joined #osdev
cloudowind has quit [Remote host closed the connection]
cloudowind has joined #osdev
agent314 has quit [Ping timeout: 265 seconds]
agent314 has joined #osdev
housemate has joined #osdev
alpha2023 has quit [Read error: Connection reset by peer]
GeDaMo has joined #osdev
alpha2023 has joined #osdev
qubuepe24 has joined #osdev
housemate has quit [Read error: Connection reset by peer]
housemate has joined #osdev
housemate has quit [Ping timeout: 252 seconds]
agent314 has quit [Ping timeout: 252 seconds]
housemate_ has joined #osdev
agent314 has joined #osdev
agent314 has quit [Ping timeout: 272 seconds]
housemate_ has quit [Quit: Nothing to see here. I wasn't there. I take IRC seriously.]
qubuepe24 has quit [Remote host closed the connection]
qubuepe24 has joined #osdev
housemate has joined #osdev
qubuepe24 has quit [Remote host closed the connection]
hwpplayer1 has joined #osdev
ionut_f has joined #osdev
Yoofie646446 has joined #osdev
antranigv has quit [Quit: ZNC 1.9.0 - https://znc.in]
antranigv has joined #osdev
ionut_f has quit [Remote host closed the connection]
bauen1 has quit [Ping timeout: 272 seconds]
hwpplayer1 has quit [Remote host closed the connection]
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #osdev
hwpplayer1 has joined #osdev
housemate has quit [Quit: Nothing to see here. I wasn't there. I take IRC seriously.]
hwpplayer1 has quit [Read error: Connection reset by peer]
muffin has joined #osdev
<muffin> Can I change the address of PML4 in CR3 while paging is enabled or do I need to turn it off first?
Left_Turn has joined #osdev
<sortie> You can change the address space by modifying CR3 any time. The change is atomic. Make sure the next instruction being executed is mapped in memory
<muffin> thank you sortie
<zid> yea that's just how you switch address spaces
<zid> if you had to disable and renable paging that'd be a huge pain wow
<sortie> It also has a big performance penalty
<sortie> And can't be done in 64-bit mode
<zid> yea, HJUGE pain
Turn_Left has joined #osdev
<muffin> wait, it can't be done in 64-bit mode?
<sortie> 64-bit requires paging to be turned on IIRC
<muffin> yes
<zid> yea it does
<zid> it's AN REQUIREMENT
<sortie> So to disable paging, one would have to leave 64-bit mode IIRC. You can always change the address space with CR3 of course.
<zid> There's a neat flowchart in the manual
<zid> about LM.EFER and CR0.PG etc ordering
<muffin> ah, okay, I misunderstood
<zid> it's a directed cyclic graph thing
<muffin> Thought you were saying I can't change CR3 in 64-bit mode
<muffin> But yeah, to disable paging you have to go all the way to real mode
<zid> You can do it in pmode
<sortie> No you should be able to disable it in 32-bit mode
<zid> pmode is the mode where you enable paging, afterall
<muffin> ah, I see. Thanks for clearing that up
Left_Turn has quit [Ping timeout: 264 seconds]
<zid> real -> pmode, enable PAE, write 0x8 to c0000080 for efer.lm, enable paging, load gdt, jump to long mode
<zid> afaik
<zid> is the order the manual tells you to do it in
* zid wants to find the cool diagram
<muffin> The Paging one is Figure 5-1 in Vol.3A
<bslsk05> ​i.imgur.com <no title>
<muffin> after 5.1.2
<muffin> ah, you already have it
<zid> according to this, you can?
<zid> go from 4 level paging to pg=0, pae=1, lme=1 via unsetting PG
<zid> and you have to, to get out
<zid> oh, compat mode
<zid> long mode *does* fault, there's a single note
<zid> to do it from compat mode
<muffin> Yes, I can do that, I was just thinking of 64-bit mode or protected mode not allowing you to that then
<zid> I got nerd sniped
<zid> by wondering if you could disable PG
<muffin> There's a similar diagram on Vol.3A 2.2 Fig 2-3
<muffin> Where it shows the modes and that it's not a requirement for Protected mode, but only for IA-32e Mode
<zid> yea that's
<zid> long mode
<muffin> yep, it's all clear now, thank you
craigo has joined #osdev
<muffin> all except why I'm getting a fault, but I must have made a mistake setting up the paging structures
<zid> is it a PG?
<zid> or a GP
<zid> PG just means yea, RIP is no longer valid
<zid> GP means you weren't allowed to enable paging
<muffin> Paging is already enabled
<zid> I assume PG then, and yea, bad tables
<muffin> Yep, that must be it. Now on to finding the mistake
<muffin> Thanks for helping
<zid> Time to do some recursive giant hex dumping
<muffin> heh
muffin has quit [Quit: leaving]
d5k has quit [Quit: leaving]
getz has quit [Ping timeout: 276 seconds]
bauen1 has joined #osdev
getz has joined #osdev
heat has joined #osdev
pog has joined #osdev
Nixkernal has joined #osdev
heat has quit [Read error: Connection reset by peer]
heat_ has joined #osdev
jedesa has quit [Ping timeout: 265 seconds]
heat_ has quit [Ping timeout: 260 seconds]
heat has joined #osdev
_ngn has quit [Quit: disconnected]
Left_Turn has joined #osdev
Turn_Left has quit [Ping timeout: 265 seconds]
vdamewood has joined #osdev
npc has joined #osdev
Turn_Left has joined #osdev
hwpplayer1 has joined #osdev
Left_Turn has quit [Ping timeout: 265 seconds]
heat has quit [Read error: Connection reset by peer]
heat has joined #osdev
heat has quit [Read error: Connection reset by peer]
heat has joined #osdev
heat has quit [Ping timeout: 264 seconds]
heat has joined #osdev
Arthuria has joined #osdev
goliath has joined #osdev
heat has quit [Read error: Connection reset by peer]
heat has joined #osdev
xenos1984 has quit [Ping timeout: 246 seconds]
xenos1984 has joined #osdev
xenos1984 has quit [Ping timeout: 246 seconds]
xenos1984 has joined #osdev
heat has quit [Ping timeout: 246 seconds]
qubuepe24 has joined #osdev
heat has joined #osdev
qubuepe24 has quit [Remote host closed the connection]
craigo has quit [Ping timeout: 252 seconds]
Turn_Left has quit [Remote host closed the connection]
Turn_Left has joined #osdev
bliminse has quit [Quit: leaving]
netbsduser has joined #osdev
goliath has quit [Quit: SIGSEGV]
hwpplayer1 has quit [Read error: Connection reset by peer]
Arthuria has quit [Ping timeout: 264 seconds]
bliminse has joined #osdev
Arthuria has joined #osdev
pg12 has quit [Remote host closed the connection]
pg12 has joined #osdev
npc has quit [Remote host closed the connection]
Arthuria has quit [Remote host closed the connection]
Left_Turn has joined #osdev
Turn_Left has quit [Ping timeout: 252 seconds]
Nixkernal has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
GeDaMo has quit [Quit: 0wt 0f v0w3ls.]
heat_ has joined #osdev
heat has quit [Read error: Connection reset by peer]
Nixkernal has joined #osdev
steelswords943 has quit [Quit: The Lounge - https://thelounge.chat]
netbsduser has quit [Ping timeout: 260 seconds]
steelswords9436 has joined #osdev
Nixkernal has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
cloudowind has quit [Ping timeout: 252 seconds]
cloudowind has joined #osdev
getz has quit [Remote host closed the connection]
getz has joined #osdev
spare has joined #osdev
vinleod has joined #osdev
vdamewood has quit [Read error: Connection reset by peer]
vinleod is now known as vdamewood
getz has quit [Remote host closed the connection]
getz has joined #osdev
ionut_f has joined #osdev
ionut_f has quit [Remote host closed the connection]
cloudowind has quit [Remote host closed the connection]
spare has quit [Remote host closed the connection]
cloudowind has joined #osdev
Left_Turn has quit [Read error: Connection reset by peer]
ionut_f has joined #osdev