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

Unified Diff: sandbox/linux/seccomp-bpf/syscall_iterator.h

Issue 260793003: [MIPS] Add seccomp bpf support (Closed) Base URL: https://git.chromium.org/git/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 8 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
Index: sandbox/linux/seccomp-bpf/syscall_iterator.h
diff --git a/sandbox/linux/seccomp-bpf/syscall_iterator.h b/sandbox/linux/seccomp-bpf/syscall_iterator.h
index ea4273f76456953791ec740805b74432fd108aab..6acfff4cbd3b5396a7ac70f5fd3bc21900d30608 100644
--- a/sandbox/linux/seccomp-bpf/syscall_iterator.h
+++ b/sandbox/linux/seccomp-bpf/syscall_iterator.h
@@ -35,8 +35,11 @@ namespace sandbox {
class SANDBOX_EXPORT SyscallIterator {
public:
explicit SyscallIterator(bool invalid_only)
+#if defined(__mips__) && (_MIPS_SIM == _MIPS_SIM_ABI32)
+ : invalid_only_(invalid_only), done_(false), num_(4000) {}
jln (very slow on Chromium) 2014/05/02 20:42:04 Is there a defined symbol instad of "4000"?
nedeljko 2014/05/07 15:40:05 __NR_Linux can be used, although I need to include
+#else
: invalid_only_(invalid_only), done_(false), num_(0) {}
-
+#endif
bool Done() const { return done_; }
uint32_t Next();
static bool IsValid(uint32_t num);

Powered by Google App Engine
This is Rietveld 408576698