Changeset dc747e3 in mainline for generic/include/mm/frame.h


Ignore:
Timestamp:
2005-12-15T10:27:59Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7dd2561
Parents:
3fc03fd
Message:

Add SPINLOCK_DECLARE and SPINLOCK_INITIALIZE macros.
SPINLOCK_DECLARE is to be used instead of direct spinlock_t declarations
in dynamically allocated structures on which spinlock_initialize() is called after
their creation.
SPINLOCK_INITIALIZE is to be used instead of direct spinlock_t declarations
of global spinlocks. It declares and initializes the spinlock.
Moreover, both macros are empty on UP so that -Wall warnings about unused structures
get supressed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/include/mm/frame.h

    r3fc03fd rdc747e3  
    5555        link_t link;            /**< link to previous and next zone */
    5656
    57         spinlock_t lock;        /**< this lock protects everything below */
     57        SPINLOCK_DECLARE(lock); /**< this lock protects everything below */
    5858        __address base;         /**< physical address of the first frame in the frames array */
    5959        frame_t *frames;        /**< array of frame_t structures in this zone */
Note: See TracChangeset for help on using the changeset viewer.