process.cc (8232:b28d06a175be) process.cc (8601:af28085882dc)
1/*
2 * Copyright (c) 2007-2008 The Florida State University
3 * Copyright (c) 2009 The University of Edinburgh
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

182
183 int space_needed = frame_size + aux_padding;
184
185 stack_min = stack_base - space_needed;
186 stack_min = roundDown(stack_min, align);
187 stack_size = stack_base - stack_min;
188
189 // map memory
1/*
2 * Copyright (c) 2007-2008 The Florida State University
3 * Copyright (c) 2009 The University of Edinburgh
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

182
183 int space_needed = frame_size + aux_padding;
184
185 stack_min = stack_base - space_needed;
186 stack_min = roundDown(stack_min, align);
187 stack_size = stack_base - stack_min;
188
189 // map memory
190 pTable->allocate(roundDown(stack_min, pageSize),
191 roundUp(stack_size, pageSize));
190 allocateMem(roundDown(stack_min, pageSize), roundUp(stack_size, pageSize));
192
193 // map out initial stack contents
194 uint32_t sentry_base = stack_base - sentry_size;
195 uint32_t aux_data_base = sentry_base - aux_data_size;
196 uint32_t env_data_base = aux_data_base - env_data_size;
197 uint32_t arg_data_base = env_data_base - arg_data_size;
198 uint32_t platform_base = arg_data_base - platform_size;
199 uint32_t auxv_array_base = platform_base - aux_array_size - aux_padding;

--- 94 unchanged lines hidden ---
191
192 // map out initial stack contents
193 uint32_t sentry_base = stack_base - sentry_size;
194 uint32_t aux_data_base = sentry_base - aux_data_size;
195 uint32_t env_data_base = aux_data_base - env_data_size;
196 uint32_t arg_data_base = env_data_base - arg_data_size;
197 uint32_t platform_base = arg_data_base - platform_size;
198 uint32_t auxv_array_base = platform_base - aux_array_size - aux_padding;

--- 94 unchanged lines hidden ---