lkml.org 
[lkml]   [2003]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCHSET] PC-9800 sub-arch (17/29) kernel
    This is patchset to support NEC PC-9800 subarchitecture
    against 2.5.59 (17/29).

    Misc files for support PC98.

    diff -Nru linux/kernel/dma.c linux98/kernel/dma.c
    --- linux/kernel/dma.c 2002-08-11 10:41:22.000000000 +0900
    +++ linux98/kernel/dma.c 2002-08-21 09:53:59.000000000 +0900
    @@ -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_X86_PC9800
    { 1, "cascade" },
    { 0, 0 },
    { 0, 0 },
    { 0, 0 }
    +#endif
    };


    diff -Nru linux/kernel/timer.c linux98/kernel/timer.c
    --- linux/kernel/timer.c 2002-12-10 11:45:52.000000000 +0900
    +++ linux98/kernel/timer.c 2002-12-16 16:14:08.000000000 +0900
    @@ -434,8 +434,13 @@
    /*
    * Timekeeping variables
    */
    +#ifndef CONFIG_X86_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)));
    diff -Nru linux/include/linux/kernel.h linux98/include/linux/kernel.h
    --- linux/include/linux/kernel.h 2003-01-14 14:58:03.000000000 +0900
    +++ linux98/include/linux/kernel.h 2003-01-14 23:11:42.000000000 +0900
    @@ -224,4 +224,10 @@
    #define __FUNCTION__ (__func__)
    #endif

    +#ifdef CONFIG_X86_PC9800
    +#define pc98 1
    +#else
    +#define pc98 0
    +#endif
    +
    #endif
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2005-03-22 13:32    [W:4.530 / U:0.336 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site