Changeset ed0dd65 in mainline for arch/ia32/src/acpi/acpi.c


Ignore:
Timestamp:
2005-04-30T16:47:17Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
30ef8ce
Parents:
10a2e22
Message:

More ACPI work.
Initial MADT table parsing.

SMP renaming and reorganization to reflect there are more ways to bring SMP up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/acpi/acpi.c

    r10a2e22 red0dd65  
    7979void map_sdt(struct acpi_sdt_header *sdt)
    8080{
     81        int i, cnt, length;
     82
    8183        map_page_to_frame((__address) sdt, (__address) sdt, PAGE_NOT_CACHEABLE, 0);
     84       
     85        length = sdt->length + ((__address) sdt) - ((__address) sdt)&0xfffff000;
     86        cnt = length/PAGE_SIZE + (length%PAGE_SIZE>0);
     87       
     88        for (i = 1; i < cnt; i++)
     89                map_page_to_frame(((__address) sdt) + i*PAGE_SIZE, ((__address) sdt) + i*PAGE_SIZE, PAGE_NOT_CACHEABLE, 0);
    8290}
    8391
Note: See TracChangeset for help on using the changeset viewer.