summaryrefslogtreecommitdiffstats
path: root/arch/m68k
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-04-05 11:23:36 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-04-05 11:23:36 +0000
commit4318fbda2a7ee51caafdc4eb1f8028a3f0605142 (patch)
treecddb50a81d7d1a628cc400519162080c6d87868e /arch/m68k
parent36ea5120664550fae6d31f1c6f695e4f8975cb06 (diff)
o Merge with Linux 2.1.91.
o First round of bugfixes for the SC/MC CPUs. o FPU context switch fixes. o Lazy context switches. o Faster syscalls. o Removed dead code. o Shitloads of other things I forgot ...
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/amiga/amiga_ksyms.c7
-rw-r--r--arch/m68k/amiga/zorro.c3
-rw-r--r--arch/m68k/atari/atakeyb.c22
-rw-r--r--arch/m68k/atari/atari_ksyms.c6
-rw-r--r--arch/m68k/atari/time.c4
-rw-r--r--arch/m68k/config.in10
-rw-r--r--arch/m68k/kernel/m68k_defs.head5
-rw-r--r--arch/m68k/kernel/m68k_ksyms.c3
-rw-r--r--arch/m68k/kernel/ptrace.c6
-rw-r--r--arch/m68k/mac/ksyms.c6
-rw-r--r--arch/m68k/mac/mackeyb.c43
11 files changed, 53 insertions, 62 deletions
diff --git a/arch/m68k/amiga/amiga_ksyms.c b/arch/m68k/amiga/amiga_ksyms.c
index 0eae9cfdb..9206b8e92 100644
--- a/arch/m68k/amiga/amiga_ksyms.c
+++ b/arch/m68k/amiga/amiga_ksyms.c
@@ -1,8 +1,8 @@
+#include <linux/config.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/zorro.h>
#include <asm/amigahw.h>
-#include <linux/pci.h>
extern volatile u_short amiga_audio_min_period;
extern u_short amiga_audio_period;
@@ -17,6 +17,7 @@ EXPORT_SYMBOL(amiga_colorclock);
EXPORT_SYMBOL(amiga_chip_alloc);
EXPORT_SYMBOL(amiga_chip_free);
EXPORT_SYMBOL(amiga_chip_avail);
+EXPORT_SYMBOL(amiga_chip_size);
EXPORT_SYMBOL(amiga_audio_period);
EXPORT_SYMBOL(amiga_audio_min_period);
@@ -25,7 +26,3 @@ EXPORT_SYMBOL(zorro_get_board);
EXPORT_SYMBOL(zorro_config_board);
EXPORT_SYMBOL(zorro_unconfig_board);
EXPORT_SYMBOL(zorro_unused_z2ram);
-
-#if CONFIG_PCI
-EXPORT_SYMBOL(pci_devices);
-#endif
diff --git a/arch/m68k/amiga/zorro.c b/arch/m68k/amiga/zorro.c
index 4f007daf3..7f2cd8c47 100644
--- a/arch/m68k/amiga/zorro.c
+++ b/arch/m68k/amiga/zorro.c
@@ -651,7 +651,8 @@ BEGIN_PROD(APOLLO_3)
END
BEGIN_PROD(PETSOFF_LP)
- PROD("Delfina", DSP, PETSOFF_LP_DELFINA)
+ PROD("Delfina", AUDIO, PETSOFF_LP_DELFINA)
+ PROD("Delfina Lite", AUDIO, PETSOFF_LP_DELFINA_LITE)
END
BEGIN_PROD(UWE_GERLACH)
diff --git a/arch/m68k/atari/atakeyb.c b/arch/m68k/atari/atakeyb.c
index bf792da5c..8c512a714 100644
--- a/arch/m68k/atari/atakeyb.c
+++ b/arch/m68k/atari/atakeyb.c
@@ -117,7 +117,7 @@ static u_short ataplain_map[NR_KEYS] __initdata = {
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200
};
-static u_short atashift_map[NR_KEYS] = {
+static u_short atashift_map[NR_KEYS] __initdata = {
0xf200, 0xf01b, 0xf021, 0xf040, 0xf023, 0xf024, 0xf025, 0xf05e,
0xf026, 0xf02a, 0xf028, 0xf029, 0xf05f, 0xf02b, 0xf008, 0xf009,
0xfb51, 0xfb57, 0xfb45, 0xfb52, 0xfb54, 0xfb59, 0xfb55, 0xfb49,
@@ -136,7 +136,7 @@ static u_short atashift_map[NR_KEYS] = {
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200
};
-static u_short atactrl_map[NR_KEYS] = {
+static u_short atactrl_map[NR_KEYS] __initdata = {
0xf200, 0xf200, 0xf200, 0xf000, 0xf01b, 0xf01c, 0xf01d, 0xf01e,
0xf01f, 0xf07f, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf200,
0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
@@ -155,7 +155,7 @@ static u_short atactrl_map[NR_KEYS] = {
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200
};
-static u_short atashift_ctrl_map[NR_KEYS] = {
+static u_short atashift_ctrl_map[NR_KEYS] __initdata = {
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
0xf200, 0xf200, 0xf200, 0xf200, 0xf01f, 0xf200, 0xf008, 0xf200,
0xf011, 0xf017, 0xf005, 0xf012, 0xf014, 0xf019, 0xf015, 0xf009,
@@ -174,7 +174,7 @@ static u_short atashift_ctrl_map[NR_KEYS] = {
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200
};
-static u_short ataalt_map[NR_KEYS] = {
+static u_short ataalt_map[NR_KEYS] __initdata = {
0xf200, 0xf81b, 0xf831, 0xf832, 0xf833, 0xf834, 0xf835, 0xf836,
0xf837, 0xf838, 0xf839, 0xf830, 0xf82d, 0xf83d, 0xf808, 0xf809,
0xf871, 0xf877, 0xf865, 0xf872, 0xf874, 0xf879, 0xf875, 0xf869,
@@ -212,7 +212,7 @@ static u_short atashift_alt_map[NR_KEYS] = {
0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200
};
-static u_short atactrl_alt_map[NR_KEYS] = {
+static u_short atactrl_alt_map[NR_KEYS] __initdata = {
0xf200, 0xf200, 0xf200, 0xf800, 0xf81b, 0xf81c, 0xf81d, 0xf81e,
0xf81f, 0xf87f, 0xf200, 0xf200, 0xf81f, 0xf200, 0xf808, 0xf200,
0xf811, 0xf817, 0xf805, 0xf812, 0xf814, 0xf819, 0xf815, 0xf809,
@@ -767,14 +767,14 @@ void atari_kbd_leds (unsigned int leds)
__initfunc(int atari_keyb_init(void))
{
/* setup key map */
- memcpy (plain_map, ataplain_map, sizeof(plain_map));
- key_maps[1] = atashift_map;
+ memcpy(plain_map, ataplain_map, sizeof(plain_map));
+ memcpy(shift_map, atashift_map, sizeof(shift_map));
key_maps[2] = 0; /* ataaltgr_map */
- key_maps[4] = atactrl_map;
- key_maps[5] = atashift_ctrl_map;
- key_maps[8] = ataalt_map;
+ memcpy(ctrl_map, atactrl_map, sizeof(ctrl_map));
+ memcpy(shift_ctrl_map, atashift_ctrl_map, sizeof(shift_ctrl_map));
+ memcpy(alt_map, ataalt_map, sizeof(alt_map));
key_maps[9] = atashift_alt_map;
- key_maps[12] = atactrl_alt_map;
+ memcpy(ctrl_alt_map, atactrl_alt_map, sizeof(ctrl_alt_map));
key_maps[13] = atashift_ctrl_alt_map;
keymap_count = 8;
diff --git a/arch/m68k/atari/atari_ksyms.c b/arch/m68k/atari/atari_ksyms.c
index 86e34fb7f..bd22bf672 100644
--- a/arch/m68k/atari/atari_ksyms.c
+++ b/arch/m68k/atari/atari_ksyms.c
@@ -1,5 +1,5 @@
+#include <linux/config.h>
#include <linux/module.h>
-#include <linux/pci.h>
#include <asm/ptrace.h>
#include <asm/traps.h>
@@ -42,7 +42,3 @@ EXPORT_SYMBOL(ikbd_mouse_rel_pos);
EXPORT_SYMBOL(ikbd_mouse_disable);
EXPORT_SYMBOL(atari_microwire_cmd);
-
-#if CONFIG_PCI
-EXPORT_SYMBOL(pci_devices);
-#endif
diff --git a/arch/m68k/atari/time.c b/arch/m68k/atari/time.c
index 1e81eb18e..8a3921c8d 100644
--- a/arch/m68k/atari/time.c
+++ b/arch/m68k/atari/time.c
@@ -83,14 +83,14 @@ static void mste_write(struct MSTE_RTC *val)
#define RTC_READ(reg) \
({ unsigned char __val; \
- outb(reg,&tt_rtc.regsel); \
+ writeb(reg,&tt_rtc.regsel); \
__val = tt_rtc.data; \
__val; \
})
#define RTC_WRITE(reg,val) \
do { \
- outb(reg,&tt_rtc.regsel); \
+ writeb(reg,&tt_rtc.regsel); \
tt_rtc.data = (val); \
} while(0)
diff --git a/arch/m68k/config.in b/arch/m68k/config.in
index 4b90b6b02..e6c984bcb 100644
--- a/arch/m68k/config.in
+++ b/arch/m68k/config.in
@@ -37,6 +37,10 @@ if [ "$CONFIG_VME" = "y" ]; then
# bool 'BVME4000 and BVME6000 support' CONFIG_BVME6000
fi
+if [ "$CONFIG_PCI" = "y" ]; then
+ bool 'Backward-compatible /proc/pci' CONFIG_PCI_OLD_PROC
+fi
+
comment 'Processor type'
bool '68020 support' CONFIG_M68020
bool '68030 support' CONFIG_M68030
@@ -61,6 +65,7 @@ comment 'General setup'
bool 'Networking support' CONFIG_NET
bool 'System V IPC' CONFIG_SYSVIPC
+bool 'BSD Process Accounting' CONFIG_BSD_PROCESS_ACCT
bool 'Sysctl support' CONFIG_SYSCTL
tristate 'Kernel support for a.out binaries' CONFIG_BINFMT_AOUT
tristate 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
@@ -138,6 +143,9 @@ if [ "$CONFIG_BLK_DEV_MD" = "y" ]; then
tristate ' Linear (append) mode' CONFIG_MD_LINEAR
tristate ' RAID-0 (striping) mode' CONFIG_MD_STRIPED
fi
+if [ "$CONFIG_MD_LINEAR" = "y" -o "$CONFIG_MD_STRIPED" = "y" ]; then
+ bool ' Boot support (linear, striped)' CONFIG_MD_BOOT
+fi
tristate 'RAM disk support' CONFIG_BLK_DEV_RAM
if [ "$CONFIG_BLK_DEV_RAM" = "y" ]; then
bool ' Initial RAM disk (initrd) support' CONFIG_BLK_DEV_INITRD
@@ -188,7 +196,7 @@ if [ "$CONFIG_AMIGA" = "y" ]; then
bool 'A4000T SCSI support' CONFIG_A4000T_SCSI
bool 'A4091 SCSI support' CONFIG_A4091_SCSI
bool 'WarpEngine SCSI support' CONFIG_WARPENGINE_SCSI
- bool 'Cyberstorm Mk III SCSI support' CONFIG_CYBERSTORMIII_SCSI
+# bool 'Cyberstorm Mk III SCSI support' CONFIG_CYBERSTORMIII_SCSI
# bool 'GVP Turbo 040/060 SCSI support' CONFIG_GVP_TURBO_SCSI
fi
fi
diff --git a/arch/m68k/kernel/m68k_defs.head b/arch/m68k/kernel/m68k_defs.head
new file mode 100644
index 000000000..437028bc6
--- /dev/null
+++ b/arch/m68k/kernel/m68k_defs.head
@@ -0,0 +1,5 @@
+/*
+ * WARNING! This file is automatically generated - DO NOT EDIT!
+ */
+
+#define TS_MAGICKEY 0x5a5a5a5a
diff --git a/arch/m68k/kernel/m68k_ksyms.c b/arch/m68k/kernel/m68k_ksyms.c
index 3e6721d69..025e11c0f 100644
--- a/arch/m68k/kernel/m68k_ksyms.c
+++ b/arch/m68k/kernel/m68k_ksyms.c
@@ -1,3 +1,4 @@
+#include <linux/config.h>
#include <linux/module.h>
#include <linux/linkage.h>
#include <linux/sched.h>
@@ -60,6 +61,6 @@ EXPORT_SYMBOL_NOVERS(__down_failed);
EXPORT_SYMBOL_NOVERS(__down_failed_interruptible);
EXPORT_SYMBOL_NOVERS(__up_wakeup);
-#if CONFIG_PCI
+#ifdef CONFIG_PCI
EXPORT_SYMBOL(pci_devices);
#endif
diff --git a/arch/m68k/kernel/ptrace.c b/arch/m68k/kernel/ptrace.c
index fade7ffa6..090f060ad 100644
--- a/arch/m68k/kernel/ptrace.c
+++ b/arch/m68k/kernel/ptrace.c
@@ -439,7 +439,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
long tmp;
ret = -EIO;
- if ((unsigned long) data >= _NSIG)
+ if ((unsigned long) data > _NSIG)
goto out;
if (request == PTRACE_SYSCALL)
child->flags |= PF_TRACESYS;
@@ -477,7 +477,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
long tmp;
ret = -EIO;
- if ((unsigned long) data >= _NSIG)
+ if ((unsigned long) data > _NSIG)
goto out;
child->flags &= ~PF_TRACESYS;
tmp = get_reg(child, PT_SR) | (TRACE_BITS << 16);
@@ -494,7 +494,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
long tmp;
ret = -EIO;
- if ((unsigned long) data >= _NSIG)
+ if ((unsigned long) data > _NSIG)
goto out;
child->flags &= ~(PF_PTRACED|PF_TRACESYS);
wake_up_process(child);
diff --git a/arch/m68k/mac/ksyms.c b/arch/m68k/mac/ksyms.c
index 573e6f78e..c1cc4fcd0 100644
--- a/arch/m68k/mac/ksyms.c
+++ b/arch/m68k/mac/ksyms.c
@@ -1,12 +1,8 @@
+#include <linux/config.h>
#include <linux/module.h>
-#include <linux/pci.h>
#include <asm/ptrace.h>
#include <asm/traps.h>
/* Hook for mouse driver */
extern void (*mac_mouse_interrupt_hook) (char *);
EXPORT_SYMBOL(mac_mouse_interrupt_hook);
-
-#if CONFIG_PCI
-EXPORT_SYMBOL(pci_devices);
-#endif
diff --git a/arch/m68k/mac/mackeyb.c b/arch/m68k/mac/mackeyb.c
index fe3a860c8..f338253f3 100644
--- a/arch/m68k/mac/mackeyb.c
+++ b/arch/m68k/mac/mackeyb.c
@@ -16,6 +16,7 @@
#include <linux/tty.h>
#include <linux/console.h>
#include <linux/interrupt.h>
+#include <linux/init.h>
/* keyb */
#include <linux/keyboard.h>
#include <linux/random.h>
@@ -39,7 +40,6 @@
#define MOUSE_DATAREG 0 /* reg# for movement/button codes from mouse */
/* end keyboard_input stuff */
-#include <asm/keyboard.h>
#include <linux/kbd_kern.h>
#include <linux/kbd_ll.h>
@@ -81,7 +81,7 @@ static unsigned char dont_repeat[128] = {
/*
* Mac private key maps
*/
-u_short mac_plain_map[NR_KEYS] = {
+u_short mac_plain_map[NR_KEYS] __initdata = {
0xfb61, 0xfb73, 0xfb64, 0xfb66, 0xfb68, 0xfb67, 0xfb7a, 0xfb78,
0xfb63, 0xfb76, 0xf200, 0xfb62, 0xfb71, 0xfb77, 0xfb65, 0xfb72,
0xfb79, 0xfb74, 0xf031, 0xf032, 0xf033, 0xf034, 0xf036, 0xf035,
@@ -100,7 +100,7 @@ u_short mac_plain_map[NR_KEYS] = {
0xf101, 0xf119, 0xf100, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
};
-u_short mac_shift_map[NR_KEYS] = {
+u_short mac_shift_map[NR_KEYS] __initdata = {
0xfb41, 0xfb53, 0xfb44, 0xfb46, 0xfb48, 0xfb47, 0xfb5a, 0xfb58,
0xfb43, 0xfb56, 0xf200, 0xfb42, 0xfb51, 0xfb57, 0xfb45, 0xfb52,
0xfb59, 0xfb54, 0xf021, 0xf040, 0xf023, 0xf024, 0xf05e, 0xf025,
@@ -119,7 +119,7 @@ u_short mac_shift_map[NR_KEYS] = {
0xf10b, 0xf20a, 0xf10a, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
};
-u_short mac_altgr_map[NR_KEYS] = {
+u_short mac_altgr_map[NR_KEYS] __initdata = {
0xf914, 0xfb73, 0xf917, 0xf919, 0xfb68, 0xfb67, 0xfb7a, 0xfb78,
0xf916, 0xfb76, 0xf200, 0xf915, 0xfb71, 0xfb77, 0xf918, 0xfb72,
0xfb79, 0xfb74, 0xf200, 0xf040, 0xf200, 0xf024, 0xf200, 0xf200,
@@ -138,7 +138,7 @@ u_short mac_altgr_map[NR_KEYS] = {
0xf50d, 0xf119, 0xf50c, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
};
-u_short mac_ctrl_map[NR_KEYS] = {
+u_short mac_ctrl_map[NR_KEYS] __initdata = {
0xf001, 0xf013, 0xf004, 0xf006, 0xf008, 0xf007, 0xf01a, 0xf018,
0xf003, 0xf016, 0xf200, 0xf002, 0xf011, 0xf017, 0xf005, 0xf012,
0xf019, 0xf014, 0xf200, 0xf000, 0xf01b, 0xf01c, 0xf01e, 0xf01d,
@@ -157,7 +157,7 @@ u_short mac_ctrl_map[NR_KEYS] = {
0xf101, 0xf119, 0xf100, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
};
-u_short mac_shift_ctrl_map[NR_KEYS] = {
+u_short mac_shift_ctrl_map[NR_KEYS] __initdata = {
0xf001, 0xf013, 0xf004, 0xf006, 0xf008, 0xf007, 0xf01a, 0xf018,
0xf003, 0xf016, 0xf200, 0xf002, 0xf011, 0xf017, 0xf005, 0xf012,
0xf019, 0xf014, 0xf200, 0xf000, 0xf200, 0xf200, 0xf200, 0xf200,
@@ -176,7 +176,7 @@ u_short mac_shift_ctrl_map[NR_KEYS] = {
0xf200, 0xf119, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf20c,
};
-u_short mac_alt_map[NR_KEYS] = {
+u_short mac_alt_map[NR_KEYS] __initdata = {
0xf861, 0xf873, 0xf864, 0xf866, 0xf868, 0xf867, 0xf87a, 0xf878,
0xf863, 0xf876, 0xf200, 0xf862, 0xf871, 0xf877, 0xf865, 0xf872,
0xf879, 0xf874, 0xf831, 0xf832, 0xf833, 0xf834, 0xf836, 0xf835,
@@ -195,7 +195,7 @@ u_short mac_alt_map[NR_KEYS] = {
0xf501, 0xf119, 0xf500, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
};
-u_short mac_ctrl_alt_map[NR_KEYS] = {
+u_short mac_ctrl_alt_map[NR_KEYS] __initdata = {
0xf801, 0xf813, 0xf804, 0xf806, 0xf808, 0xf807, 0xf81a, 0xf818,
0xf803, 0xf816, 0xf200, 0xf802, 0xf811, 0xf817, 0xf805, 0xf812,
0xf819, 0xf814, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200, 0xf200,
@@ -216,15 +216,6 @@ u_short mac_ctrl_alt_map[NR_KEYS] = {
extern unsigned int keymap_count;
-#if 0
-ushort *mac_key_maps[MAX_NR_KEYMAPS] = {
- mac_plain_map, mac_shift_map, mac_altgr_map, 0,
- mac_ctrl_map, mac_shift_ctrl_map, 0, 0,
- mac_alt_map, 0, 0, 0,
- mac_ctrl_alt_map, 0
-};
-#endif
-
/*
* Misc. defines for testing
*/
@@ -603,23 +594,19 @@ int mac_kbdrate(struct kbd_repeat *k)
return 0;
}
-int mac_keyb_init(void)
+__initfunc(int mac_keyb_init(void))
{
static struct adb_request autopoll_req, confcod_req, mouse_req, readkey_req;
volatile int ct;
/* setup key map */
- key_maps[0] = mac_plain_map;
- key_maps[1] = mac_shift_map;
- key_maps[2] = mac_altgr_map;
- key_maps[4] = mac_ctrl_map;
- key_maps[5] = mac_shift_ctrl_map;
- key_maps[8] = mac_alt_map;
- /* key_maps[9] = atashift_alt_map; */
- key_maps[12] = mac_ctrl_alt_map;
- /* key_maps[13] = atashift_ctrl_alt_map; */
memcpy (plain_map, mac_plain_map, sizeof(plain_map));
- keymap_count = 7;
+ memcpy(shift_map, mac_shift_map, sizeof(shift_map));
+ memcpy(altgr_map, mac_altgr_map, sizeof(altgr_map));
+ memcpy(ctrl_map, mac_ctrl_map, sizeof(ctrl_map));
+ memcpy(shift_ctrl_map, mac_shift_ctrl_map, sizeof(shift_ctrl_map));
+ memcpy(alt_map, mac_alt_map, sizeof(alt_map));
+ memcpy(ctrl_alt_map, mac_ctrl_alt_map, sizeof(ctrl_alt_map));
/* initialize mouse interrupt hook */
mac_mouse_interrupt_hook = NULL;