From edfb6a03d862e332223eda02be46109be12c0a4e Mon Sep 17 00:00:00 2001 From: Philipp Rudo Date: Tue, 8 Oct 2019 19:59:17 +0200 Subject: [PATCH] zipl/stage3: Mark start_kernel __noreturn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Philipp Rudo Reviewed-by: Stefan Haberland Signed-off-by: Jan Höppner --- zipl/boot/stage3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zipl/boot/stage3.c b/zipl/boot/stage3.c index 050da297..a3e65be8 100644 --- a/zipl/boot/stage3.c +++ b/zipl/boot/stage3.c @@ -175,8 +175,7 @@ static void ebcdic_to_ascii(unsigned char *target, unsigned char *source, target[i] = ebc[source[i]]; } -static void -start_kernel(void) +static inline void __noreturn start_kernel(void) { struct psw_t *psw = &S390_lowcore.program_new_psw; unsigned long addr, code; @@ -199,6 +198,7 @@ start_kernel(void) : [addr] "=&d" (addr), [code] "+&d" (code) : [psw] "a" (psw) ); + while (1); } unsigned int