console.c (8022:15bece33379b) console.c (8023:36c59449dc93)
1/*
2 * Copyright (c) 2003, 2004
3 * The Regents of The University of Michigan
4 * All Rights Reserved
5 *
6 * This code is part of the M5 simulator, developed by Nathan Binkert,
7 * Erik Hallnor, Steve Raasch, and Steve Reinhardt, with contributions
8 * from Ron Dreslinski, Dave Greene, Lisa Hsu, Ali Saidi, and Andrew

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

182 m5Conf.entryPoint = m5AlphaAccess->entryPoint;
183 m5Conf.diskUnit = m5AlphaAccess->diskUnit;
184 m5Conf.diskCount = m5AlphaAccess->diskCount;
185 m5Conf.diskPAddr = m5AlphaAccess->diskPAddr;
186 m5Conf.diskBlock = m5AlphaAccess->diskBlock;
187 m5Conf.diskOperation = m5AlphaAccess->diskOperation;
188 m5Conf.outputChar = m5AlphaAccess->outputChar;
189 m5Conf.inputChar = m5AlphaAccess->inputChar;
1/*
2 * Copyright (c) 2003, 2004
3 * The Regents of The University of Michigan
4 * All Rights Reserved
5 *
6 * This code is part of the M5 simulator, developed by Nathan Binkert,
7 * Erik Hallnor, Steve Raasch, and Steve Reinhardt, with contributions
8 * from Ron Dreslinski, Dave Greene, Lisa Hsu, Ali Saidi, and Andrew

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

182 m5Conf.entryPoint = m5AlphaAccess->entryPoint;
183 m5Conf.diskUnit = m5AlphaAccess->diskUnit;
184 m5Conf.diskCount = m5AlphaAccess->diskCount;
185 m5Conf.diskPAddr = m5AlphaAccess->diskPAddr;
186 m5Conf.diskBlock = m5AlphaAccess->diskBlock;
187 m5Conf.diskOperation = m5AlphaAccess->diskOperation;
188 m5Conf.outputChar = m5AlphaAccess->outputChar;
189 m5Conf.inputChar = m5AlphaAccess->inputChar;
190 m5Conf.bootStrapImpure = m5AlphaAccess->bootStrapImpure;
191 m5Conf.bootStrapCPU = m5AlphaAccess->bootStrapCPU;
192
193 if (m5Conf.version != ALPHA_ACCESS_VERSION) {
194 panic("Console version mismatch. Console expects %d. has %d \n",
195 ALPHA_ACCESS_VERSION, m5Conf.version);
196 }
197
198 /*
199 * setup arguments to kernel

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

738 *lp2 = sum;
739
740 /*
741 * MP bootstrap
742 */
743 for (i = 1; i < m5Conf.numCPUs; i++) {
744 ulong stack = (ulong)unix_boot_alloc(1);
745 printf_lock("Bootstraping CPU %d with sp=0x%x\n", i, stack);
190
191 if (m5Conf.version != ALPHA_ACCESS_VERSION) {
192 panic("Console version mismatch. Console expects %d. has %d \n",
193 ALPHA_ACCESS_VERSION, m5Conf.version);
194 }
195
196 /*
197 * setup arguments to kernel

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

736 *lp2 = sum;
737
738 /*
739 * MP bootstrap
740 */
741 for (i = 1; i < m5Conf.numCPUs; i++) {
742 ulong stack = (ulong)unix_boot_alloc(1);
743 printf_lock("Bootstraping CPU %d with sp=0x%x\n", i, stack);
746 m5AlphaAccess->bootStrapImpure = stack;
747 m5AlphaAccess->bootStrapCPU = i;
744 m5AlphaAccess->cpuStack[i] = stack;
748 }
749
750 /*
751 * Make sure that we are not stepping on the kernel
752 */
753 if ((ulong)unix_boot_mem >= (ulong)m5Conf.kernStart) {
754 panic("CONSOLE: too much memory. Smashing kernel\n");
755 } else {

--- 346 unchanged lines hidden ---
745 }
746
747 /*
748 * Make sure that we are not stepping on the kernel
749 */
750 if ((ulong)unix_boot_mem >= (ulong)m5Conf.kernStart) {
751 panic("CONSOLE: too much memory. Smashing kernel\n");
752 } else {

--- 346 unchanged lines hidden ---