Changeset 74df77d in mainline for arch/ia32/src/mm/page.c


Ignore:
Timestamp:
2005-06-10T16:18:43Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
87cd61f
Parents:
18e0a6c
Message:

Add map_structure() to automate mapping of memory structures that can span multiple pages and/or cross page boundaries.
Change ACPI map_sdt() to use map_structure().

Small changes in MPS code.
The extra frame allocation for accessing frame 0 is unnecessary as it is possible to access frame 0 from kernel address space.
Zero TSS descriptor in the newly prepared GDT.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/mm/page.c

    r18e0a6c r74df77d  
    6161
    6262                /*
    63                  * Identity mapping for all but 0th page.
    64                  * PA2KA(identity) mapping for all but 0th page.
     63                 * Identity mapping for all frames.
     64                 * PA2KA(identity) mapping for all frames.
    6565                 */
    66                 for (i = 1; i < frames; i++) {
     66                for (i = 0; i < frames; i++) {
    6767                        map_page_to_frame(i * PAGE_SIZE, i * PAGE_SIZE, PAGE_CACHEABLE, KA2PA(dba));
    6868                        map_page_to_frame(PA2KA(i * PAGE_SIZE), i * PAGE_SIZE, PAGE_CACHEABLE, KA2PA(dba));
Note: See TracChangeset for help on using the changeset viewer.