From 97ac148b40e6842749107f298825f8ff40db9367 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Wed, 9 Jun 2004 12:24:24 +0000 Subject: [PATCH] Add .chip directive --- second/MMU030_asm.S | 2 ++ second/MMU040_asm.S | 2 ++ second/Makefile | 12 ------------ second/enter_kernel030.S | 2 ++ second/enter_kernel040.S | 1 + 5 files changed, 7 insertions(+), 12 deletions(-) diff --git a/second/MMU030_asm.S b/second/MMU030_asm.S index 696482e..78220f5 100644 --- a/second/MMU030_asm.S +++ b/second/MMU030_asm.S @@ -4,6 +4,8 @@ * */ + .chip 68030 + .global MMU030_get_TC MMU030_get_TC: link.w %fp,#0 diff --git a/second/MMU040_asm.S b/second/MMU040_asm.S index f743c6c..ac0a7da 100644 --- a/second/MMU040_asm.S +++ b/second/MMU040_asm.S @@ -4,6 +4,8 @@ * */ + .chip 68040 + .global MMU040_get_TC MMU040_get_TC: link.w %fp,#0 diff --git a/second/Makefile b/second/Makefile index 74209d3..c1cfdc0 100644 --- a/second/Makefile +++ b/second/Makefile @@ -32,18 +32,6 @@ second: second.o second.o: $(OBJS) ld.script $(LD) -T ld.script -o second.o $(OBJS) -MMU030_asm.o: MMU030_asm.S - $(AS) $(ASFLAGS) -m68030 -o $@ $^ - -enter_kernel030.o: enter_kernel030.S copymem.i - $(AS) $(ASFLAGS) -m68030 -o $@ $< - -MMU040_asm.o: MMU040_asm.S - $(AS) $(ASFLAGS) -m68040 -o $@ $^ - -enter_kernel040.o: enter_kernel040.S copymem.i - $(AS) $(ASFLAGS) -m68040 -o $@ $< - .c.o: $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $^ diff --git a/second/enter_kernel030.S b/second/enter_kernel030.S index 9fb91dc..5763324 100644 --- a/second/enter_kernel030.S +++ b/second/enter_kernel030.S @@ -4,6 +4,8 @@ * */ + .chip 68030 + .include "copymem.i" .align 4 diff --git a/second/enter_kernel040.S b/second/enter_kernel040.S index 942c996..58abf89 100644 --- a/second/enter_kernel040.S +++ b/second/enter_kernel040.S @@ -3,6 +3,7 @@ * (c) 2004 Laurent Vivier * */ + .chip 68040 .include "copymem.i"