my bootloader has a
Code: Select all
cli
as far as i can tell this shouldn't be happening, right? of course an easy solution is to just tack another
Code: Select all
cli
Code: Select all
generate_memory_map
Code: Select all
AGCN25WW(V1.08)
Code: Select all
cli
Code: Select all
cli
Code: Select all
generate_memory_map
Code: Select all
AGCN25WW(V1.08)
The BIOS is free to enable interrupts any time you call it. Your code must be prepared for that to happen.tetraxile wrote:as far as i can tell this shouldn't be happening, right?
Steps 1 and 3 are unnecessary.sounds wrote:One common solution is to organize the code sort of like this:
That is a bit disconcerting to me. You are not supposed to enable interrupts until you have found and initialized all interrupt controllers. And the initialization of the interrupt controllers should include masking out all interrupts. The drivers requesting interrupts would then unmask them again, but have them masked by default. Else you are getting interrupts you cannot handle.tetraxile wrote:and only then re-enable interrupts.
Perhaps? Not sure what you mean. After all, getting the 8259 PIC into a known state is considered harmless.Octocontrabass wrote:Steps 1 and 3 are unnecessary.