ia64 hpsim: enable host idling via SSC_HALT_LIGHT
PATCH 1/1 ia64 hpsim: enable host idling via SSC_HALT_LIGHT
When the ia64 kernel idles it calls PAL_HALT_LIGHT, but that is a no-op when running on ski. This prevents ski and the host from idling.
Update pal_emulator_static to recognize PAL_HALT_LIGHT and to propagate it to ski as a SSC_HALT_LIGHT. To have any effect this requires a corresponding ski update to implement SSC_HALT_LIGHT.
Tested with ski-1.3.2 + ITC 2MHz + SSC_HALT_LIGHT patches on x86_64.
Signed-off-by Mikael Pettersson <[email protected]>
---
arch/ia64/hp/sim/boot/boot_head.S +6 -0
@@ -5,6 +5,7 @@ #include <asm/asmmacro.h> #include <asm/pal.h> +#include "ssc.h" .bss .align 16
@@ -158,6 +159,11 @@ static: cmp.eq p6,p7=PAL_PTCE_INFO,r28 mov r8=0 /* status = 0 */ mov r9=0x80|0x01 /* NatPage|WB */ ;; +1: cmp.eq p6,p7=PAL_HALT_LIGHT,r28 +(p7) br.cond.sptk.few 1f + mov r15=SSC_HALT_LIGHT + break 0x80001 + ;; 1: br.cond.sptk.few rp stacked: br.ret.sptk.few rp
arch/ia64/hp/sim/boot/ssc.h +5 -0
@@ -8,6 +8,7 @@/* Simulator system calls: */ +#define SSC_HALT_LIGHT 19#define SSC_CONSOLE_INIT 20#define SSC_GETCHAR 21#define SSC_PUTCHAR 31
@@ -27,9 +28,13 @@#define SSC_GET_ARGS 75 +#ifndef __ASSEMBLY__ +/* * Simulator system call. */ extern long ssc (long arg0,long arg1,long arg2,long arg3,int nr); +#endif /* !__ASSEMBLY */ +#endif /* ssc_h */