Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Device drivers and Interrupt service routines

A very basic question. I have learnt that device drivers and interrupt service routines are some program or codes only. whenever required they are made to execute. Execution means CPU is executing some instructions out of its instruction set ISA. So does it mean that device drivers and ISRs are also machine instructions to generate the required result?

what exactly such programs likes device driver and interrupt routines made up of? do such programs also have a data segment, code segment and stack segment?

I am learning x86 assembly language and C .

like image 547
KawaiKx Avatar asked Sep 05 '25 22:09

KawaiKx


1 Answers

That is an accurate assessment. A complex enough device driver has a data segment, code segment and a stack segment.

like image 111
Olaf Avatar answered Sep 10 '25 00:09

Olaf