difference of 'INT' instruction between Linux and Windows

后端 未结 2 467
别跟我提以往
别跟我提以往 2021-01-22 11:47

I write some code to make my own operating system and study x86 assembly language, too. While studying x86 assembly language, I start wondering about interrupt. Look at below as

2条回答
  •  走了就别回头了
    2021-01-22 12:25

    The int instruction raises a software interrupt. This causes the CPU to execute an interrupt handler from the interrupt description table (IDT). On startup, the BIOS sets up an IDT with a number of interrupt handlers that perform some elementary services. DOS adds its own interrupt handlers to this table to provide DOS specific functionality.

    Modern operating systems run in protected mode. In this mode, the BIOS services do not function as they are written to be executed in real mode. A modern operating system typically replaces the standard interrupt description table with a custom table. Thus, neither DOS nor BIOS services are available.

提交回复
热议问题