OSDN Git Service

multiboot: Fix bss segment support
authorGöran Weinholt <goran@weinholt.se>
Sun, 24 Jul 2011 15:55:58 +0000 (17:55 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 29 Jul 2011 14:33:56 +0000 (09:33 -0500)
commit6b8273a1b97876950d91c228a420a851e10e12bb
tree7fa314d1a4f1d74828b73c32e5436844ccb97e19
parent1ece9905747fb42ab6b2797c8ddde56496f14796
multiboot: Fix bss segment support

Multiboot images can specify a bss segment. The boot loader must clear
the memory of the bss and ensure that no modules or structures are
allocated inside it. Several fields are provided in the Multiboot
header that were previously not used properly. The header is now used
to determine how much data should be read from the image and how much
memory should be reserved to the bss segment.

Signed-off-by: Göran Weinholt <goran@weinholt.se>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/multiboot.c