summaryrefslogtreecommitdiffstats
path: root/sandbox/linux/seccomp/trusted_thread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/linux/seccomp/trusted_thread.cc')
-rw-r--r--sandbox/linux/seccomp/trusted_thread.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sandbox/linux/seccomp/trusted_thread.cc b/sandbox/linux/seccomp/trusted_thread.cc
index af2e913..c73091c 100644
--- a/sandbox/linux/seccomp/trusted_thread.cc
+++ b/sandbox/linux/seccomp/trusted_thread.cc
@@ -86,6 +86,9 @@ void Sandbox::createTrustedThread(int processFdPub, int cloneFdPub,
// 0x3C: RDTSCP result (%eax)
// 0x40: RDTSCP result (%edx)
// 0x44: RDTSCP result (%ecx)
+ // 0x48: last system call (not used on x86-64)
+ // 0x4C: number of consecutive calls to a time fnc (not used on x86-64)
+ // 0x50: nesting level of system calls (for debugging purposes only)
// We use the %fs register for accessing the secure read-only page, and
// the untrusted scratch space immediately following it. The segment
@@ -699,6 +702,7 @@ void Sandbox::createTrustedThread(int processFdPub, int cloneFdPub,
// 0x28: RDTSCP result (%ecx)
// 0x2C: last system call (updated in syscall.cc)
// 0x30: number of consecutive calls to a time fnc. (e.g. gettimeofday)
+ // 0x34: nesting level of system calls (for debugging purposes only)
"0:xor %%esp, %%esp\n"
"mov $2, %%eax\n" // %mm2 = initial sequence number