Changeset 0c2d9bb in mainline for kernel/generic/include/macros.h
- Timestamp:
- 2013-12-25T22:54:29Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b51cf2c
- Parents:
- f7a33de (diff), ac36aed (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/macros.h
rf7a33de r0c2d9bb 117 117 overlaps(KA2PA((x)), (szx), KA2PA((y)), (szy)) 118 118 119 #define PFN2ADDR(frame) ((frame) << FRAME_WIDTH) 120 #define ADDR2PFN(addr) ((addr) >> FRAME_WIDTH) 121 122 #define FRAMES2SIZE(frames) ((frames) << FRAME_WIDTH) 123 #define SIZE2FRAMES(size) \ 124 (((size) == 0) ? 0 : ((((size) - 1) >> FRAME_WIDTH) + 1)) 125 119 126 #define KiB2SIZE(kb) ((kb) << 10) 120 127 #define MiB2SIZE(mb) ((mb) << 20)
Note:
See TracChangeset
for help on using the changeset viewer.