summaryrefslogtreecommitdiff
path: root/sys/lib/libkern
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-04-25 21:47:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-04-25 21:47:54 +0000
commitb31bef73242734947d618a2ca1ca04fa44e0ea5d (patch)
tree151e41cd0e214c4e63dcc8a659e8975729816098 /sys/lib/libkern
parent5b2d87f10d2aa7f88160961aab8e46b3f36f1d2e (diff)
Add movstrSI12_i4 for linking -Os/-Oz kernels. Sadly however it
fails and locks early in boot.
Diffstat (limited to 'sys/lib/libkern')
-rw-r--r--sys/lib/libkern/arch/sh/movstrSI12_i4.S19
1 files changed, 19 insertions, 0 deletions
diff --git a/sys/lib/libkern/arch/sh/movstrSI12_i4.S b/sys/lib/libkern/arch/sh/movstrSI12_i4.S
new file mode 100644
index 00000000000..4d94c07e2b6
--- /dev/null
+++ b/sys/lib/libkern/arch/sh/movstrSI12_i4.S
@@ -0,0 +1,19 @@
+/* $OpenBSD: movstrSI12_i4.S,v 1.1 2019/04/25 21:47:51 deraadt Exp $ */
+
+/*
+ * Public domain
+ * Theo de Raadt
+ */
+
+#include <machine/asm.h>
+
+NENTRY(__movstrSI12_i4)
+ mov.l @r5, r0
+ mov.l @(4, r5), r1
+ mov.l @(8, r5), r2
+ mov.l r0, @r4
+ mov.l r1, @(4, r4)
+ rts
+ mov.l r2, @(8, r4)
+
+STRONG_ALIAS(__movmemSI12_i4, __movstrSI12_i4)