[POWERPC] reboot when panic_timout is set

Only call into RTAS when booted with panic=0 because the RTAS call
does not return.  The system has to be rebooted via the HMC or via the
management console right now.  This is cumbersome and not what the
default panic=180 is supposed to do.

Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
Olaf Hering 2006-08-21 18:11:32 +02:00 коммит произвёл Paul Mackerras
Родитель e2bf2e26c0
Коммит 39ed2fe62c
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -628,6 +628,9 @@ void rtas_os_term(char *str)
{ {
int status; int status;
if (panic_timeout)
return;
if (RTAS_UNKNOWN_SERVICE == rtas_token("ibm,os-term")) if (RTAS_UNKNOWN_SERVICE == rtas_token("ibm,os-term"))
return; return;