14e2277962
while others dislike them being extra commits, let's clean them up once and for all for the existing code. If it's ugly, let it only be ugly once :-) Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5507 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
28 lines
331 B
C
28 lines
331 B
C
#include "linux_syscall.h"
|
|
#include "linux_console.h"
|
|
static void goto_test(void)
|
|
{
|
|
int i;
|
|
print_debug("goto_test\n");
|
|
|
|
i = 0;
|
|
goto bottom;
|
|
{
|
|
top:
|
|
print_debug("i = ");
|
|
print_debug_hex8(i);
|
|
print_debug("\n");
|
|
|
|
i = i + 1;
|
|
}
|
|
bottom:
|
|
if (i < 10) {
|
|
goto top;
|
|
}
|
|
}
|
|
|
|
static void main(void)
|
|
{
|
|
goto_test();
|
|
_exit(0);
|
|
}
|