Help with making 11.3 with RTAI

Hi,
I have downloaded 11.3 src and build a kernel which runs ok. I want to add RTAI to this so I downloaded RTAI 3.8 and ran .configure. I got the following message
configure: error: HAL patch not applied/enabled in /usr/src/linux

I asked on the Emc list and someone told me there were patches in rtai-3.8/base/arch/x86_64/patches. The latest I found was hal-linux-2.6.23-x86_64-1.4-03.patch

I have two questions, firstly is it worth applying this patch seeing the difference in kernel versions (mine is 2.6.34-12). Also how do I apply the patch ? I tried

$patch path -i hal-linux-2.6.23-x86_64-1.4-03.patch --verbose /usr/src/linux
Hmm…patch: **** read error : Is a directory

so this is obviously not correct. The patch file seems to contain changes for various files example bit is shown below.

Whilst I have been writing programs for many years this Linux systems stuff is all new to me so I am on a steep learning curve.

Thanks
Alan

patch file starts as

diff --git a/Makefile b/Makefile
index 4635a64…abf57e4 100644
— a/Makefile
+++ b/Makefile
@@ -491,6 +491,10 @@ endif

include $(srctree)/arch/$(ARCH)/Makefile

+ifdef CONFIG_IPIPE_TRACE_MCOUNT
+CFLAGS += -pg
+endif
+
ifdef CONFIG_FRAME_POINTER
CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
else
diff --git a/arch/i386/kernel/cpu/mtrr/cyrix.c b/arch/i386/kernel/cpu/mtrr/cyrix.c
index 2287d48…7f27044 100644
— a/arch/i386/kernel/cpu/mtrr/cyrix.c
+++ b/arch/i386/kernel/cpu/mtrr/cyrix.c
@@ -18,7 +18,7 @@ cyrix_get_arr(unsigned int reg, unsigned long base,
arr = CX86_ARR_BASE + (reg << 1) + reg; /
avoid multiplication by 3 */

/* Save flags and disable interrupts */
  • local_irq_save(flags);
  • local_irq_save_hw(flags);

    ccr3 = getCx86(CX86_CCR3);
    setCx86(CX86_CCR3, (ccr3 & 0x0f) | 0x10); /* enable MAPEN */
    @@ -29,7 +29,7 @@ cyrix_get_arr(unsigned int reg, unsigned long base,
    setCx86(CX86_CCR3, ccr3); /
    disable MAPEN */

etc