From: Yoshinori Sato <ysato@users.sourceforge.jp>
To: Linus Torvalds <torvalds@osdl.org>
Cc: linux kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [PATCH] H8/300 support update
Date: Fri, 17 Oct 2003 01:42:59 +0900 [thread overview]
Message-ID: <m2ekxd3zho.wl%ysato@users.sourceforge.jp> (raw)
[-- Attachment #1: Type: text/plain, Size: 104 bytes --]
- document update
- fix semaphoe probrem
- fix config
--
Yoshinori Sato
<ysato@users.sourceforge.jp>
[-- Attachment #2: linux-2.6.0-test7-h8300.diff --]
[-- Type: application/octet-stream, Size: 4812 bytes --]
diff -Nru linux-2.6.0-test7/arch/h8300/Kconfig linux-2.6.0-test7-h8300/arch/h8300/Kconfig
--- linux-2.6.0-test7/arch/h8300/Kconfig 2003-10-17 00:07:36.000000000 +0900
+++ linux-2.6.0-test7-h8300/arch/h8300/Kconfig 2003-10-17 00:45:34.000000000 +0900
@@ -341,8 +341,8 @@
endmenu
-#source drivers/misc/Config.in
source "drivers/media/Kconfig"
+source "sound/Kconfig"
source "fs/Kconfig"
diff -Nru linux-2.6.0-test7/arch/h8300/README linux-2.6.0-test7-h8300/arch/h8300/README
--- linux-2.6.0-test7/arch/h8300/README 2003-10-17 00:07:45.000000000 +0900
+++ linux-2.6.0-test7-h8300/arch/h8300/README 2003-10-17 01:04:54.000000000 +0900
@@ -1,9 +1,8 @@
-uClinux-2.4 for H8/300 README
+linux-2.6 for H8/300 README
Yoshinori Sato <ysato@users.sourceforge.jp>
* Supported CPU
-H8/300H
-H8S is planning.
+H8/300H and H8S
* Supported Target
1.simulator of GDB
@@ -15,8 +14,11 @@
Akizuki Denshi Tsusho Ltd. <http://www.akizuki.ne.jp> (Japanese Only)
3.H8MAX
- Under development
- see http://www.strawberry-linux.com (Japanese Only)
+ see http://ip-sol.jp/h8max/ (Japanese Only)
+
+4.EDOSK2674
+ see http://www.eu.renesas.com/products/mpumcu/tool/edk/support/edosk2674.html
+ http://www.azpower.com/H8-uClinux/
* Toolchain Version
gcc-3.1 or higher and patch
@@ -26,10 +28,10 @@
The environment that can compile a h8300-elf binary is necessary.
* Userland Develop environment
-Tempolary used h8300-hms(h8300-coff) Toolchain.
-I prepare toolchain corresponding to h8300-elf.
+used h8300-elf toolchains.
+see http://www.uclinux.org/pub/uClinux/ports/h8/
* A few words of thanks
-Porting to H8/300H is support of Information-technology Promotion Agency, Japan.
+Porting to H8/300 serieses is support of Information-technology Promotion Agency, Japan.
I thank support.
and All developer/user.
diff -Nru linux-2.6.0-test7/arch/h8300/lib/romfs.S linux-2.6.0-test7-h8300/arch/h8300/lib/romfs.S
--- linux-2.6.0-test7/arch/h8300/lib/romfs.S 2003-08-23 08:54:21.000000000 +0900
+++ linux-2.6.0-test7-h8300/arch/h8300/lib/romfs.S 2003-08-27 01:53:26.000000000 +0900
@@ -1,6 +1,7 @@
/* romfs move to __ebss */
#include <asm/linkage.h>
+#include <linux/config.h>
#if defined(__H8300H__)
.h8300h
@@ -9,6 +10,8 @@
.h8300s
#endif
+#define BLKOFFSET 512
+
.text
.globl __move_romfs
_romfs_sig_len = 8
@@ -31,6 +34,9 @@
add.l er0,er1 /* romfs image end */
mov.l #__ebss,er2
add.l er0,er2 /* distination address */
+#if defined(CONFIG_INTELFLASH)
+ add.l #BLKOFFSET,er2
+#endif
adds #2,er0
adds #1,er0
shlr er0
diff -Nru linux-2.6.0-test7/arch/h8300/platform/h8s/ints.c linux-2.6.0-test7-h8300/arch/h8300/platform/h8s/ints.c
--- linux-2.6.0-test7/arch/h8300/platform/h8s/ints.c 2003-10-17 00:07:45.000000000 +0900
+++ linux-2.6.0-test7-h8300/arch/h8300/platform/h8s/ints.c 2003-10-17 01:15:56.000000000 +0900
@@ -1,5 +1,5 @@
/*
- * linux/arch/h8300/platform/h8sh/ints.c
+ * linux/arch/h8300/platform/h8s/ints.c
*
* Yoshinori Sato <ysato@users.sourceforge.jp>
*
@@ -20,7 +20,6 @@
#include <linux/kernel_stat.h>
#include <linux/seq_file.h>
#include <linux/init.h>
-#include <linux/slab.h>
#include <linux/bootmem.h>
#include <linux/random.h>
@@ -75,7 +74,7 @@
{H8300_GPIO_P2,H8300_GPIO_B6},{H8300_GPIO_P2,H8300_GPIO_B7},
};
-static int use_kmalloc;
+static short use_kmalloc = 0;
extern unsigned long *interrupt_redirect_table;
diff -Nru linux-2.6.0-test7/include/asm-h8300/semaphore.h linux-2.6.0-test7-h8300/include/asm-h8300/semaphore.h
--- linux-2.6.0-test7/include/asm-h8300/semaphore.h 2003-10-17 00:07:29.000000000 +0900
+++ linux-2.6.0-test7-h8300/include/asm-h8300/semaphore.h 2003-10-16 23:45:08.000000000 +0900
@@ -101,13 +101,14 @@
"mov.l er1,%0\n\t"
"bpl 1f\n\t"
"ldc r3l,ccr\n\t"
+ "mov.l %1,er0\n\t"
"jsr @___down\n\t"
"bra 2f\n"
"1:\n\t"
"ldc r3l,ccr\n"
"2:"
: "+m"(*count)
- :
+ : "g"(sem)
: "cc", "er1", "er2", "er3");
}
@@ -129,6 +130,7 @@
"mov.l er2,%1\n\t"
"bpl 1f\n\t"
"ldc r1l,ccr\n\t"
+ "mov.l %2,er0\n\t"
"jsr @___down_interruptible\n\t"
"bra 2f\n"
"1:\n\t"
@@ -136,7 +138,7 @@
"sub.l %0,%0\n\t"
"2:\n\t"
: "=r" (count),"+m" (*count)
- :
+ : "g"(sem)
: "cc", "er1", "er2", "er3");
return (int)count;
}
@@ -161,6 +163,7 @@
"jmp @3f\n\t"
LOCK_SECTION_START(".align 2\n\t")
"3:\n\t"
+ "mov.l %2,er0\n\t"
"jsr @___down_trylock\n\t"
"jmp @2f\n\t"
LOCK_SECTION_END
@@ -169,7 +172,7 @@
"sub.l %1,%1\n"
"2:"
: "+m" (*count),"=r"(count)
- :
+ : "g"(sem)
: "cc", "er1","er2", "er3");
return (int)count;
}
@@ -199,10 +202,11 @@
"sub.l er2,er2\n\t"
"cmp.l er2,er1\n\t"
"bgt 1f\n\t"
+ "mov.l %1,er0\n\t"
"jsr @___up\n"
"1:"
: "+m"(*count)
- :
+ : "g"(sem)
: "cc", "er1", "er2", "er3");
}
next reply other threads:[~2003-10-16 16:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-16 16:42 Yoshinori Sato [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-10-19 15:53 [PATCH] H8/300 support update Yoshinori Sato
2003-10-26 14:27 [PATCH] h8/300 " Yoshinori Sato
2003-10-26 17:23 ` Sam Ravnborg
2004-04-08 15:11 [PATCH] H8/300 " Yoshinori Sato
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2ekxd3zho.wl%ysato@users.sourceforge.jp \
--to=ysato@users.sourceforge.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.