From: Kyungmin Park <kmpark@infradead.org>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] memcpy32 support at ARM
Date: Fri, 7 Sep 2007 09:55:51 +0900 [thread overview]
Message-ID: <20070907005551.GA19707@party> (raw)
[PATCH] memcpy32 support at ARM
It is used at OneNAND driver
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
diff --git a/lib_arm/Makefile b/lib_arm/Makefile
index 037c475..e1258f4 100644
--- a/lib_arm/Makefile
+++ b/lib_arm/Makefile
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(ARCH).a
-SOBJS = _ashldi3.o _ashrdi3.o _divsi3.o _modsi3.o _udivsi3.o _umodsi3.o
+SOBJS = _ashldi3.o _ashrdi3.o _divsi3.o _modsi3.o _udivsi3.o _umodsi3.o _memcpy32.o
COBJS = armlinux.o board.o \
cache.o div0.o
diff --git a/lib_arm/_memcpy32.S b/lib_arm/_memcpy32.S
new file mode 100644
index 0000000..d1ba36f
--- /dev/null
+++ b/lib_arm/_memcpy32.S
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2005-2007 Samsung Electronics
+ * Kyungmin Park <kyungmin.park@samsung.com>
+ *
+ * This file is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2, or (at your option) any
+ * later version.
+ */
+ .text
+
+ .global memcpy32
+ .align 0
+memcpy32:
+ mov ip, sp
+ stmfd sp!, {r0, r4 - r9, fp, ip, lr, pc}
+ sub fp, ip, #4
+1:
+ ldmia r1!, {r3 - r9, ip}
+ subges r2, r2, #32
+ stmgeia r0!, {r3 - r9, ip}
+ bge 1b
+2:
+ ldmea fp, {r0, r4 - r9, fp, sp, pc}
next reply other threads:[~2007-09-07 0:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-07 0:55 Kyungmin Park [this message]
2007-09-07 12:42 ` [U-Boot-Users] [PATCH] memcpy32 support at ARM Peter Pearse
2007-09-07 21:52 ` Ulf Samuelsson
2007-09-08 23:09 ` Wolfgang Denk
2007-09-10 1:57 ` Kyungmin Park
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=20070907005551.GA19707@party \
--to=kmpark@infradead.org \
--cc=u-boot@lists.denx.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox