Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #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.

  2. #2

    [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],
    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];
    unsigned int context_swtch;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts