Skip to content

Commit 979ff1e

Browse files
committed
Merge tag 'm68k-for-v6.7-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k
Pull m68k updates from Geert Uytterhoeven: - misc aesthetical improvements for the floating point emulator - remove the last user of strlcpy() - use kernel's generic libgcc functions - misc fixes for W=1 builds - misc indentation fixes - misc fixes and improvements - defconfig updates * tag 'm68k-for-v6.7-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k: (72 commits) m68k: lib: Include <linux/libgcc.h> for __muldi3() m68k: fpsp040: Fix indentation by 5 spaces m68k: Fix indentation by 2 or 5 spaces in <asm/page_mm.h> m68k: kernel: Fix indentation by 7 spaces in traps.c m68k: sun3: Fix indentation by 5 or 7 spaces m68k: Fix indentation by 7 spaces in <asm/io_mm.h> m68k: defconfig: Update virt_defconfig for v6.6-rc3 m68k: defconfig: Update defconfigs for v6.6-rc1 m68k: io: Mark mmio read addresses as const m68k: Replace GPL 2.0+ README.legal boilerplate with SPDX m68k: sun3: Change led_pattern[] to unsigned char m68k: Add missing types to asm/irq.h m68k: sun3/3x: Add and use "sun3.h" m68k: sun3x: Make dvma_print() static m68k: sun3x: Make sun3x_halt() static m68k: sun3x: Do not mark dvma_map_iommu() inline m68k: sun3x: Fix signature of sun3_leds() m68k: sun3: Make sun3_platform_init() static m68k: sun3: Make print_pte() static m68k: sun3: Annotate prom_printf() with __printf() ...
2 parents 56ec8e4 + 03191fb commit 979ff1e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+634
-677
lines changed

arch/m68k/68000/entry.S

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
/*
1+
/* SPDX-License-Identifier: GPL-2.0-or-later
2+
*
23
* entry.S -- non-mmu 68000 interrupt and exception entry points
34
*
45
* Copyright (C) 1991, 1992 Linus Torvalds
56
*
6-
* This file is subject to the terms and conditions of the GNU General Public
7-
* License. See the file README.legal in the main directory of this archive
8-
* for more details.
9-
*
107
* Linux/m68k support by Hamish Macdonald
118
*/
129

arch/m68k/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ config M68K
1919
select GENERIC_CPU_DEVICES
2020
select GENERIC_IOMAP
2121
select GENERIC_IRQ_SHOW
22+
select GENERIC_LIB_ASHLDI3
23+
select GENERIC_LIB_ASHRDI3
24+
select GENERIC_LIB_LSHRDI3
2225
select HAS_IOPORT if PCI || ISA || ATARI_ROM_ISA
2326
select HAVE_ARCH_SECCOMP
2427
select HAVE_ARCH_SECCOMP_FILTER

arch/m68k/amiga/amiga.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* SPDX-License-Identifier: GPL-2.0-only */
2+
3+
/* amisound.c */
4+
void amiga_init_sound(void);
5+
void amiga_mksound(unsigned int hz, unsigned int ticks);

arch/m68k/amiga/amisound.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
#include <asm/amigahw.h>
1818

19+
#include "amiga.h"
20+
1921
static unsigned short *snd_data;
2022
static const signed char sine_data[] = {
2123
0, 39, 75, 103, 121, 127, 121, 103, 75, 39,

arch/m68k/amiga/config.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
#include <asm/io.h>
4040
#include <asm/config.h>
4141

42+
#include "amiga.h"
43+
4244
static unsigned long amiga_model;
4345

4446
unsigned long amiga_eclock;
@@ -96,9 +98,7 @@ static char amiga_model_name[13] = "Amiga ";
9698
static void amiga_sched_init(void);
9799
static void amiga_get_model(char *model);
98100
static void amiga_get_hardware_list(struct seq_file *m);
99-
extern void amiga_mksound(unsigned int count, unsigned int ticks);
100101
static void amiga_reset(void);
101-
extern void amiga_init_sound(void);
102102
static void amiga_mem_console_write(struct console *co, const char *b,
103103
unsigned int count);
104104
#ifdef CONFIG_HEARTBEAT

arch/m68k/amiga/pcmcia.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,10 @@ static unsigned char cfg_byte = GAYLE_CFG_0V|GAYLE_CFG_150NS;
2626
void pcmcia_reset(void)
2727
{
2828
unsigned long reset_start_time = jiffies;
29-
unsigned char b;
3029

3130
gayle_reset = 0x00;
3231
while (time_before(jiffies, reset_start_time + 1*HZ/100));
33-
b = gayle_reset;
32+
READ_ONCE(gayle_reset);
3433
}
3534
EXPORT_SYMBOL(pcmcia_reset);
3635

arch/m68k/apollo/apollo.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
2+
3+
/* dn_ints.c */
4+
void dn_init_IRQ(void);

arch/m68k/apollo/config.c

Lines changed: 9 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include <linux/kernel.h>
55
#include <linux/mm.h>
66
#include <linux/tty.h>
7-
#include <linux/console.h>
87
#include <linux/rtc.h>
98
#include <linux/vt_kern.h>
109
#include <linux/interrupt.h>
@@ -18,6 +17,8 @@
1817
#include <asm/machdep.h>
1918
#include <asm/config.h>
2019

20+
#include "apollo.h"
21+
2122
u_long sio01_physaddr;
2223
u_long sio23_physaddr;
2324
u_long rtc_physaddr;
@@ -28,9 +29,8 @@ u_long timer_physaddr;
2829
u_long apollo_model;
2930

3031
extern void dn_sched_init(void);
31-
extern void dn_init_IRQ(void);
3232
extern int dn_dummy_hwclk(int, struct rtc_time *);
33-
extern void dn_dummy_reset(void);
33+
static void dn_dummy_reset(void);
3434
#ifdef CONFIG_HEARTBEAT
3535
static void dn_heartbeat(int on);
3636
#endif
@@ -108,28 +108,7 @@ static void __init dn_setup_model(void)
108108

109109
}
110110

111-
int dn_serial_console_wait_key(struct console *co) {
112-
113-
while(!(sio01.srb_csrb & 1))
114-
barrier();
115-
return sio01.rhrb_thrb;
116-
}
117-
118-
void dn_serial_console_write (struct console *co, const char *str,unsigned int count)
119-
{
120-
while(count--) {
121-
if (*str == '\n') {
122-
sio01.rhrb_thrb = (unsigned char)'\r';
123-
while (!(sio01.srb_csrb & 0x4))
124-
;
125-
}
126-
sio01.rhrb_thrb = (unsigned char)*str++;
127-
while (!(sio01.srb_csrb & 0x4))
128-
;
129-
}
130-
}
131-
132-
void dn_serial_print (const char *str)
111+
static void dn_serial_print(const char *str)
133112
{
134113
while (*str) {
135114
if (*str == '\n') {
@@ -168,13 +147,13 @@ void __init config_apollo(void)
168147

169148
irqreturn_t dn_timer_int(int irq, void *dev_id)
170149
{
171-
volatile unsigned char x;
150+
unsigned char *at = (unsigned char *)apollo_timer;
172151

173152
legacy_timer_tick(1);
174153
timer_heartbeat();
175154

176-
x = *(volatile unsigned char *)(apollo_timer + 3);
177-
x = *(volatile unsigned char *)(apollo_timer + 5);
155+
READ_ONCE(*(at + 3));
156+
READ_ONCE(*(at + 5));
178157

179158
return IRQ_HANDLED;
180159
}
@@ -229,20 +208,14 @@ int dn_dummy_hwclk(int op, struct rtc_time *t) {
229208

230209
}
231210

232-
void dn_dummy_reset(void) {
233-
211+
static void dn_dummy_reset(void)
212+
{
234213
dn_serial_print("The end !\n");
235214

236215
for(;;);
237216

238217
}
239218

240-
void dn_dummy_waitbut(void) {
241-
242-
dn_serial_print("waitbut\n");
243-
244-
}
245-
246219
static void dn_get_model(char *model)
247220
{
248221
strcpy(model, "Apollo ");

arch/m68k/apollo/dn_ints.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#include <asm/traps.h>
66
#include <asm/apollohw.h>
77

8-
unsigned int apollo_irq_startup(struct irq_data *data)
8+
#include "apollo.h"
9+
10+
static unsigned int apollo_irq_startup(struct irq_data *data)
911
{
1012
unsigned int irq = data->irq;
1113

@@ -16,7 +18,7 @@ unsigned int apollo_irq_startup(struct irq_data *data)
1618
return 0;
1719
}
1820

19-
void apollo_irq_shutdown(struct irq_data *data)
21+
static void apollo_irq_shutdown(struct irq_data *data)
2022
{
2123
unsigned int irq = data->irq;
2224

@@ -26,7 +28,7 @@ void apollo_irq_shutdown(struct irq_data *data)
2628
*(volatile unsigned char *)(picb+1) |= (1 << (irq - 8));
2729
}
2830

29-
void apollo_irq_eoi(struct irq_data *data)
31+
static void apollo_irq_eoi(struct irq_data *data)
3032
{
3133
*(volatile unsigned char *)(pica) = 0x20;
3234
*(volatile unsigned char *)(picb) = 0x20;

arch/m68k/atari/ataints.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
#include <asm/entry.h>
5353
#include <asm/io.h>
5454

55+
#include "atari.h"
5556

5657
/*
5758
* Atari interrupt handling scheme:
@@ -81,8 +82,6 @@ __ALIGN_STR "\n\t"
8182
"orw #0x200,%sp@\n\t" /* set saved ipl to 2 */
8283
"rte");
8384

84-
extern void atari_microwire_cmd(int cmd);
85-
8685
static unsigned int atari_irq_startup(struct irq_data *data)
8786
{
8887
unsigned int irq = data->irq;

0 commit comments

Comments
 (0)