process.cc (10810:683ab55819fd) | process.cc (11386:94c09b607a84) |
---|---|
1/* 2 * Copyright (c) 2010, 2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 63 unchanged lines hidden (view full) --- 72 // Set pointer for next thread stack. Reserve 8M for main stack. 73 next_thread_stack_base = stack_base - (8 * 1024 * 1024); 74 75 // Set up break point (Top of Heap) 76 brk_point = objFile->dataBase() + objFile->dataSize() + objFile->bssSize(); 77 brk_point = roundUp(brk_point, PageBytes); 78 79 // Set up region for mmaps. For now, start at bottom of kuseg space. | 1/* 2 * Copyright (c) 2010, 2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 63 unchanged lines hidden (view full) --- 72 // Set pointer for next thread stack. Reserve 8M for main stack. 73 next_thread_stack_base = stack_base - (8 * 1024 * 1024); 74 75 // Set up break point (Top of Heap) 76 brk_point = objFile->dataBase() + objFile->dataSize() + objFile->bssSize(); 77 brk_point = roundUp(brk_point, PageBytes); 78 79 // Set up region for mmaps. For now, start at bottom of kuseg space. |
80 mmap_start = mmap_end = 0x40000000L; | 80 mmap_end = 0x40000000L; |
81} 82 83ArmLiveProcess64::ArmLiveProcess64(LiveProcessParams *params, 84 ObjectFile *objFile, ObjectFile::Arch _arch) 85 : ArmLiveProcess(params, objFile, _arch) 86{ 87 stack_base = 0x7fffff0000L; 88 89 // Set pointer for next thread stack. Reserve 8M for main stack. 90 next_thread_stack_base = stack_base - (8 * 1024 * 1024); 91 92 // Set up break point (Top of Heap) 93 brk_point = objFile->dataBase() + objFile->dataSize() + objFile->bssSize(); 94 brk_point = roundUp(brk_point, PageBytes); 95 96 // Set up region for mmaps. For now, start at bottom of kuseg space. | 81} 82 83ArmLiveProcess64::ArmLiveProcess64(LiveProcessParams *params, 84 ObjectFile *objFile, ObjectFile::Arch _arch) 85 : ArmLiveProcess(params, objFile, _arch) 86{ 87 stack_base = 0x7fffff0000L; 88 89 // Set pointer for next thread stack. Reserve 8M for main stack. 90 next_thread_stack_base = stack_base - (8 * 1024 * 1024); 91 92 // Set up break point (Top of Heap) 93 brk_point = objFile->dataBase() + objFile->dataSize() + objFile->bssSize(); 94 brk_point = roundUp(brk_point, PageBytes); 95 96 // Set up region for mmaps. For now, start at bottom of kuseg space. |
97 mmap_start = mmap_end = 0x4000000000L; | 97 mmap_end = 0x4000000000L; |
98} 99 100void 101ArmLiveProcess32::initState() 102{ 103 LiveProcess::initState(); 104 argsInit<uint32_t>(PageBytes, INTREG_SP); 105 for (int i = 0; i < contextIds.size(); i++) { --- 384 unchanged lines hidden --- | 98} 99 100void 101ArmLiveProcess32::initState() 102{ 103 LiveProcess::initState(); 104 argsInit<uint32_t>(PageBytes, INTREG_SP); 105 for (int i = 0; i < contextIds.size(); i++) { --- 384 unchanged lines hidden --- |