chain.c32: add support for booting the Recovery Console of Windows NT/2K/XP
authorKim Mik <kimmik999999@yahoo.co.uk>
Mon, 28 Dec 2009 21:42:55 +0000 (21:42 +0000)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 29 Dec 2009 00:19:10 +0000 (16:19 -0800)
commit72755af2664dcea9d699fa6b8e0af72867bb5d72
tree3ba1fb452a1aac8cac1dadd92698fd55cbc3d01d
parentf491a01cbac0ecc7eb072d2caeac2d529091eb9b
chain.c32: add support for booting the Recovery Console of Windows NT/2K/XP

The following patch for chain.c32 adds support to boot the Recovery Console of Windows NT/2K/XP.
Normally when you want to boot the recovery console, you need to patch "cmdcons\0" into the
bootsectorof the partition (8 bytes starting at 0x3 (4th byte)).

We can do this patching in memory:
  strcpy((char *) 0x7c03, "cmdcons");

To boot the recovery console with chain.c32:
  chain.c32 cmldr=/cmldr

- Gert Hulselmans
com32/modules/chain.c