Changeset e49e234 in mainline for kernel/generic/include/align.h


Ignore:
Timestamp:
2009-02-27T11:32:31Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1f7f6ea
Parents:
5f0f29ce
Message:

kernel memory management revisited (phase 2): map physical memory according to zones

  • ia32: register reserved and ACPI zones
  • pareas are now used only for mapping of present physical memory (hw_area() is gone)
  • firmware zones and physical addresses outside any zones are allowed to be mapped generally
  • fix nasty antient bug in zones_insert_zone()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/align.h

    r5f0f29ce re49e234  
    2727 */
    2828
    29 /** @addtogroup generic 
     29/** @addtogroup generic
    3030 * @ingroup others
    3131 * @{
     
    3333/**
    3434 * @file
    35  * @brief       Macros for making values and addresses aligned.
     35 * @brief Macros for making values and addresses aligned.
    3636 */
    3737
     
    4444 * @param a Size of alignment, must be power of 2.
    4545 */
    46 #define ALIGN_DOWN(s, a)        ((s) & ~((a) - 1))
     46#define ALIGN_DOWN(s, a)  ((s) & ~((a) - 1))
    4747
    4848
     
    5252 * @param a Size of alignment, must be power of 2.
    5353 */
    54 #define ALIGN_UP(s, a)          (((s) + ((a) - 1)) & ~((a) - 1))
     54#define ALIGN_UP(s, a)  (((s) + ((a) - 1)) & ~((a) - 1))
    5555
    5656#endif
Note: See TracChangeset for help on using the changeset viewer.