Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263777AbUDFLHA (ORCPT ); Tue, 6 Apr 2004 07:07:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263770AbUDFLF4 (ORCPT ); Tue, 6 Apr 2004 07:05:56 -0400 Received: from p062096.ppp.asahi-net.or.jp ([221.113.62.96]:18668 "EHLO mitou.ysato.dip.jp") by vger.kernel.org with ESMTP id S263763AbUDFLAy (ORCPT ); Tue, 6 Apr 2004 07:00:54 -0400 Date: Tue, 06 Apr 2004 20:00:14 +0900 Message-ID: From: Yoshinori Sato To: Linus Torvalds Cc: linux kernel Mailing List Subject: [PATCH] H8/300 support update (2/3) - entry.S cleanup User-Agent: Wanderlust/2.11.23 (Wonderwall) SEMI/1.14.6 (Maruoka) LIMIT/1.14.7 (Fujiidera) APEL/10.6 Emacs/21.3 (i386-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3851 Lines: 128 - cleanup define -- Yoshinori Sato diff -Nru -X .exclude-diff linux-2.6.5/arch/h8300/kernel/asm-offsets.c linux-2.6.5-h8300/arch/h8300/kernel/asm-offsets.c --- linux-2.6.5/arch/h8300/kernel/asm-offsets.c 2004-01-09 15:59:06.000000000 +0900 +++ linux-2.6.5-h8300/arch/h8300/kernel/asm-offsets.c 2004-04-06 17:00:23.000000000 +0900 @@ -15,6 +15,7 @@ #include #include #include +#include #define DEFINE(sym, val) \ asm volatile("\n->" #sym " %0 " #val : : "i" (val)) @@ -41,6 +42,22 @@ DEFINE(THREAD_USP, offsetof(struct thread_struct, usp)); DEFINE(THREAD_CCR, offsetof(struct thread_struct, ccr)); + /* offsets into the pt_regs struct */ + DEFINE(LER0, offsetof(struct pt_regs, er0) - sizeof(long)); + DEFINE(LER1, offsetof(struct pt_regs, er1) - sizeof(long)); + DEFINE(LER2, offsetof(struct pt_regs, er2) - sizeof(long)); + DEFINE(LER3, offsetof(struct pt_regs, er3) - sizeof(long)); + DEFINE(LER4, offsetof(struct pt_regs, er4) - sizeof(long)); + DEFINE(LER5, offsetof(struct pt_regs, er5) - sizeof(long)); + DEFINE(LER6, offsetof(struct pt_regs, er6) - sizeof(long)); + DEFINE(LORIG, offsetof(struct pt_regs, orig_er0) - sizeof(long)); + DEFINE(LCCR, offsetof(struct pt_regs, ccr) - sizeof(long)); + DEFINE(LVEC, offsetof(struct pt_regs, vector) - sizeof(long)); +#if defined(__H8300S__) + DEFINE(LEXR, offsetof(struct pt_regs, exr) - sizeof(long)); +#endif + DEFINE(LRET, offsetof(struct pt_regs, pc) - sizeof(long)); + DEFINE(PT_PTRACED, PT_PTRACED); DEFINE(PT_DTRACE, PT_DTRACE); diff -Nru -X .exclude-diff linux-2.6.5/arch/h8300/platform/h8300h/entry.S linux-2.6.5-h8300/arch/h8300/platform/h8300h/entry.S --- linux-2.6.5/arch/h8300/platform/h8300h/entry.S 2004-04-06 17:10:56.000000000 +0900 +++ linux-2.6.5-h8300/arch/h8300/platform/h8300h/entry.S 2004-04-06 17:00:23.000000000 +0900 @@ -21,26 +21,7 @@ #include #include #include - -ENOSYS = 38 - -LSIGTRAP = 5 - -SOFTIRQ_PENDING = 0 - -/* the following macro is used when enabling interrupts */ - -LER4 = 0 -LER5 = 4 -LER6 = 8 -LER3 = 12 -LER2 = 16 -LER1 = 20 -LORIG = 24 -LCCR = 28 -LER0 = 30 -LVEC = 34 -LRET = 38 +#include .h8300h @@ -188,7 +169,7 @@ mov.l sp,er1 subs #4,er1 /* adjust ret_pc */ jsr @SYMBOL_NAME(process_int) - mov.l @SYMBOL_NAME(irq_stat)+SOFTIRQ_PENDING,er0 + mov.l @SYMBOL_NAME(irq_stat)+CPUSTAT_SOFTIRQ_PENDING,er0 beq 1f jsr @SYMBOL_NAME(do_softirq) 1: diff -Nru -X .exclude-diff linux-2.6.5/arch/h8300/platform/h8s/entry.S linux-2.6.5-h8300/arch/h8300/platform/h8s/entry.S --- linux-2.6.5/arch/h8300/platform/h8s/entry.S 2004-04-06 17:10:56.000000000 +0900 +++ linux-2.6.5-h8300/arch/h8300/platform/h8s/entry.S 2004-04-06 19:44:57.000000000 +0900 @@ -22,28 +22,8 @@ #include #include #include - -ENOSYS = 38 - -LSIGTRAP = 5 - -SOFTIRQ_PENDING = 0 - -/* the following macro is used when enabling interrupts */ - -LER4 = 0 -LER5 = 4 -LER6 = 8 -LER3 = 12 -LER2 = 16 -LER1 = 20 -LORIG = 24 -LCCR = 28 -LER0 = 30 -LVEC = 34 -LEXR = 38 -LRET = 40 - +#include + .h8300s /* CPU context save/restore macros. */ @@ -186,7 +166,7 @@ mov.l sp,er1 subs #4,er1 /* adjust ret_pc */ jsr @SYMBOL_NAME(process_int) - mov.l @SYMBOL_NAME(irq_stat)+SOFTIRQ_PENDING,er0 + mov.l @SYMBOL_NAME(irq_stat)+CPU_SOFTIRQ_PENDING,er0 beq 1f jsr @SYMBOL_NAME(do_softirq) 1: - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/