Re: [Xenomai-core] [PATCH] Xenomai stable ppc64 I-pipe sync

2005-11-14 Thread Philippe Gerum

Heikki Lindholm wrote:

Sync the ppc64 arch of the stable tree to work with I-pipe kernel also.



Applied, thanks.


-- Heikki Lindholm




diff -Nru xenomai/arch/ppc64/hal/switch.S xenomai-devel/arch/ppc64/hal/switch.S
--- xenomai/arch/ppc64/hal/switch.S 2005-10-11 10:32:30.0 +0300
+++ xenomai-devel/arch/ppc64/hal/switch.S   2005-11-08 12:49:18.0 
+0200
@@ -26,7 +26,6 @@
 #include 
 #include 
 #include 
-#include 
 #include 
 #include  
 
diff -Nru xenomai/include/nucleus/asm-ppc64/hal.h xenomai-devel/include/nucleus/asm-ppc64/hal.h

--- xenomai/include/nucleus/asm-ppc64/hal.h 2005-10-11 10:30:03.0 
+0300
+++ xenomai-devel/include/nucleus/asm-ppc64/hal.h   2005-11-08 
11:32:17.0 +0200
@@ -98,7 +98,11 @@
 #include 
 #include 
 
+#ifdef CONFIG_ADEOS_CORE

 #define RTHAL_TIMER_IRQ   ADEOS_TIMER_VIRQ
+#else /* !CONFIG_ADEOS_CORE */
+#define RTHAL_TIMER_IRQ   IPIPE_TIMER_VIRQ
+#endif /* CONFIG_ADEOS_CORE */
 
 #define rthal_irq_descp(irq)	(&irq_desc[(irq)])
 
diff -Nru xenomai/include/nucleus/asm-ppc64/system.h xenomai-devel/include/nucleus/asm-ppc64/system.h

--- xenomai/include/nucleus/asm-ppc64/system.h  2005-11-01 11:04:04.0 
+0200
+++ xenomai-devel/include/nucleus/asm-ppc64/system.h2005-11-08 
11:35:38.0 +0200
@@ -31,10 +31,12 @@
 #include 
 #include 
 
+#ifdef CONFIG_ADEOS_CORE

 #if ADEOS_RELEASE_NUMBER < 0x02060201
 #error "Adeos 2.6r2c1/ppc64 or above is required to run this software; please 
upgrade."
 #error "See http://download.gna.org/adeos/patches/v2.6/ppc64/";
 #endif
+#endif /* CONFIG_ADEOS_CORE */
 
 #define XNARCH_DEFAULT_TICK 100 /* ns, i.e. 1ms */

 #define XNARCH_HOST_TICK(10UL/HZ)
@@ -102,11 +104,19 @@
 
 /* The following predicates are only usable over a regular Linux stack

  *context. */
+#ifdef CONFIG_ADEOS_CORE
 #define xnarch_fault_pf_p(fi)   ((fi)->exception == ADEOS_ACCESS_TRAP)
 #define xnarch_fault_bp_p(fi)   ((current->ptrace & PT_PTRACED) && \
((fi)->exception == ADEOS_IABR_TRAP || \
(fi)->exception == ADEOS_SSTEP_TRAP || \
(fi)->exception == ADEOS_PERFMON_TRAP))
+#else /* !CONFIG_ADEOS_CORE */
+#define xnarch_fault_pf_p(fi)   ((fi)->exception == IPIPE_TRAP_ACCESS)
+#define xnarch_fault_bp_p(fi)   ((current->ptrace & PT_PTRACED) && \
+   ((fi)->exception == IPIPE_TRAP_IABR || \
+   (fi)->exception == IPIPE_TRAP_SSTEP || \
+   (fi)->exception == IPIPE_TRAP_PERFMON))
+#endif /* CONFIG_ADEOS_CORE */
 
 #define xnarch_fault_notify(fi) (!xnarch_fault_bp_p(fi))
 





___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core



--

Philippe.



Re: [Xenomai-core] [PATCH] Xenomai stable ppc64 I-pipe sync

2005-11-14 Thread Philippe Gerum

Heikki Lindholm wrote:

Sync the ppc64 arch of the stable tree to work with I-pipe kernel also.



Applied, thanks.


-- Heikki Lindholm




diff -Nru xenomai/arch/ppc64/hal/switch.S xenomai-devel/arch/ppc64/hal/switch.S
--- xenomai/arch/ppc64/hal/switch.S 2005-10-11 10:32:30.0 +0300
+++ xenomai-devel/arch/ppc64/hal/switch.S   2005-11-08 12:49:18.0 
+0200
@@ -26,7 +26,6 @@
 #include 
 #include 
 #include 
-#include 
 #include 
 #include  
 
diff -Nru xenomai/include/nucleus/asm-ppc64/hal.h xenomai-devel/include/nucleus/asm-ppc64/hal.h

--- xenomai/include/nucleus/asm-ppc64/hal.h 2005-10-11 10:30:03.0 
+0300
+++ xenomai-devel/include/nucleus/asm-ppc64/hal.h   2005-11-08 
11:32:17.0 +0200
@@ -98,7 +98,11 @@
 #include 
 #include 
 
+#ifdef CONFIG_ADEOS_CORE

 #define RTHAL_TIMER_IRQ   ADEOS_TIMER_VIRQ
+#else /* !CONFIG_ADEOS_CORE */
+#define RTHAL_TIMER_IRQ   IPIPE_TIMER_VIRQ
+#endif /* CONFIG_ADEOS_CORE */
 
 #define rthal_irq_descp(irq)	(&irq_desc[(irq)])
 
diff -Nru xenomai/include/nucleus/asm-ppc64/system.h xenomai-devel/include/nucleus/asm-ppc64/system.h

--- xenomai/include/nucleus/asm-ppc64/system.h  2005-11-01 11:04:04.0 
+0200
+++ xenomai-devel/include/nucleus/asm-ppc64/system.h2005-11-08 
11:35:38.0 +0200
@@ -31,10 +31,12 @@
 #include 
 #include 
 
+#ifdef CONFIG_ADEOS_CORE

 #if ADEOS_RELEASE_NUMBER < 0x02060201
 #error "Adeos 2.6r2c1/ppc64 or above is required to run this software; please 
upgrade."
 #error "See http://download.gna.org/adeos/patches/v2.6/ppc64/";
 #endif
+#endif /* CONFIG_ADEOS_CORE */
 
 #define XNARCH_DEFAULT_TICK 100 /* ns, i.e. 1ms */

 #define XNARCH_HOST_TICK(10UL/HZ)
@@ -102,11 +104,19 @@
 
 /* The following predicates are only usable over a regular Linux stack

  *context. */
+#ifdef CONFIG_ADEOS_CORE
 #define xnarch_fault_pf_p(fi)   ((fi)->exception == ADEOS_ACCESS_TRAP)
 #define xnarch_fault_bp_p(fi)   ((current->ptrace & PT_PTRACED) && \
((fi)->exception == ADEOS_IABR_TRAP || \
(fi)->exception == ADEOS_SSTEP_TRAP || \
(fi)->exception == ADEOS_PERFMON_TRAP))
+#else /* !CONFIG_ADEOS_CORE */
+#define xnarch_fault_pf_p(fi)   ((fi)->exception == IPIPE_TRAP_ACCESS)
+#define xnarch_fault_bp_p(fi)   ((current->ptrace & PT_PTRACED) && \
+   ((fi)->exception == IPIPE_TRAP_IABR || \
+   (fi)->exception == IPIPE_TRAP_SSTEP || \
+   (fi)->exception == IPIPE_TRAP_PERFMON))
+#endif /* CONFIG_ADEOS_CORE */
 
 #define xnarch_fault_notify(fi) (!xnarch_fault_bp_p(fi))
 





___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core



--

Philippe.

___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core