Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lib/libkern/arch/vax Add memset to libkern on vax, movin...



details:   https://anonhg.NetBSD.org/src/rev/921cc4c7998b
branches:  trunk
changeset: 753036:921cc4c7998b
user:      uwe <uwe%NetBSD.org@localhost>
date:      Mon Mar 15 11:46:49 2010 +0000

description:
Add memset to libkern on vax, moving existing memset.S to src/common.

While kernel source code is supposed to use <machine/macros.h> via
<sys/param.h> and pick an inline asm version from there, gcc itself
can generate direct calls to memset() for structure initialization, so
the symbol must be provided.

Fixes INSTALL kernel, for which -Os caused gcc to use memset() call to
initialize a struct in uvm_fault_internal().

diffstat:

 sys/lib/libkern/arch/vax/Makefile.inc |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r 543835e609c2 -r 921cc4c7998b sys/lib/libkern/arch/vax/Makefile.inc
--- a/sys/lib/libkern/arch/vax/Makefile.inc     Mon Mar 15 11:27:38 2010 +0000
+++ b/sys/lib/libkern/arch/vax/Makefile.inc     Mon Mar 15 11:46:49 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.23 2009/08/14 19:23:55 dsl Exp $
+#      $NetBSD: Makefile.inc,v 1.24 2010/03/15 11:46:49 uwe Exp $
 #
 #      The rest of the lib routines are in machine/macros.h
 #
@@ -8,5 +8,4 @@
 SRCS+= udiv.S urem.S
 
 NO_SRCS+= imax.c imin.c lmax.c lmin.c max.c min.c ulmax.c ulmin.c
-NO_SRCS+= memset.c
 NO_SRCS+= scanc.c skpc.c



Home | Main Index | Thread Index | Old Index