Home |
RTTarget-32 Programming Manual System Management BIOS (SMBIOS) Advanced Programmable Interrupt Controller (APIC) Function RTMPTableCPUEx Function RTMPTablePCIInterrupt |
Function RTMPTableCPUExRTMPTableCPU adds a CPU record to the custom MP Floating Pointer Structure previously created with RTMPTableCreate. UINT RTMPTableCPUEx(BYTE LocalApicID, BYTE Flags); ParametersLocalApicIDID of the local APIC of the CPU to add. Flags1 if the CPU is operational and should be used or 0 if the CPU is disabled or should not be used. return valueZero if the table's size is exhausted or a value greater zero on success. This function must be called for each physical or logical CPU in the system. If the CPU contains several logical CPUs (Hyperthreads or cores) and RTMPTableCreate flag RT_MP_LCPUS has not been specified, only one call to RTMPTableCPU is required. The given local APIC ID must be the actual ID of the first logical CPU of the physical CPU. Please note that this function must also be called for all disabled CPUs with parameter Flags set to zero. This is required to inform RTTarget-32 about APIC Ids which exist but should not be used. Usually, the local APIC ID is n*L where n is the zero-based index of the physical CPU and L is the number of logical CPUs within each physical CPU rounded up to the next power of two. For example, these entries are required for a system with 2 CPU sockets, each equipped with a quad-core CPU (2 physical CPUs with 4 logical CPUs each): RTMPTableCPUEx(0, 1); // first CPU RTMPTableCPUEx(4, 1); // second CPU
|