From e6451bde4b7f2936acbdfd5c4e5817b6df687a7c Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 17 Jul 2013 17:12:34 -0700 Subject: movebits: add an inline to test for SMT_FREE || SMT_TERMINAL Introduce a predicate inline to test for a valid terminal address. Signed-off-by: H. Peter Anvin --- com32/include/syslinux/movebits.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/com32/include/syslinux/movebits.h b/com32/include/syslinux/movebits.h index d5c903a0..d12fb584 100644 --- a/com32/include/syslinux/movebits.h +++ b/com32/include/syslinux/movebits.h @@ -44,6 +44,11 @@ struct syslinux_memmap { struct syslinux_memmap *next; }; +static inline bool valid_terminal_type(enum syslinux_memmap_types type) +{ + return (type == SMT_FREE) || (type == SMT_TERMINAL); +} + /* * moves is computed from "fraglist" and "memmap". Areas that are * to be zeroed should be marked as such in the memmap, not in the -- cgit v1.2.1