]> git.saurik.com Git - apple/libc.git/blame - gen/cache.c
Libc-262.2.12.tar.gz
[apple/libc.git] / gen / cache.c
CommitLineData
734aad71
A
1/* cache control */
2
3#include <stdlib.h>
4#include <stddef.h>
5#include <errno.h>
6#include <sys/types.h>
7
8static const unsigned int kCacheOptionsSyncForExecution = 0x1;
9
10int
11sys_cache_control(unsigned int options, caddr_t start, size_t len)
12{
13 if (options == kCacheOptionsSyncForExecution) {
14 sys_icache_invalidate(start, len);
15 return 0;
16 }
17 return ENOTSUP;
18}