0
votes

I understand that x86 machine code can make POSIX system calls using software interrupts (by entering a 32-bit value corresponding to a kernel function into the EAX register of the processor and then executing INT 0x80).

I'm looking into designing a small Unix-like operating system for the AVR architecture for fun and learning. How do software interrupts like x86's INT work on AVR?

1

1 Answers

3
votes

They don't. AVR has no provision for software interrupts. If you need to generate an interrupt from software then you will need to convince some piece of hardware to generate it instead. Otherwise just use a JSR as normal.