diff options
Diffstat (limited to 'sandbox/linux/seccomp/x86_decode.h')
-rw-r--r-- | sandbox/linux/seccomp/x86_decode.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sandbox/linux/seccomp/x86_decode.h b/sandbox/linux/seccomp/x86_decode.h new file mode 100644 index 0000000..68f0ab5 --- /dev/null +++ b/sandbox/linux/seccomp/x86_decode.h @@ -0,0 +1,19 @@ +// Copyright (c) 2010 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. + +#ifndef X86_DECODE_H__ +#define X86_DECODE_H__ +namespace playground { +enum { + REX_B = 0x01, + REX_X = 0x02, + REX_R = 0x04, + REX_W = 0x08 +}; + +unsigned short next_inst(const char **ip, bool is64bit, bool *has_prefix = 0, + char **rex_ptr = 0, char **mod_rm_ptr = 0, + char **sib_ptr = 0, bool *is_group = 0); +} // namespace +#endif // X86_DECODE_H__ |