示例#1
0
/*
 * The application's main (or the one supplied in this library) calls this
 * to start the PPAPI world.
 */
int PpapiPluginMain(void) {
  /* ARC MOD BEGIN */
#if defined(USE_FPABI_SHIM)
  __set_real_FpAbiShim_PPPGetInterface(PPP_GetInterface);
#endif  /* USE_FPABI_SHIM */
  /* ARC MOD END */
  return PpapiPluginStart(&ppapi_app_start_callbacks);
}
/*
 * This is the true entry point for untrusted code.
 * See nacl_startup.h for the layout at the argument pointer.
 */
void _start(uint32_t *info) {
  Elf32_auxv_t *auxv = nacl_startup_auxv(info);

  __libnacl_irt_init(auxv);

  _exit(PpapiPluginStart(ih.__nacl_irt_query));

  /*NOTREACHED*/
  while (1) *(volatile int *) 0;  /* Crash.  */
}