Skip to content
Snippets Groups Projects
Commit 5168d7a6 authored by Thirupathaiah Annapureddy's avatar Thirupathaiah Annapureddy Committed by Tom Rini
Browse files

menu: add support for client defined statusline function


Currently displaying status line is done in a weak function
menu_display_statusline().

bootmenu.c overrides the weak default function.
It calls menu_default_choice() and interprets the data as
struct bootmenu_entry.

pxe boot also uses common menu code for pxe menus.
If there is a system that enables both bootmenu and pxe,
menu_display_statusline() defined in bootmenu.c will be called
and it will interpret struct pxe_label as struct bootmenu_entry.
This leads to data aborts and pxe menu corruptions.

This patch adds support for client defined statusline function
to resolve the above bug.

Signed-off-by: default avatarThirupathaiah Annapureddy <thiruan@linux.microsoft.com>
parent fdf0819a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment