Deleted Added
sdiff udiff text old ( 5330:a1db38b0d8e8 ) new ( 5450:25e395a87745 )
full compact
1/*
2 * Copyright (c) 2007-2008 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * Redistribution and use of this software in source and binary forms,
6 * with or without modification, are permitted provided that the
7 * following conditions are met:
8 *
9 * The software must be used only for Non-Commercial Use which means any
10 * use which is NOT directed to receiving any direct monetary

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

63#include "mem/physical.hh"
64#include "params/LinuxX86System.hh"
65
66
67using namespace LittleEndianGuest;
68using namespace X86ISA;
69
70LinuxX86System::LinuxX86System(Params *p)
71 : X86System(p), commandLine(p->boot_osflags), e820Table(p->e820_table)
72{
73}
74
75LinuxX86System::~LinuxX86System()
76{
77}
78
79void

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

139 */
140
141 // A pointer to the number of E820 entries there are.
142 const Addr e820MapNrPointer = realModeData + 0x1e8;
143
144 // A pointer to the buffer for E820 entries.
145 const Addr e820MapPointer = realModeData + 0x2d0;
146
147 e820Table->writeTo(physPort, e820MapNrPointer, e820MapPointer);
148
149 /*
150 * Pass the location of the real mode data structure to the kernel
151 * using register %esi. We'll use %rsi which should be equivalent.
152 */
153 threadContexts[0]->setIntReg(INTREG_RSI, realModeData);
154}
155
156LinuxX86System *
157LinuxX86SystemParams::create()
158{
159 return new LinuxX86System(this);
160}