Changeset 71eef11 in mainline for kernel/arch/mips32/src/drivers/arc.c


Ignore:
Timestamp:
2008-02-06T14:24:13Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7208b6c
Parents:
1b067315
Message:

remove config.memory_size, get_memory_size() and memory_init.{c|d}
the amount of available memory can be calculated from the sizes of the zones
add FRAMES2SIZE, SIZE2KB and SIZE2MB functions/macros (code readability)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/drivers/arc.c

    r1b067315 r71eef11  
    221221                }       
    222222        } else
    223                 printf("%#10x %#10x free\n", 0, config.memory_size);
     223                printf("%#10x %#10x free\n", 0, CONFIG_MEMORY_SIZE);
    224224}
    225225
     
    363363        if (arc_enabled()) {
    364364                arc_memdescriptor_t *desc;
    365                 int total = 0;
    366365                uintptr_t base;
    367366                size_t basesize;
     
    380379                                basesize = ALIGN_DOWN(basesize, FRAME_SIZE);
    381380       
    382                                 total += basesize;
    383                                
    384381                                zone_create(ADDR2PFN(base), SIZE2FRAMES(basesize),
    385382                                            ADDR2PFN(base), 0);
     
    388385                }
    389386       
    390                 config.memory_size = total;
    391387                return true;
    392388        }
Note: See TracChangeset for help on using the changeset viewer.