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

Unified Diff: components/nacl/loader/nonsfi/irt_icache.cc

Issue 1409633002: Non-SFI mode: Remove old Non-SFI code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/nacl/loader/nonsfi/irt_futex.cc ('k') | components/nacl/loader/nonsfi/irt_icache_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/loader/nonsfi/irt_icache.cc
diff --git a/components/nacl/loader/nonsfi/irt_icache.cc b/components/nacl/loader/nonsfi/irt_icache.cc
deleted file mode 100644
index 49a70b3e9b5ec0e22bcc25d39e6893f174945e76..0000000000000000000000000000000000000000
--- a/components/nacl/loader/nonsfi/irt_icache.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#if defined(__arm__) // nacl_irt_icache is supported only on ARM.
-
-#include <errno.h>
-#include <sys/syscall.h>
-#include <stddef.h>
-
-#include "components/nacl/loader/nonsfi/irt_interfaces.h"
-
-namespace nacl {
-namespace nonsfi {
-
-namespace {
-
-// TODO(mazda): Revisit the implementation to consider inlining the syscall
-// with assembly when Non-SFI mode's IRT implementations get moved to the
-// NaCl repository.
-int IrtClearCache(void* addr, size_t size) {
- // The third argument of cacheflush is just ignored for now and should
- // always be zero.
- int result = syscall(__ARM_NR_cacheflush,
- addr, reinterpret_cast<intptr_t>(addr) + size, 0);
- if (result < 0)
- return errno;
- return 0;
-}
-
-} // namespace
-
-const nacl_irt_icache kIrtIcache = {
- IrtClearCache
-};
-
-} // namespace nonsfi
-} // namespace nacl
-
-#endif
« no previous file with comments | « components/nacl/loader/nonsfi/irt_futex.cc ('k') | components/nacl/loader/nonsfi/irt_icache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698