What will cpu do while ints are blocked?
What will cpu do while ints are blocked?
When interrupt are blocked (cli), If an disk interrupt has been issued, will the cpu simply abandoned it or put it on hold until it is availiable for interrupt???
Re: What will cpu do while ints are blocked?
The interrupt is queued in the local APIC's IRR (interrupt request register) request. As soon as IF becomes 1 (e.g., sti is executed), the highest priority interrupt is moved from the IRR to the ISR (interrupt service register). As the IRR only has one bit per interrupt, the information how many interrupts (of the same vector) occurred is lost (regardless of whether IF is 0 or 1).
managarm: Microkernel-based OS capable of running a Wayland desktop (Discord: https://discord.gg/7WB6Ur3). My OS-dev projects: [mlibc: Portable C library for managarm, qword, Linux, Sigma, ...] [LAI: AML interpreter] [xbstrap: Build system for OS distributions].