Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Side by Side Diff: ppapi/nacl_irt/public/irt_nonsfi.h

Issue 924783003: Prepare for moving nacl_irt_icache definition to the NaCl repository. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698