Changeset 71eef11 in mainline for kernel/generic/include/macros.h


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/generic/include/macros.h

    r1b067315 r71eef11  
    6767#define PA_overlaps(x, szx, y, szy)     overlaps(KA2PA(x), szx, KA2PA(y), szy)
    6868
     69#define SIZE2KB(size) (size >> 10)
     70#define SIZE2MB(size) (size >> 20)
     71
    6972#define STRING(arg) STRING_ARG(arg)
    7073#define STRING_ARG(arg) #arg
Note: See TracChangeset for help on using the changeset viewer.