osvein
osvein

Reputation: 645

Software interrupts on AVR

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?

Upvotes: 0

Views: 1205

Answers (1)

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798626

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.

Upvotes: 3

Related Questions