Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenarchmach.c
Go to the documentation of this file.
00001 /* $Id: archmach.c 43790 2009-10-27 10:34:16Z dgorbachev $ 00002 * 00003 * FreeLoader 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License along 00016 * with this program; if not, write to the Free Software Foundation, Inc., 00017 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00018 */ 00019 00020 #include <freeldr.h> 00021 00022 VOID 00023 MachInit(const char *CmdLine) 00024 { 00025 ULONG PciId; 00026 00027 memset(&MachVtbl, 0, sizeof(MACHVTBL)); 00028 00029 /* Check for Xbox by identifying device at PCI 0:0:0, if it's 00030 * 0x10de/0x02a5 then we're running on an Xbox */ 00031 WRITE_PORT_ULONG((ULONG*) 0xcf8, CONFIG_CMD(0, 0, 0)); 00032 PciId = READ_PORT_ULONG((ULONG*) 0xcfc); 00033 if (0x02a510de == PciId) 00034 { 00035 XboxMachInit(CmdLine); 00036 } 00037 else 00038 { 00039 PcMachInit(CmdLine); 00040 } 00041 00042 HalpCalibrateStallExecution(); 00043 } 00044 00045 /* EOF */ Generated on Fri May 25 2012 04:17:08 for ReactOS by
1.7.6.1
|