From 7c40d945b9313a87a39657a277ef65fa7bdfb983 Mon Sep 17 00:00:00 2001 From: Alexey Kirillov Date: Tue, 7 Jan 2020 20:19:16 +0300 Subject: boot: Detect strict boot order (HALT record) in function Introduce is_bootprio_strict(). We will reuse this function in the next commit. Signed-off-by: Alexey Kirillov Message-id: 20200107171917.7535-2-lekiravi@yandex-team.ru Signed-off-by: Gerd Hoffmann --- src/boot.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/boot.c') diff --git a/src/boot.c b/src/boot.c index ea18194d..5182ab42 100644 --- a/src/boot.c +++ b/src/boot.c @@ -295,6 +295,11 @@ find_prio(const char *glob) return -1; } +u8 is_bootprio_strict(void) +{ + return find_prio("HALT") >= 0; +} + int bootprio_find_pci_device(struct pci_device *pci) { if (CONFIG_CSM) -- cgit