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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user