Go to the source code of this file.
◆ HALP_APIC_INFO_TABLE_IOAPIC_NUMBER
| #define HALP_APIC_INFO_TABLE_IOAPIC_NUMBER 256 |
Definition at line 23 of file smp.h.
◆ HALP_APIC_MODE_LEGACY
| #define HALP_APIC_MODE_LEGACY 0x00000010 |
Definition at line 40 of file smp.h.
◆ HALP_ISA_IRQ_COUNT
Definition at line 24 of file smp.h.
◆ HALP_APIC_INFO_TABLE
◆ PHALP_APIC_INFO_TABLE
◆ PPROCESSOR_IDENTITY
◆ PROCESSOR_IDENTITY
◆ ApicStartApplicationProcessor()
Definition at line 107 of file apicsmp.c.
110{
112
113 ASSERT(StartupLoc.HighPart == 0);
114 ASSERT((StartupLoc.QuadPart & 0xFFF) == 0);
115 ASSERT((StartupLoc.QuadPart & 0xFFF00FFF) == 0);
116
117
120
121
124
125
127
128
131 {
132
135
136
138
139
142
143
145 }
146}
FORCEINLINE ULONG ApicRead(APIC_REGISTER Register)
FORCEINLINE VOID ApicRequestGlobalInterrupt(_In_ UCHAR DestinationProcessor, _In_ UCHAR Vector, _In_ APIC_MT MessageType, _In_ APIC_TGM TriggerMode, _In_ APIC_DSH DestinationShortHand)
PROCESSOR_IDENTITY HalpProcessorIdentity[MAXIMUM_PROCESSORS]
#define KeStallExecutionProcessor(MicroSeconds)
Referenced by HalStartNextProcessor().
◆ HalpBroadcastClockIpi()
◆ HalpBroadcastIpiSpecifyVector()
Broadcasts an IPI with a specified vector to all processors.
- Parameters
-
| Vector | - Specifies the interrupt vector to be delivered. |
| IncludeSelf | - Specifies whether to include the current processor. |
Definition at line 158 of file apicsmp.c.
161{
162 APIC_DSH DestinationShortHand = IncludeSelf ?
164
165
170 DestinationShortHand);
171}
@ APIC_DSH_AllIncludingSelf
@ APIC_DSH_AllExcludingSelf
Referenced by HalpBroadcastClockIpi(), and HalRequestIpiSpecifyVector().
◆ HalpParseApicTables()
Definition at line 295 of file madt.c.
297{
299
301 if (MadtTable && (MadtTable->
Header.
Length >=
sizeof(*MadtTable)))
302 {
305 }
306 else
307 {
309 }
310
312}
PVOID NTAPI HalAcpiGetTable(IN PLOADER_PARAMETER_BLOCK LoaderBlock, IN ULONG Signature)
static VOID HalpMadtParseEntries(_In_ ACPI_TABLE_MADT *MadtTable)
Walks the interrupt controller entries of the MADT.
static BOOLEAN HalpMadtTruncated
static VOID HalpMadtPlaceBootProcessor(VOID)
Moves the boot processor to the first entry, since NT processor numbers follow the entry order.
HALP_APIC_INFO_TABLE HalpApicInfoTable
Referenced by HalpInitProcessor().
◆ HalpPrintApicTables()
Definition at line 315 of file madt.c.
316{
317#if DBG
319
322 {
323 DPRINT1(
" Processor %lu: ProcessorId %u, LapicId %u, ProcessorStarted %u, BSPCheck %u, ProcessorPrcb %p\n",
330 }
331
333 {
335 {
336 DPRINT1(
" I/O APIC %lu: Address 0x%08lx, GlobalIrqBase %lu\n",
340 }
341 }
342
344 {
345 DPRINT1(
"MADT missing or malformed: %u, entries ignored: %lu\n",
348 }
349#endif
350}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static ULONG HalpMadtIgnoredEntries
#define HALP_APIC_INFO_TABLE_IOAPIC_NUMBER
ULONG IoApicPA[HALP_APIC_INFO_TABLE_IOAPIC_NUMBER]
ULONG IoApicIrqBase[HALP_APIC_INFO_TABLE_IOAPIC_NUMBER]
Referenced by HalpInitPhase0().
◆ HalpRequestIpi()
Requests an IPI interrupt on the specified processors.
- Parameters
-
| TargetSet | - Specifies the set of processors to send the IPI to. |
Definition at line 237 of file apicsmp.c.
239{
240
242}
VOID NTAPI HalRequestIpiSpecifyVector(_In_ KAFFINITY TargetSet, _In_ UCHAR Vector)
Requests an IPI with a specified vector on the specified processors.
Referenced by HalRequestIpi().
◆ HalpSetupProcessorsTable()
◆ HalRequestIpiSpecifyVector()
Requests an IPI with a specified vector on the specified processors.
- Parameters
-
| TargetSet | - Specifies the set of processors to send the IPI to. |
| Vector | - Specifies the interrupt vector to be delivered. |
Definition at line 183 of file apicsmp.c.
186{
189 ULONG ProcessorIndex;
191
192
193 TargetSet &= ActiveProcessors;
194
195
196 if (TargetSet == ActiveProcessors)
197 {
198
200 return;
201 }
202
203
205 {
206
208 return;
209 }
210
211
212 RemainingSet = TargetSet;
213 while (RemainingSet != 0)
214 {
218 RemainingSet &= ~SetMember;
219
220
227 }
228}
VOID NTAPI HalpBroadcastIpiSpecifyVector(_In_ UCHAR Vector, _In_ BOOLEAN IncludeSelf)
Broadcasts an IPI with a specified vector to all processors.
KAFFINITY HalpActiveProcessors
FORCEINLINE struct _KPRCB * KeGetCurrentPrcb(VOID)
FORCEINLINE KAFFINITY AFFINITY_MASK(ULONG Index)
FORCEINLINE BOOLEAN BitScanForwardAffinity(PULONG Index, KAFFINITY Mask)
Referenced by HalpRequestIpi().
◆ HalpProcessorIdentity