Subversion Repositories HelenOS

Rev

Rev 310 | Rev 331 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 310 Rev 311
Line 110... Line 110...
110
 
110
 
111
void acpi_madt_parse(void)
111
void acpi_madt_parse(void)
112
{
112
{
113
    struct madt_apic_header *end = (struct madt_apic_header *) (((__u8 *) acpi_madt) + acpi_madt->header.length);
113
    struct madt_apic_header *end = (struct madt_apic_header *) (((__u8 *) acpi_madt) + acpi_madt->header.length);
114
    struct madt_apic_header *h;
114
    struct madt_apic_header *h;
-
 
115
   
-
 
116
        l_apic = (__u32 *) (__native) acpi_madt->l_apic_address;
115
 
117
 
116
    /* calculate madt entries */
118
    /* calculate madt entries */
117
    for (h = &acpi_madt->apic_header[0]; h < end; h = (struct madt_apic_header *) (((__u8 *) h) + h->length)) {
119
    for (h = &acpi_madt->apic_header[0]; h < end; h = (struct madt_apic_header *) (((__u8 *) h) + h->length)) {
118
        madt_entries_index_cnt++;
120
        madt_entries_index_cnt++;
119
    }
121
    }
Line 202... Line 204...
202
void madt_io_apic_entry(struct madt_io_apic *ioa, __u32 index)
204
void madt_io_apic_entry(struct madt_io_apic *ioa, __u32 index)
203
{
205
{
204
    if (!madt_io_apic_entry_cnt++) {
206
    if (!madt_io_apic_entry_cnt++) {
205
        /* remember index of the first io apic entry */
207
        /* remember index of the first io apic entry */
206
        madt_io_apic_entry_index = index;
208
        madt_io_apic_entry_index = index;
207
        /* ????!!!! */
-
 
208
        io_apic = (__u32 *) (__native) ioa->io_apic_address;
209
        io_apic = (__u32 *) (__native) ioa->io_apic_address;
209
    } else {
210
    } else {
210
        /* currently not supported */
211
        /* currently not supported */
211
        return;
212
        return;
212
    }
213
    }