At least one laptop exists which calls INT 2Fh from inside the BIOS!
So just point INT 2Fh to IRET, and hope that's good enough.
stosd
mov ax,comboot_int22 ; INT 22h = proprietary syscalls
stosd
+ ; There exists at least one laptop where the VESA BIOS makes INT 2Fh calls
+ ; back into DOS, for unknown reason...
+ mov ax,comboot_iret ; INT 2Fh = DOS callbacks
+ mov [di+(2Fh-23h)*4],eax
ret
; INT 21h: generic DOS system call
pop fs
pop es
pop ds
+comboot_iret:
iret
comboot_bad_int21: