lkml.org 
[lkml]   [2002]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCHSET 11/17] support PC-9800 against 2.5.45-ac1 (kernel)
    This patch includes linux/kernel/* files changes.
    diffstat:
    kernel/dma.c | 3 +++
    kernel/ksyms.c | 4 ++++
    kernel/timer.c | 5 +++++
    3 files changed, 12 insertions(+)
    --
    Osamu Tomitadiff -urN linux/kernel/dma.c linux98/kernel/dma.c
    --- linux/kernel/dma.c Sun Aug 11 10:41:22 2002
    +++ linux98/kernel/dma.c Wed Aug 21 09:53:59 2002
    @@ -9,6 +9,7 @@
    * [It also happened to remove the sizeof(char *) == sizeof(int)
    * assumption introduced because of those /proc/dma patches. -- Hennus]
    */
    +#include <linux/config.h>
    #include <linux/module.h>
    #include <linux/kernel.h>
    #include <linux/errno.h>
    @@ -62,10 +63,12 @@
    { 0, 0 },
    { 0, 0 },
    { 0, 0 },
    +#ifndef CONFIG_PC9800
    { 1, "cascade" },
    { 0, 0 },
    { 0, 0 },
    { 0, 0 }
    +#endif
    };


    diff -urN linux/kernel/ksyms.c linux98/kernel/ksyms.c
    --- linux/kernel/ksyms.c Tue Nov 5 10:16:25 2002
    +++ linux98/kernel/ksyms.c Wed Nov 6 10:02:10 2002
    @@ -602,5 +602,9 @@
    EXPORT_SYMBOL(__per_cpu_offset);
    #endif

    +/* Whether PC-9800 architecture or not No:0 Yes:1 */
    +int pc98 = 0;
    +EXPORT_SYMBOL(pc98);
    +
    /* debug */
    EXPORT_SYMBOL(dump_stack);
    diff -urN linux/kernel/timer.c linux98/kernel/timer.c
    --- linux/kernel/timer.c Thu Oct 31 13:23:44 2002
    +++ linux98/kernel/timer.c Thu Oct 31 17:36:24 2002
    @@ -400,8 +400,13 @@
    /*
    * Timekeeping variables
    */
    +#ifndef CONFIG_PC9800
    unsigned long tick_usec = TICK_USEC; /* ACTHZ period (usec) */
    unsigned long tick_nsec = TICK_NSEC(TICK_USEC); /* USER_HZ period (nsec) */
    +#else
    +extern unsigned long tick_usec; /* ACTHZ period (usec) */
    +extern unsigned long tick_nsec; /* USER_HZ period (nsec) */
    +#endif

    /* The current time */
    struct timespec xtime __attribute__ ((aligned (16)));
    \
     
     \ /
      Last update: 2005-03-22 13:30    [W:0.183 / U:0.076 seconds]
    ©2003-2014 Jasper Spaans. Advertise on this site