add support for PC-9800 architecture (kernel)
PATCH 11/23 add support for PC-9800 architecture (kernel)
This is a part 11/23 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:
init/main.c +3 -0
@@ -99,6 +99,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 ;
kernel/dma.c +3 -0
@@ -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 };
kernel/ksyms.c +4 -0
@@ -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);
kernel/timer.c +5 -0
@@ -376,8 +376,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)));