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