Whatever calling sequence you choose, please put the required attribute for any function that needs something specific in the declaration for that function (in a header file). This includes any function implemented in assembler (except those without arguments at all).
This will save you a lot of headaches ;-)
I appreciate the clarification.
Thanks, Myles
This patch makes the vm86 call succeed. It
1. moves the run_bios function down so it can call setup_realmode_idt 2. adds the __attribute__((regnum(0))) to biosint because it is called from assembly
Signed-off-by: Myles Watson mylesgw@gmail.com
Thanks, Myles