Results 1 to 2 of 2
I applied the lck base patch to a stock 2.4.34 kernel. But when compiling i get an error:
i387.c: In function `__save_init_fpu':
i387.c:80: error: structure has no member named `context_swtch'
...
- 02-03-2007 #1Just Joined!
- Join Date
- Feb 2007
- Posts
- 1
2.4.34 -lck error context_switch
I applied the lck base patch to a stock 2.4.34 kernel. But when compiling i get an error:
i387.c: In function `__save_init_fpu':
i387.c:80: error: structure has no member named `context_swtch'
Anyone seen anything ike this before? I should note that the kernel builds fine with the same config file but without the patch.
Thanks
Andrew
- 09-22-2007 #2Just Joined!
- Join Date
- Sep 2007
- Posts
- 1
[Fixed] Add the missing line in kernel_stat.h
cat linux-2.4.34/include/linux/kernel_stat.h
struct kernel_stat {
unsigned long per_cpu_user[NR_CPUS],
per_cpu_nice[NR_CPUS],
per_cpu_system[NR_CPUS];
unsigned int dk_drive[DK_MAX_MAJOR][DK_MAX_DISK];
unsigned int dk_drive_rio[DK_MAX_MAJOR][DK_MAX_DISK];
unsigned int dk_drive_wio[DK_MAX_MAJOR][DK_MAX_DISK];
unsigned int dk_drive_rblk[DK_MAX_MAJOR][DK_MAX_DISK];
unsigned int dk_drive_wblk[DK_MAX_MAJOR][DK_MAX_DISK];
unsigned int pgpgin, pgpgout;
unsigned int pswpin, pswpout;
#if defined (__hppa__)
unsigned int irqs[NR_CPUS][NR_IRQ_REGS][IRQ_PER_REGION];
#elif !defined(CONFIG_ARCH_S390)
unsigned int irqs[NR_CPUS][NR_IRQS];
#endif
unsigned int context_swtch;
};


Reply With Quote
