Module: xenomai-jki Branch: for-upstream Commit: d1c85a5c49f16b6a2fc0f77080a1b68fdaae4370 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=d1c85a5c49f16b6a2fc0f77080a1b68fdaae4370
Author: Jan Kiszka <jan.kis...@siemens.com> Date: Wed Sep 1 18:00:39 2010 +0200 Use ipipe_prepare_panic in rthal_emergency_console This new I-pipe service not only switches to synchronous printk, it also disables context checks, avoiding that the wrong error gets raised. Signed-off-by: Jan Kiszka <jan.kis...@siemens.com> --- include/asm-generic/hal.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/hal.h b/include/asm-generic/hal.h index a933404..1a681ea 100644 --- a/include/asm-generic/hal.h +++ b/include/asm-generic/hal.h @@ -192,7 +192,11 @@ typedef spinlock_t rthal_spinlock_t; #define rthal_setsched_root(t,pol,prio) ipipe_setscheduler_root(t,pol,prio) #define rthal_reenter_root(t,pol,prio) ipipe_reenter_root(t,pol,prio) +#ifdef __IPIPE_FEATURE_PREPARE_PANIC +#define rthal_emergency_console() ipipe_prepare_panic() +#else /* !__IPIPE_FEATURE_PREPARE_PANIC */ #define rthal_emergency_console() ipipe_set_printk_sync(ipipe_current_domain) +#endif /* !__IPIPE_FEATURE_PREPARE_PANIC */ #define rthal_read_tsc(v) ipipe_read_tsc(v) #ifdef __IPIPE_FEATURE_SYSINFO_V2 _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git