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

Side by Side Diff: ppapi/native_client/src/untrusted/pnacl_irt_shim/shim_ppapi.c

Issue 10950042: PNaCl: Build a PPAPI shims library for all architectures (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/native_client/src/untrusted/pnacl_irt_shim/shim_entry.c ('k') | 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 (c) 2012 The Chromium Authors. All rights reserved. 2 * Copyright (c) 2012 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 6
7 #include "native_client/src/untrusted/pnacl_irt_shim/shim_ppapi.h" 7 #include "native_client/src/untrusted/pnacl_irt_shim/shim_ppapi.h"
8 8
9 #include <string.h> 9 #include <string.h>
10 #include "native_client/src/shared/ppapi_proxy/ppruntime.h" 10 #include "native_client/src/shared/ppapi_proxy/ppruntime.h"
11 #include "native_client/src/untrusted/irt/irt.h" 11 #include "native_client/src/untrusted/irt/irt.h"
12 #include "native_client/src/untrusted/irt/irt_ppapi.h" 12 #include "native_client/src/untrusted/irt/irt_ppapi.h"
13 #include "ppapi/generators/pnacl_shim.h" 13 #include "ppapi/generators/pnacl_shim.h"
14 14
15 /* The PNaCl PPAPI shims are only needed on x86-64. */
16 #if defined(__x86_64__)
17
15 TYPE_nacl_irt_query __pnacl_real_irt_interface; 18 TYPE_nacl_irt_query __pnacl_real_irt_interface;
16 19
17 /* 20 /*
18 * These remember the interface pointers the user registers by calling the 21 * These remember the interface pointers the user registers by calling the
19 * IRT entry point. 22 * IRT entry point.
20 */ 23 */
21 static struct PP_StartFunctions user_start_functions; 24 static struct PP_StartFunctions user_start_functions;
22 25
23 static int32_t wrap_PPPInitializeModule(PP_Module module_id, 26 static int32_t wrap_PPPInitializeModule(PP_Module module_id,
24 PPB_GetInterface get_browser_intf) { 27 PPB_GetInterface get_browser_intf) {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 real_irt_ppapi_hook.ppapi_register_thread_creator; 96 real_irt_ppapi_hook.ppapi_register_thread_creator;
94 /* 97 /*
95 * Copy the interface structure into the client. 98 * Copy the interface structure into the client.
96 */ 99 */
97 if (sizeof ppapi_hook <= tablesize) { 100 if (sizeof ppapi_hook <= tablesize) {
98 memcpy(table, &ppapi_hook, sizeof ppapi_hook); 101 memcpy(table, &ppapi_hook, sizeof ppapi_hook);
99 return sizeof ppapi_hook; 102 return sizeof ppapi_hook;
100 } 103 }
101 return 0; 104 return 0;
102 } 105 }
106
107 #endif
OLDNEW
« no previous file with comments | « ppapi/native_client/src/untrusted/pnacl_irt_shim/shim_entry.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698