system.cc (11793:ef606668d247) system.cc (14010:0e1e887507c0)
1/*
2 * Copyright (c) 2007-2008 The Hewlett-Packard Development Company
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

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

75 // A buffer to store the command line.
76 const Addr commandLineBuff = 0x90000;
77 // A pointer to the commandLineBuff stored in the real mode data.
78 const Addr commandLinePointer = realModeData + 0x228;
79
80 if (commandLine.length() + 1 > realModeData - commandLineBuff)
81 panic("Command line \"%s\" is longer than %d characters.\n",
82 commandLine, realModeData - commandLineBuff - 1);
1/*
2 * Copyright (c) 2007-2008 The Hewlett-Packard Development Company
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

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

75 // A buffer to store the command line.
76 const Addr commandLineBuff = 0x90000;
77 // A pointer to the commandLineBuff stored in the real mode data.
78 const Addr commandLinePointer = realModeData + 0x228;
79
80 if (commandLine.length() + 1 > realModeData - commandLineBuff)
81 panic("Command line \"%s\" is longer than %d characters.\n",
82 commandLine, realModeData - commandLineBuff - 1);
83 physProxy.writeBlob(commandLineBuff, (uint8_t *)commandLine.c_str(),
83 physProxy.writeBlob(commandLineBuff, commandLine.c_str(),
84 commandLine.length() + 1);
85
86 // Generate a pointer of the right size and endianness to put into
87 // commandLinePointer.
88 uint32_t guestCommandLineBuff =
89 X86ISA::htog((uint32_t)commandLineBuff);
84 commandLine.length() + 1);
85
86 // Generate a pointer of the right size and endianness to put into
87 // commandLinePointer.
88 uint32_t guestCommandLineBuff =
89 X86ISA::htog((uint32_t)commandLineBuff);
90 physProxy.writeBlob(commandLinePointer, (uint8_t *)&guestCommandLineBuff,
90 physProxy.writeBlob(commandLinePointer, &guestCommandLineBuff,
91 sizeof(guestCommandLineBuff));
92
93 /*
94 * Screen Info.
95 */
96
97 // We'll skip on this for now because it's only needed for framebuffers,
98 // something we don't support at the moment.

--- 43 unchanged lines hidden ---
91 sizeof(guestCommandLineBuff));
92
93 /*
94 * Screen Info.
95 */
96
97 // We'll skip on this for now because it's only needed for framebuffers,
98 // something we don't support at the moment.

--- 43 unchanged lines hidden ---