I have written a keyboard interrupt handler where in my ASM code I have an instruction iretd
.
When compiling the file, GCC returns an error saying
drivers/kbd_hndlr.S: Assembler messages:
drivers/kbd_hndlr.S:6: Error: no such instruction: `iretd'
I have searched on Google for solutions but I can't seem to find anything about iretd
for the AT&T syntax.
Is there any alternative I can use instead?
kbd_hndlr.S:
.global keyboard_handler
.extern keyboard_main
keyboard_handler:
call keyboard_main
iretd