system.cc (8852:c744483edfcf) system.cc (8870:f95c4042f2d0)
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

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

109 offset += ac->copyOut(boot_data + offset);
110 offset += am->copyOut(boot_data + offset);
111 offset += ad->copyOut(boot_data + offset);
112 offset += an->copyOut(boot_data + offset);
113
114 DPRINTF(Loader, "Boot atags was %d bytes in total\n", size << 2);
115 DDUMP(Loader, boot_data, size << 2);
116
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

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

109 offset += ac->copyOut(boot_data + offset);
110 offset += am->copyOut(boot_data + offset);
111 offset += ad->copyOut(boot_data + offset);
112 offset += an->copyOut(boot_data + offset);
113
114 DPRINTF(Loader, "Boot atags was %d bytes in total\n", size << 2);
115 DDUMP(Loader, boot_data, size << 2);
116
117 physProxy.writeBlob(ParamsList, boot_data, size << 2);
117 physProxy.writeBlob(params()->atags_addr, boot_data, size << 2);
118
119#ifndef NDEBUG
120 kernelPanicEvent = addKernelFuncEvent<BreakPCEvent>("panic");
121 if (!kernelPanicEvent)
122 panic("could not find kernel symbol \'panic\'");
123#endif
124
125 // With ARM udelay() is #defined to __udelay

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

149
150 secDataPtrAddr &= ~ULL(0x7F);
151 secDataAddr &= ~ULL(0x7F);
152 penReleaseAddr &= ~ULL(0x7F);
153
154 for (int i = 0; i < threadContexts.size(); i++) {
155 threadContexts[i]->setIntReg(0, 0);
156 threadContexts[i]->setIntReg(1, params()->machine_type);
118
119#ifndef NDEBUG
120 kernelPanicEvent = addKernelFuncEvent<BreakPCEvent>("panic");
121 if (!kernelPanicEvent)
122 panic("could not find kernel symbol \'panic\'");
123#endif
124
125 // With ARM udelay() is #defined to __udelay

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

149
150 secDataPtrAddr &= ~ULL(0x7F);
151 secDataAddr &= ~ULL(0x7F);
152 penReleaseAddr &= ~ULL(0x7F);
153
154 for (int i = 0; i < threadContexts.size(); i++) {
155 threadContexts[i]->setIntReg(0, 0);
156 threadContexts[i]->setIntReg(1, params()->machine_type);
157 threadContexts[i]->setIntReg(2, ParamsList);
157 threadContexts[i]->setIntReg(2, params()->atags_addr);
158 }
159}
160
161LinuxArmSystem::~LinuxArmSystem()
162{
163 if (uDelaySkipEvent)
164 delete uDelaySkipEvent;
165 if (constUDelaySkipEvent)
166 delete constUDelaySkipEvent;
167}
168
169LinuxArmSystem *
170LinuxArmSystemParams::create()
171{
172 return new LinuxArmSystem(this);
173}
158 }
159}
160
161LinuxArmSystem::~LinuxArmSystem()
162{
163 if (uDelaySkipEvent)
164 delete uDelaySkipEvent;
165 if (constUDelaySkipEvent)
166 delete constUDelaySkipEvent;
167}
168
169LinuxArmSystem *
170LinuxArmSystemParams::create()
171{
172 return new LinuxArmSystem(this);
173}