| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright 2014 The Chromium Authors. All rights reserved. | |
| 3 * Use of this source code is governed by a BSD-style license that can be | |
| 4 * found in the LICENSE file. | |
| 5 */ | |
| 6 // TODO(mazda): Remove this file once NaCl has been rolled to the revision | |
| 7 // that includes the definition of nacl_irt_icache. | |
| 8 // https://code.google.com/p/nativeclient/issues/detail?id=4033 | |
| 9 | |
| 10 #ifndef PPAPI_NACL_IRT_PUBLIC_IRT_NONSFI_H_ | |
| 11 #define PPAPI_NACL_IRT_PUBLIC_IRT_NONSFI_H_ | |
| 12 | |
| 13 #if !defined(NACL_IRT_ICACHE_v0_1) | |
| 14 | |
| 15 #include <stddef.h> | |
| 16 | |
| 17 /* | |
| 18 * This interface is only available on ARM, only for Non-SFI. | |
| 19 */ | |
| 20 #define NACL_IRT_ICACHE_v0_1 "nacl-irt-icache-0.1" | |
| 21 struct nacl_irt_icache { | |
| 22 /* | |
| 23 * clear_cache() makes instruction cache and data cache for the address | |
| 24 * range from |addr| to |(intptr_t)addr + size| (exclusive) coherent. | |
| 25 */ | |
| 26 int (*clear_cache)(void* addr, size_t size); | |
| 27 }; | |
| 28 | |
| 29 #endif | |
| 30 | |
| 31 #endif // PPAPI_NACL_IRT_PUBLIC_IRT_NONSFI_H_ | |
| OLD | NEW |