backdoor.cc (11793:ef606668d247) backdoor.cc (12237:fdd8c4c63356)
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

228 disk->read(alphaAccess->diskPAddr, alphaAccess->diskBlock,
229 alphaAccess->diskCount);
230 else
231 panic("Invalid disk operation!");
232
233 break;
234
235 case offsetof(AlphaAccess, outputChar):
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

228 disk->read(alphaAccess->diskPAddr, alphaAccess->diskBlock,
229 alphaAccess->diskCount);
230 else
231 panic("Invalid disk operation!");
232
233 break;
234
235 case offsetof(AlphaAccess, outputChar):
236 terminal->out((char)(val & 0xff));
236 terminal->writeData((char)(val & 0xff));
237 break;
238
239 default:
240 int cpunum = (daddr - offsetof(AlphaAccess, cpuStack)) /
241 sizeof(alphaAccess->cpuStack[0]);
242 inform("Launching CPU %d @ %d", cpunum, curTick());
243 assert(val > 0 && "Must not access primary cpu");
244 if (cpunum >= 0 && cpunum < 64)

--- 71 unchanged lines hidden ---
237 break;
238
239 default:
240 int cpunum = (daddr - offsetof(AlphaAccess, cpuStack)) /
241 sizeof(alphaAccess->cpuStack[0]);
242 inform("Launching CPU %d @ %d", cpunum, curTick());
243 assert(val > 0 && "Must not access primary cpu");
244 if (cpunum >= 0 && cpunum < 64)

--- 71 unchanged lines hidden ---