Guest User

Untitled

a guest
Jan 19th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. // cache Flush hack for node.js
  2.  
  3. static int
  4. sysctl_arm_hack(SYSCTL_HANDLER_ARGS)
  5. {
  6. int dummy;
  7. printf("ARM hack called!\n");
  8. cpu_icache_sync_range();
  9. error = SYSCTL_OUT(req, &dummy, sizeof(dummy)); // you must declare int dummy; for this
  10. return (error);
  11. }
  12. SYSCTL_PROC(_debug, OID_AUTO, arm_hack, CTLTYPE_INT | CTLFLAG_RD, NULL, 0,
  13. sysctl_arm_hack, "I", "ARM hack for cache flushing");
  14.  
  15. // end cache flush hack
Add Comment
Please, Sign In to add comment