system.cc (8885:52bbd95b31ed) | system.cc (8931:7a1dfb191e3f) |
---|---|
1/* 2 * Copyright (c) 2010 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 --- 111 unchanged lines hidden (view full) --- 120 kernel->loadGlobalSymbols(debugSymbolTable, loadAddrMask); 121 122 // Setup boot data structure 123 AtagCore *ac = new AtagCore; 124 ac->flags(1); // read-only 125 ac->pagesize(8192); 126 ac->rootdev(0); 127 | 1/* 2 * Copyright (c) 2010 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 --- 111 unchanged lines hidden (view full) --- 120 kernel->loadGlobalSymbols(debugSymbolTable, loadAddrMask); 121 122 // Setup boot data structure 123 AtagCore *ac = new AtagCore; 124 ac->flags(1); // read-only 125 ac->pagesize(8192); 126 ac->rootdev(0); 127 |
128 AddrRangeList atagRanges = physmem.getConfAddrRanges(); 129 if (atagRanges.size() != 1) { 130 fatal("Expected a single ATAG memory entry but got %d\n", 131 atagRanges.size()); 132 } |
|
128 AtagMem *am = new AtagMem; | 133 AtagMem *am = new AtagMem; |
129 am->memSize(params()->physmem->size()); 130 am->memStart(params()->physmem->start()); | 134 am->memSize(atagRanges.begin()->size()); 135 am->memStart(atagRanges.begin()->start); |
131 132 AtagCmdline *ad = new AtagCmdline; 133 ad->cmdline(params()->boot_osflags); 134 135 DPRINTF(Loader, "boot command line %d bytes: %s\n", ad->size() <<2, params()->boot_osflags.c_str()); 136 137 AtagNone *an = new AtagNone; 138 --- 34 unchanged lines hidden --- | 136 137 AtagCmdline *ad = new AtagCmdline; 138 ad->cmdline(params()->boot_osflags); 139 140 DPRINTF(Loader, "boot command line %d bytes: %s\n", ad->size() <<2, params()->boot_osflags.c_str()); 141 142 AtagNone *an = new AtagNone; 143 --- 34 unchanged lines hidden --- |