aboutsummaryrefslogtreecommitdiffstats
path: root/src/boot.c
diff options
context:
space:
mode:
authorAlexey Kirillov <lekiravi@yandex-team.ru>2020-01-07 20:19:16 +0300
committerGerd Hoffmann <kraxel@redhat.com>2020-01-14 09:12:45 +0100
commit7c40d945b9313a87a39657a277ef65fa7bdfb983 (patch)
treefc64edada0517c6b74909ac0bb3940a48b8dfcb8 /src/boot.c
parentf21b5a4aeb020f2a5e2c6503f906a9349dd2f069 (diff)
downloadseabios-7c40d945b9313a87a39657a277ef65fa7bdfb983.tar.gz
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 <lekiravi@yandex-team.ru> Message-id: 20200107171917.7535-2-lekiravi@yandex-team.ru Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'src/boot.c')
-rw-r--r--src/boot.c5
1 files changed, 5 insertions, 0 deletions
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)