3 * Copyright (C) 2009,2010 notaz
5 * This work is licensed under the terms of MAME license.
6 * See COPYING file in the top-level directory.
15 u8 __attribute__((aligned(4096))) tcache[DRC_TCACHE_SIZE];
18 void drc_cmn_init(void)
23 tmp = mmap(tcache, DRC_TCACHE_SIZE, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
24 printf("mmap tcache: %p, asked %p\n", tmp, tcache);
28 void drc_cmn_cleanup(void)
32 ret = munmap(tcache, DRC_TCACHE_SIZE);
33 printf("munmap tcache: %i\n", ret);