process.cc (11385:dbbf54058f6f) process.cc (11386:94c09b607a84)
1/*
2 * Copyright (c) 2014 Advanced Micro Devices, Inc.
3 * Copyright (c) 2007 The Hewlett-Packard Development Company
4 * All rights reserved.
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

--- 100 unchanged lines hidden (view full) ---

109 // for undertermined purposes.
110 stack_base = (Addr)0x7FFFFFFFF000ULL;
111
112 // Set pointer for next thread stack. Reserve 8M for main stack.
113 next_thread_stack_base = stack_base - (8 * 1024 * 1024);
114
115 // Set up region for mmaps. This was determined empirically and may not
116 // always be correct.
1/*
2 * Copyright (c) 2014 Advanced Micro Devices, Inc.
3 * Copyright (c) 2007 The Hewlett-Packard Development Company
4 * All rights reserved.
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

--- 100 unchanged lines hidden (view full) ---

109 // for undertermined purposes.
110 stack_base = (Addr)0x7FFFFFFFF000ULL;
111
112 // Set pointer for next thread stack. Reserve 8M for main stack.
113 next_thread_stack_base = stack_base - (8 * 1024 * 1024);
114
115 // Set up region for mmaps. This was determined empirically and may not
116 // always be correct.
117 mmap_start = mmap_end = (Addr)0x2aaaaaaab000ULL;
117 mmap_end = (Addr)0x2aaaaaaab000ULL;
118}
119
120void
121I386LiveProcess::syscall(int64_t callnum, ThreadContext *tc)
122{
123 TheISA::PCState pc = tc->pcState();
124 Addr eip = pc.pc();
125 if (eip >= vsyscallPage.base &&

--- 20 unchanged lines hidden (view full) ---

146
147 stack_base = _gdtStart;
148
149 // Set pointer for next thread stack. Reserve 8M for main stack.
150 next_thread_stack_base = stack_base - (8 * 1024 * 1024);
151
152 // Set up region for mmaps. This was determined empirically and may not
153 // always be correct.
118}
119
120void
121I386LiveProcess::syscall(int64_t callnum, ThreadContext *tc)
122{
123 TheISA::PCState pc = tc->pcState();
124 Addr eip = pc.pc();
125 if (eip >= vsyscallPage.base &&

--- 20 unchanged lines hidden (view full) ---

146
147 stack_base = _gdtStart;
148
149 // Set pointer for next thread stack. Reserve 8M for main stack.
150 next_thread_stack_base = stack_base - (8 * 1024 * 1024);
151
152 // Set up region for mmaps. This was determined empirically and may not
153 // always be correct.
154 mmap_start = mmap_end = (Addr)0xf7ffe000ULL;
154 mmap_end = (Addr)0xf7ffe000ULL;
155}
156
157SyscallDesc*
158X86LiveProcess::getDesc(int callnum)
159{
160 if (callnum < 0 || callnum >= numSyscallDescs)
161 return NULL;
162 return &syscallDescs[callnum];

--- 915 unchanged lines hidden ---
155}
156
157SyscallDesc*
158X86LiveProcess::getDesc(int callnum)
159{
160 if (callnum < 0 || callnum >= numSyscallDescs)
161 return NULL;
162 return &syscallDescs[callnum];

--- 915 unchanged lines hidden ---