summaryrefslogtreecommitdiff
path: root/sys/arch/vax/include
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-11-06 21:31:38 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-11-06 21:31:38 +0000
commit3c3baab0b5ba19a6e37a4a41969628220867f0e3 (patch)
tree3746d05f3c1a5fda0d460c8194e766f43d523a39 /sys/arch/vax/include
parent248cc77eb5b02c0172d19df9f0759135ff44ec43 (diff)
Let CISCoholic memset() do not behave as bzero for a length over 64KB.
Diffstat (limited to 'sys/arch/vax/include')
-rw-r--r--sys/arch/vax/include/macros.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/vax/include/macros.h b/sys/arch/vax/include/macros.h
index e71442917de..0c514ff5aa7 100644
--- a/sys/arch/vax/include/macros.h
+++ b/sys/arch/vax/include/macros.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: macros.h,v 1.13 2006/02/22 22:16:07 miod Exp $ */
+/* $OpenBSD: macros.h,v 1.14 2006/11/06 21:31:36 miod Exp $ */
/* $NetBSD: macros.h,v 1.20 2000/07/19 01:02:52 matt Exp $ */
/*
@@ -82,13 +82,13 @@ bcopy(const void *from, void *toe, size_t len)
}
#endif
-void blkclr(void *, size_t);
+void blkfill(void *, int, size_t);
static __inline__ void *
memset(void *block, int c, size_t len)
{
if (len > 65535)
- blkclr(block, len);
+ blkfill(block, c, len);
else {
__asm__ __volatile ("movc5 $0,(%0),%2,%1,(%0)"
:
@@ -102,7 +102,7 @@ static __inline__ void
bzero(void *block, size_t len)
{
if (len > 65535)
- blkclr(block, len);
+ blkfill(block, 0, len);
else {
__asm__ __volatile ("movc5 $0,(%0),$0,%1,(%0)"
: