Commit 4a123187 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] m68k: offsets.h generation

From: Geert Uytterhoeven <geert@linux-m68k.org>

M68k offsets.h: Move arch/m68k/kernel/m68k_defs.h to include/asm/offsets.h
and use gen-asm-offsets framework (from Andreas Schwab and Ray Knight)
parent 086a0782
......@@ -111,6 +111,14 @@ else
bzip2 -1c vmlinux >vmlinux.bz2
endif
prepare: include/asm-$(ARCH)/offsets.h
CLEAN_FILES += include/asm-$(ARCH)/offsets.h
arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
include/config/MARKER
include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
$(call filechk,gen-asm-offsets)
archclean:
rm -f vmlinux.gz vmlinux.bz2
rm -f arch/m68k/kernel/m68k_defs.h arch/m68k/kernel/m68k_defs.d
......@@ -40,7 +40,7 @@
#include <linux/linkage.h>
#include <asm/entry.h>
#include "../kernel/m68k_defs.h"
#include <asm/offsets.h>
|SKELETON idnt 2,1 | Motorola 040 Floating Point Software Package
......
......@@ -36,7 +36,7 @@
#include <linux/linkage.h>
#include <asm/entry.h>
#include "../kernel/m68k_defs.h"
#include <asm/offsets.h>
|################################
......
......@@ -16,20 +16,3 @@ obj-$(CONFIG_PCI) += bios32.o
obj-$(CONFIG_MODULES) += module.o
EXTRA_AFLAGS := -traditional
$(obj)/head.o: $(obj)/head.S $(obj)/m68k_defs.h
$(obj)/entry.o: $(obj)/entry.S $(obj)/m68k_defs.h
$(obj)/sun3-head.o: $(obj)/sun3-head.S $(obj)/m68k_defs.h
$(obj)/m68k_defs.h: $(src)/m68k_defs.c $(src)/m68k_defs.head
rm -f $(obj)/m68k_defs.d
SUNPRO_DEPENDENCIES="$(obj)/m68k_defs.d $(obj)/m68k_defs.h" \
$(CC) $(filter-out -MD,$(CFLAGS)) -S $(src)/m68k_defs.c -o \
$(obj)/m68k_defs.s
cp $(src)/m68k_defs.head $(obj)/m68k_defs.h
grep '^#define' $(obj)/m68k_defs.s >> $(obj)/m68k_defs.h
rm $(obj)/m68k_defs.s
-include $(obj)/m68k_defs.d
......@@ -17,7 +17,7 @@
#include <linux/font.h>
#define DEFINE(sym, val) \
asm volatile("\n#define " #sym " %c0" : : "i" (val))
asm volatile("\n->" #sym " %0 " #val : : "i" (val))
int main(void)
{
......
......@@ -42,7 +42,7 @@
#include <asm/traps.h>
#include <asm/unistd.h>
#include "m68k_defs.h"
#include <asm/offsets.h>
.globl system_call, buserr, trap
.globl resume, ret_from_exception
......
......@@ -262,7 +262,7 @@
#include <asm/entry.h>
#include <asm/pgtable.h>
#include <asm/page.h>
#include "m68k_defs.h"
#include <asm/offsets.h>
#ifdef CONFIG_MAC
......
/*
* WARNING! This file is automatically generated - DO NOT EDIT!
*/
#define TS_MAGICKEY 0x5a5a5a5a
......@@ -39,7 +39,7 @@
#define _FP_EMU_H
#ifdef __ASSEMBLY__
#include "../kernel/m68k_defs.h"
#include <asm/offsets.h>
#endif
#include <asm/math-emu.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment