Libc update to simplify merge.

Bumping libc files for unsupported architectures, to simplify merging.
A bunch of small fixes:
 * in libutil update
 * the macro in endian.h
 * some undefined types due to clear separation from host.
 * Fix a warning for cdbr.c

Some modification which were required for the new build system:
 * inclusion path for const.h in sconst, still hacky
 * Removed default malloc.c which conflicts on some occasions.
This commit is contained in:
2012-11-15 16:07:29 +01:00
parent dba3562d78
commit e415d48872
183 changed files with 3292 additions and 2385 deletions
+4 -6
View File
@@ -1,4 +1,4 @@
/* $NetBSD: cacheflush.c,v 1.4 2008/04/28 20:22:56 martin Exp $ */
/* $NetBSD: cacheflush.c,v 1.6 2012/03/29 21:21:04 christos Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -34,14 +34,12 @@
#include <mips/sysarch.h>
int
_cacheflush(addr, nbytes, whichcache)
void * addr;
int nbytes, whichcache;
_cacheflush(void *addr, size_t nbytes, int whichcache)
{
struct mips_cacheflush_args cfa;
cfa.va = (vaddr_t) addr;
cfa.va = (vaddr_t)(intptr_t)addr;
cfa.nbytes = nbytes;
cfa.whichcache = whichcache;
return (sysarch(MIPS_CACHEFLUSH, (void *)&cfa));
return sysarch(MIPS_CACHEFLUSH, (void *)&cfa);
}