What defines the 32 CPU interrupt logic?
Posted: Sat Dec 12, 2020 12:47 pm
Apology for noob question. I'm following an OS from scratch tutorial and got to the point of memory management: https://wiki.osdev.org/Detecting_Memory_(x86) I want to know my available and detected memory space. The page explains using INT 0x12 or INT 0x15.
My confusion is around these interrupts. In an earlier phase I defined the base 32 CPU interrupts as explained in https://wiki.osdev.org/Interrupt_Descriptor_Table - including 0x12 and 0x15. Now obviously calling INT 0x12 or the other will go to my routines.
In case of memory detection (INT 0x12) - am I correct that it's my responsibility to write the code that detects the memory and sets the size in AX? Which would leave me a question - how do I really detect the memory?
My confusion is around these interrupts. In an earlier phase I defined the base 32 CPU interrupts as explained in https://wiki.osdev.org/Interrupt_Descriptor_Table - including 0x12 and 0x15. Now obviously calling INT 0x12 or the other will go to my routines.
In case of memory detection (INT 0x12) - am I correct that it's my responsibility to write the code that detects the memory and sets the size in AX? Which would leave me a question - how do I really detect the memory?