chain.c32: pass partition number to stage2 of Grub Legacy
authorGert Hulselmans <gerth@zytor.com>
Mon, 28 Jun 2010 01:11:48 +0000 (03:11 +0200)
committerShao Miller <shao.miller@yrdsb.edu.on.ca>
Mon, 28 Jun 2010 01:25:44 +0000 (18:25 -0700)
commit8c3bfcedff660798039129e66c29a440c7b5a464
tree8586ea3ccabdbf88d927dce2c09a0c3d002bd340
parent3a74aa5230b81ef83612d02f7c405915afc5e64b
chain.c32: pass partition number to stage2 of Grub Legacy

Grub Legacy stage2 will read the install_partition variable from
memory address 0x8208.
We only need to change the value at 0x820a to the correct partition
number:
  -1:   whole drive (default)
  0-3:  primary partitions
  4-*:  logical partitions

Signed-off-by: Gert Hulselmans <gerth@zytor.com>
com32/modules/chain.c