diff options
author | Tom Cosgrove <tom@cvs.openbsd.org> | 2016-10-09 11:25:41 +0000 |
---|---|---|
committer | Tom Cosgrove <tom@cvs.openbsd.org> | 2016-10-09 11:25:41 +0000 |
commit | d43df1ec23df938621913673f3c027e7a46a1d5b (patch) | |
tree | d9920233d56e2bd5710c0f3cc54ada133d36f4b7 /sys/arch/luna88k | |
parent | d2fec34135b93761a0a2758580a954b77099a20c (diff) |
Apply consistency to forever loops with continue and NOTREACHED
Same thought from kettenis@, ok krw@ phessler@ millert@
Diffstat (limited to 'sys/arch/luna88k')
-rw-r--r-- | sys/arch/luna88k/luna88k/machdep.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/arch/luna88k/luna88k/machdep.c b/sys/arch/luna88k/luna88k/machdep.c index 8d9ddfdb0b4..8ca16b2b47f 100644 --- a/sys/arch/luna88k/luna88k/machdep.c +++ b/sys/arch/luna88k/luna88k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.120 2016/07/16 08:53:37 tom Exp $ */ +/* $OpenBSD: machdep.c,v 1.121 2016/10/09 11:25:40 tom Exp $ */ /* * Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -497,7 +497,8 @@ haltsys: *((volatile unsigned *)0x6d000010) = 0; } - for (;;) ; + for (;;) + continue; /* NOTREACHED */ } @@ -742,7 +743,9 @@ secondary_pre_main() printf("cpu%d: unable to get startup stack\n", ci->ci_cpuid); hatch_pending_count--; __cpu_simple_unlock(&cpu_hatch_mutex); - for (;;) ; + for (;;) + continue; + /* NOTREACHED */ } return ci->ci_curpcb; |