summaryrefslogtreecommitdiff
path: root/stand/uboot
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2018-01-26 22:22:21 +0000
committerWarner Losh <imp@FreeBSD.org>2018-01-26 22:22:21 +0000
commit47940d8594c5c565542686812792905791529533 (patch)
treee1c64bfc0ab6445b0a51cc23236cfcb55fc01231 /stand/uboot
parent71710c12d6c3f466b38c340002c2d8ca849406e3 (diff)
downloadsrc-test2-47940d8594c5c565542686812792905791529533.tar.gz
src-test2-47940d8594c5c565542686812792905791529533.zip
Notes
Diffstat (limited to 'stand/uboot')
-rw-r--r--stand/uboot/common/main.c3
-rw-r--r--stand/uboot/lib/glue.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/stand/uboot/common/main.c b/stand/uboot/common/main.c
index 5540059797cc..a88a8bd0ae46 100644
--- a/stand/uboot/common/main.c
+++ b/stand/uboot/common/main.c
@@ -526,7 +526,8 @@ command_reboot(int argc, char *argv[])
ub_reset();
printf("Reset failed!\n");
- while(1);
+ while (1);
+ __unreachable();
}
COMMAND_SET(devinfo, "devinfo", "show U-Boot devices", command_devinfo);
diff --git a/stand/uboot/lib/glue.c b/stand/uboot/lib/glue.c
index 70a655401c0b..016d435b345e 100644
--- a/stand/uboot/lib/glue.c
+++ b/stand/uboot/lib/glue.c
@@ -187,7 +187,8 @@ ub_reset(void)
{
syscall(API_RESET, NULL);
- while (1); /* Can't tag syscall as __dead2 */
+ while (1); /* fallback if API_RESET failed */
+ __unreachable();
}
static struct mem_region mr[UB_MAX_MR];