Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenprocessor.c
Go to the documentation of this file.
00001 /* $Id: processor.c 23907 2006-09-04 05:52:23Z arty $ 00002 * 00003 * COPYRIGHT: See COPYING in the top level directory 00004 * PROJECT: ReactOS kernel 00005 * FILE: hal/halx86/generic/processor.c 00006 * PURPOSE: Intel MultiProcessor specification support 00007 * PROGRAMMER: David Welch (welch@cwcom.net) 00008 * Casper S. Hornstrup (chorns@users.sourceforge.net) 00009 * NOTES: Parts adapted from linux SMP code 00010 * UPDATE HISTORY: 00011 * 22/05/1998 DW Created 00012 * 12/04/2001 CSH Added MultiProcessor specification support 00013 */ 00014 00015 /* INCLUDES *****************************************************************/ 00016 00017 #include <hal.h> 00018 #define NDEBUG 00019 #include <debug.h> 00020 00021 /* FUNCTIONS *****************************************************************/ 00022 00023 #define INITIAL_STALL_COUNT 0x10000 00024 00025 VOID NTAPI 00026 HalInitializeProcessor(ULONG ProcessorNumber, 00027 PLOADER_PARAMETER_BLOCK LoaderBlock) 00028 { 00029 DPRINT("HalInitializeProcessor(%lu %p)\n", ProcessorNumber, LoaderBlock); 00030 KeGetPcr()->StallScaleFactor = INITIAL_STALL_COUNT; 00031 } 00032 00033 BOOLEAN NTAPI 00034 HalAllProcessorsStarted (VOID) 00035 { 00036 DPRINT("HalAllProcessorsStarted()\n"); 00037 00038 return TRUE; 00039 } 00040 00041 NTHALAPI 00042 BOOLEAN 00043 NTAPI 00044 HalStartNextProcessor( 00045 IN struct _LOADER_PARAMETER_BLOCK *LoaderBlock, 00046 IN PKPROCESSOR_STATE ProcessorState 00047 ) 00048 { 00049 DPRINT("HalStartNextProcessor(0x%lx 0x%lx)\n", LoaderBlock, ProcessorState); 00050 00051 return TRUE; 00052 } 00053 00054 /* 00055 * @implemented 00056 */ 00057 VOID 00058 NTAPI 00059 HalProcessorIdle(VOID) 00060 { 00061 /* Enable interrupts and halt the processor */ 00062 _enable(); 00063 } 00064 00065 /* 00066 * @implemented 00067 */ 00068 VOID 00069 NTAPI 00070 HalRequestIpi(ULONG Reserved) 00071 { 00072 /* Not implemented on NT */ 00073 __debugbreak(); 00074 } 00075 00076 /* EOF */ Generated on Sat May 26 2012 04:21:05 for ReactOS by
1.7.6.1
|