ifplop.c32: Detect if PLoP USB/CD INT13h hook is enabled/disabled
authorGert Hulselmans <gerth@zytor.com>
Thu, 1 Jul 2010 15:57:44 +0000 (17:57 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 1 Jul 2010 20:39:34 +0000 (13:39 -0700)
commit01dc2ad8336cc9dbd76f1e74cd4fec2e45334797
tree68cc1b44e61ca6a71f4deb3fe150769e827f52cf
parent4d98f51f96a841bd80438e25d1630cb91a9e4d7f
ifplop.c32: Detect if PLoP USB/CD INT13h hook is enabled/disabled

New module which detects if the PLoP Boot Loader already has booted a
CDROM or USB drive by checking for the presence of the PLoP INT13h hook.

The following assembly code (NASM) can detect the PLoP INT13h hook:

  mov eax,'PoLP'  ; Reverse of 'PLoP'
  mov ebp,'DKHC'  ; Reverse of 'CHKD'
  int 13h
  cmp eax,' sey'  ; Reverse of 'yes '
  jz plop_INT13h_active

Signed-off-by: Gert Hulselmans <gerth@zytor.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
NEWS
com32/modules/Makefile
com32/modules/ifplop.c [new file with mode: 0644]