Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/riscv64/src/mm/frame.c

    rccc362a1 ra35b458  
    5656        pfn_t minconf =
    5757            max3(ADDR2PFN(physmem_start), htif_frame + 1, pt_frame + 1);
    58        
     58
    5959        for (size_t i = 0; i < memmap.cnt; i++) {
    6060                /* To be safe, make the available zone possibly smaller */
     
    6363                size_t size = ALIGN_DOWN(memmap.zones[i].size -
    6464                    (base - ((uintptr_t) memmap.zones[i].start)), FRAME_SIZE);
    65                
     65
    6666                if (!frame_adjust_zone_bounds(low, &base, &size))
    6767                        return;
    68                
     68
    6969                pfn_t pfn = ADDR2PFN(base);
    7070                size_t count = SIZE2FRAMES(size);
    7171                pfn_t conf;
    72                
     72
    7373                if (low) {
    7474                        if ((minconf < pfn) || (minconf >= pfn + count))
     
    7676                        else
    7777                                conf = minconf;
    78                        
     78
    7979                        zone_create(pfn, count, conf,
    8080                            ZONE_AVAILABLE | ZONE_LOWMEM);
     
    9191{
    9292        frame_common_arch_init(true);
    93        
     93
    9494        frame_mark_unavailable(htif_frame, 1);
    9595        frame_mark_unavailable(pt_frame, 1);
Note: See TracChangeset for help on using the changeset viewer.