[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 5/8] pc-bios: s390x: Move panic() into header and add infinit
From: |
David Hildenbrand |
Subject: |
Re: [PATCH 5/8] pc-bios: s390x: Move panic() into header and add infinite loop |
Date: |
Thu, 30 Apr 2020 17:42:47 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
On 24.03.20 16:08, Janosch Frank wrote:
> panic() was defined for the ccw and net bios, i.e. twice, so it's
> cleaner to rather put it into the header.
>
> Also let's add an infinite loop into the assembly of disabled_wait() so
> the caller doesn't need to take care of it.
>
> Signed-off-by: Janosch Frank <address@hidden>
> Reviewed-by: Pierre Morel <address@hidden>
> ---
> pc-bios/s390-ccw/main.c | 7 -------
> pc-bios/s390-ccw/netmain.c | 8 --------
> pc-bios/s390-ccw/s390-ccw.h | 7 ++++++-
> pc-bios/s390-ccw/start.S | 5 +++--
> 4 files changed, 9 insertions(+), 18 deletions(-)
>
> diff --git a/pc-bios/s390-ccw/main.c b/pc-bios/s390-ccw/main.c
> index 8b912454c940a390..146a50760bc70af7 100644
> --- a/pc-bios/s390-ccw/main.c
> +++ b/pc-bios/s390-ccw/main.c
> @@ -46,13 +46,6 @@ void write_iplb_location(void)
> lowcore->ptr_iplb = ptr2u32(&iplb);
> }
>
> -void panic(const char *string)
> -{
> - sclp_print(string);
> - disabled_wait();
> - while (1) { }
> -}
I remember there was a reason why to add the endless loop afterwards.
Maybe because some special machine checks can actually wake it up? Or
buggy hypervisor?
Anyhow, the kernel also does
__load_psw(psw);
while (1);
so it's best we keep that.
With the endless loop re-added
Reviewed-by: David Hildenbrand <address@hidden>
--
Thanks,
David / dhildenb