From 4f97daf67e0baaf64251b5643af5c9552c522156 Mon Sep 17 00:00:00 2001 From: "Ian M." Date: Fri, 11 Sep 2026 03:45:03 +0000 Subject: initial commit Signed-off-by: Ian M. --- head/sboot/sboot.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 head/sboot/sboot.h (limited to 'head') diff --git a/head/sboot/sboot.h b/head/sboot/sboot.h new file mode 100644 index 0000000..749fbc7 --- /dev/null +++ b/head/sboot/sboot.h @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2026, Apollo Telephone Laboratories. + * Provided under the BSD-3 clause. + */ + +#ifndef _COMMON_SBOOT_H_ +#define _COMMON_SBOOT_H_ 1 + +/* Bootloader version */ +#define SBOOT_VERSION L"v0.0.1" + +/* Helper macros */ +#define NELEM(a) (sizeof(a) / sizeof(a[0])) + +/* TODO: Move this and make it less of an infinite loop */ +#define Hcf() \ + for (;;); + +#endif /* !_COMMON_SBOOT_H_ */ -- cgit v1.2.3