Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 2 Nov 2002 12:59:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 2 Nov 2002 12:59:05 -0500 Received: from gateway.cinet.co.jp ([210.166.75.129]:61523 "EHLO precia.cinet.co.jp") by vger.kernel.org with ESMTP id ; Sat, 2 Nov 2002 12:58:23 -0500 Date: Sun, 3 Nov 2002 03:04:34 +0900 From: Osamu Tomita To: Linux Kernel Mailing List Cc: Alan Cox , Linus Torvalds Subject: [RFC][Patchset 11/20] Support for PC-9800 (kernel) Message-ID: <20021103030434.U1536@precia.cinet.co.jp> References: <20021103023345.A1536@precia.cinet.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; Content-Transfer-Encoding: 7BIT In-Reply-To: =?iso-8859-1?Q?=3C20021103023345=2EA1536?= =?iso-8859-1?B?QHByZWNpYS5jaW5ldC5jby5qcD47IGZyb20gdG9taXRhQGNpbmV0LmNv?= =?iso-8859-1?B?LmpwIG9uIMb8LCAxMbfu?= 03, 2002 at 02:33:45 +0900 X-Mailer: Balsa 1.2.4 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2494 Lines: 75 This is a part 11/20 of patchset for add support NEC PC-9800 architecture, against 2.5.44. Summary: - add PC-9800 special features. - CLOCK_TICK is not constant. diffstat: init/main.c | 3 +++ kernel/dma.c | 3 +++ kernel/ksyms.c | 4 ++++ kernel/timer.c | 5 +++++ 4 files changed, 15 insertions(+) patch: diff -urN linux/init/main.c linux98/init/main.c --- linux/init/main.c Thu Oct 31 13:23:44 2002 +++ linux98/init/main.c Thu Oct 31 17:36:24 2002 @@ -100,6 +100,9 @@ char *execute_command; +/* Indicates PC-9800 architecture No:0 Yes:1 */ +int pc98 = 0; + /* Setup configured maximum number of CPUs to activate */ static unsigned int max_cpus = UINT_MAX; diff -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 #include #include #include @@ -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 Sat Oct 19 13:01:08 2002 +++ linux98/kernel/ksyms.c Sat Oct 26 16:57:37 2002 @@ -599,5 +599,9 @@ EXPORT_SYMBOL(__per_cpu_offset); #endif +/* Indicates PC-9800 architecture No:0 Yes:1 */ +extern int pc98; +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))); - 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/