Skip to content

Commit 4496d93

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k: m68k: irq_node.handler() should return irqreturn_t m68k: section mismatch fixes: Atari SCSI m68k: section mismatch fixes: DMAsound for Atari MAINTAINERS: Replace dead link to m68k CVS repository by link to new git repository m68k: mac - Add SWIM floppy support m68k: mac - Add a new entry in mac_model to identify the floppy controller type. m68k: Add install target
2 parents 8e9d208 + 4b2873b commit 4496d93

14 files changed

Lines changed: 1483 additions & 60 deletions

File tree

‎MAINTAINERS‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2845,7 +2845,7 @@ P: Roman Zippel
28452845
M: zippel@linux-m68k.org
28462846
L: linux-m68k@lists.linux-m68k.org
28472847
W: http://www.linux-m68k.org/
2848-
W: http://linux-m68k-cvs.ubb.ca/
2848+
T: git git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git
28492849
S: Maintained
28502850

28512851
M68K ON APPLE MACINTOSH

‎arch/m68k/Makefile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,6 @@ endif
117117

118118
archclean:
119119
rm -f vmlinux.gz vmlinux.bz2
120+
121+
install:
122+
sh $(srctree)/arch/m68k/install.sh $(KERNELRELEASE) vmlinux.gz System.map "$(INSTALL_PATH)"

‎arch/m68k/include/asm/irq_mm.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include <linux/linkage.h>
55
#include <linux/hardirq.h>
6+
#include <linux/irqreturn.h>
67
#include <linux/spinlock_types.h>
78

89
/*
@@ -80,7 +81,7 @@ struct pt_regs;
8081
* interrupt source (if it supports chaining).
8182
*/
8283
typedef struct irq_node {
83-
int (*handler)(int, void *);
84+
irqreturn_t (*handler)(int, void *);
8485
void *dev_id;
8586
struct irq_node *next;
8687
unsigned long flags;

‎arch/m68k/include/asm/macintosh.h‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ struct mac_model
3434
char scc_type;
3535
char ether_type;
3636
char nubus_type;
37+
char floppy_type;
3738
};
3839

3940
#define MAC_ADB_NONE 0
@@ -71,6 +72,12 @@ struct mac_model
7172
#define MAC_NO_NUBUS 0
7273
#define MAC_NUBUS 1
7374

75+
#define MAC_FLOPPY_IWM 0
76+
#define MAC_FLOPPY_SWIM_ADDR1 1
77+
#define MAC_FLOPPY_SWIM_ADDR2 2
78+
#define MAC_FLOPPY_SWIM_IOP 3
79+
#define MAC_FLOPPY_AV 4
80+
7481
/*
7582
* Gestalt numbers
7683
*/

‎arch/m68k/install.sh‎

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
#!/bin/sh
2+
#
3+
# This file is subject to the terms and conditions of the GNU General Public
4+
# License. See the file "COPYING" in the main directory of this archive
5+
# for more details.
6+
#
7+
# Copyright (C) 1995 by Linus Torvalds
8+
#
9+
# Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin
10+
#
11+
# "make install" script for m68k architecture
12+
#
13+
# Arguments:
14+
# $1 - kernel version
15+
# $2 - kernel image file
16+
# $3 - kernel map file
17+
# $4 - default install path (blank if root directory)
18+
#
19+
20+
verify () {
21+
if [ ! -f "$1" ]; then
22+
echo "" 1>&2
23+
echo " *** Missing file: $1" 1>&2
24+
echo ' *** You need to run "make" before "make install".' 1>&2
25+
echo "" 1>&2
26+
exit 1
27+
fi
28+
}
29+
30+
# Make sure the files actually exist
31+
verify "$2"
32+
verify "$3"
33+
34+
# User may have a custom install script
35+
36+
if [ -x ~/bin/${CROSS_COMPILE}installkernel ]; then exec ~/bin/${CROSS_COMPILE}installkernel "$@"; fi
37+
if [ -x /sbin/${CROSS_COMPILE}installkernel ]; then exec /sbin/${CROSS_COMPILE}installkernel "$@"; fi
38+
39+
# Default install - same as make zlilo
40+
41+
if [ -f $4/vmlinuz ]; then
42+
mv $4/vmlinuz $4/vmlinuz.old
43+
fi
44+
45+
if [ -f $4/System.map ]; then
46+
mv $4/System.map $4/System.old
47+
fi
48+
49+
cat $2 > $4/vmlinuz
50+
cp $3 $4/System.map
51+
52+
sync

0 commit comments

Comments
 (0)