s390-ccw: read stage2 boot loader data to find menu
commitba831b25262aa3d0c6d5eb0cd530487d3cb05493
authorCollin L. Walling <walling@linux.vnet.ibm.com>
Fri, 23 Feb 2018 15:43:14 +0000 (23 10:43 -0500)
committerThomas Huth <thuth@redhat.com>
Mon, 26 Feb 2018 06:56:55 +0000 (26 07:56 +0100)
tree2737b286198feb8d58569424fdcae2e699b2b1a3
parent9eaa654ab327b54901f398440258be766c327953
s390-ccw: read stage2 boot loader data to find menu

Read the stage2 boot loader data block-by-block. We scan the
current block for the string "zIPL" to detect the start of the
boot menu banner. We then load the adjacent blocks (previous
block and next block) to account for the possibility of menu
data spanning multiple blocks.

Signed-off-by: Collin L. Walling <walling@linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
pc-bios/s390-ccw/bootmap.c
pc-bios/s390-ccw/bootmap.h
pc-bios/s390-ccw/menu.c
pc-bios/s390-ccw/s390-ccw.h