system.cc (9172:2f2e4582014f) | system.cc (9187:fd9a83e5178a) |
---|---|
1/* 2 * Copyright (c) 2011-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 --- 252 unchanged lines hidden (view full) --- 261 for (int i = 0; i < threadContexts.size(); i++) 262 TheISA::startupCPU(threadContexts[i], i); 263 // Moved from the constructor to here since it relies on the 264 // address map being resolved in the interconnect 265 /** 266 * Load the kernel code into memory 267 */ 268 if (params()->kernel != "") { | 1/* 2 * Copyright (c) 2011-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 --- 252 unchanged lines hidden (view full) --- 261 for (int i = 0; i < threadContexts.size(); i++) 262 TheISA::startupCPU(threadContexts[i], i); 263 // Moved from the constructor to here since it relies on the 264 // address map being resolved in the interconnect 265 /** 266 * Load the kernel code into memory 267 */ 268 if (params()->kernel != "") { |
269 // Validate kernel mapping before loading binary 270 if (!(isMemAddr(kernelStart & loadAddrMask) && 271 isMemAddr(kernelEnd & loadAddrMask))) { 272 fatal("Kernel is mapped to invalid location (not memory). " 273 "kernelStart 0x(%x) - kernelEnd 0x(%x)\n", kernelStart, 274 kernelEnd); 275 } |
|
269 // Load program sections into memory 270 kernel->loadSections(physProxy, loadAddrMask); 271 272 DPRINTF(Loader, "Kernel start = %#x\n", kernelStart); 273 DPRINTF(Loader, "Kernel end = %#x\n", kernelEnd); 274 DPRINTF(Loader, "Kernel entry = %#x\n", kernelEntry); 275 DPRINTF(Loader, "Kernel loaded...\n"); 276 } --- 164 unchanged lines hidden --- | 276 // Load program sections into memory 277 kernel->loadSections(physProxy, loadAddrMask); 278 279 DPRINTF(Loader, "Kernel start = %#x\n", kernelStart); 280 DPRINTF(Loader, "Kernel end = %#x\n", kernelEnd); 281 DPRINTF(Loader, "Kernel entry = %#x\n", kernelEntry); 282 DPRINTF(Loader, "Kernel loaded...\n"); 283 } --- 164 unchanged lines hidden --- |