Changeset 42744880 in mainline for arch/ia32/src/mm/frame.c


Ignore:
Timestamp:
2006-02-08T22:29:20Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
85dc2e7
Parents:
89298e3
Message:

Convert size_t, count_t and index_t to 64-bits on 64-bit architectures.
Change some pfn_t usages to count_t, size_t and index_t.

File:
1 edited

Legend:

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

    r89298e3 r42744880  
    4242#include <console/kconsole.h>
    4343
    44 
    4544size_t hardcoded_unmapped_ktext_size = 0;
    4645size_t hardcoded_unmapped_kdata_size = 0;
     
    5150{
    5251        int i;
    53         pfn_t start, size,conf;
     52        pfn_t start, conf;
     53        size_t size;
    5454
    5555        for (i = 0; i < e820counter; i++) {
     
    5757                        start = ADDR2PFN(ALIGN_UP(e820table[i].base_address,
    5858                                                  FRAME_SIZE));
    59                         size = SIZE2PFN(ALIGN_DOWN(e820table[i].size,
     59                        size = SIZE2FRAMES(ALIGN_DOWN(e820table[i].size,
    6060                                                   FRAME_SIZE));
    6161                        if (minconf < start || minconf >= start+size)
     
    6363                        else
    6464                                conf = minconf;
    65                         zone_create(start,size, conf, 0);
     65                        zone_create(start, size, conf, 0);
    6666                        if (last_frame < ALIGN_UP(e820table[i].base_address + e820table[i].size, FRAME_SIZE))
    6767                                last_frame = ALIGN_UP(e820table[i].base_address + e820table[i].size, FRAME_SIZE);
Note: See TracChangeset for help on using the changeset viewer.