Changeset 8be8cfa in mainline


Ignore:
Timestamp:
2007-01-29T17:16:56Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dad5951
Parents:
0b3a78f
Message:

spinlock extern declaration macro

Location:
kernel
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/include/fb/fb.h

    r0b3a78f r8be8cfa  
    3939#include <synch/spinlock.h>
    4040
    41 extern spinlock_t fb_lock;
     41SPINLOCK_EXTERN(fb_lock);
    4242void fb_init(uintptr_t addr, unsigned int x, unsigned int y, unsigned int scan, unsigned int visual);
    4343
  • kernel/generic/include/console/kconsole.h

    r0b3a78f r8be8cfa  
    7070} cmd_info_t;
    7171
    72 extern spinlock_t cmd_lock;
     72SPINLOCK_EXTERN(cmd_lock);
    7373extern link_t cmd_head;
    7474
  • kernel/generic/include/mm/as.h

    r0b3a78f r8be8cfa  
    140140extern as_operations_t *as_operations;
    141141
    142 extern spinlock_t inactive_as_with_asid_lock;
     142SPINLOCK_EXTERN(inactive_as_with_asid_lock);
    143143extern link_t inactive_as_with_asid_head;
    144144
  • kernel/generic/include/mm/asid.h

    r0b3a78f r8be8cfa  
    5959#define ASIDS_ALLOCABLE ((ASID_MAX + 1) - ASID_START)
    6060
    61 extern spinlock_t asidlock;
     61SPINLOCK_EXTERN(asidlock);
    6262extern link_t as_with_asid_head;
    6363
  • kernel/generic/include/print.h

    r0b3a78f r8be8cfa  
    4141
    4242/* We need this address in spinlock to avoid deadlock in deadlock detection */
    43 extern spinlock_t printflock;
     43SPINLOCK_EXTERN(printflock);
    4444
    4545#define EOF (-1)
  • kernel/generic/include/proc/task.h

    r0b3a78f r8be8cfa  
    247247} thread_t;
    248248
    249 extern spinlock_t tasks_lock;
     249SPINLOCK_EXTERN(tasks_lock);
    250250extern btree_t tasks_btree;
    251251
  • kernel/generic/include/proc/thread.h

    r0b3a78f r8be8cfa  
    6161 *
    6262 */
    63 extern spinlock_t threads_lock;
     63SPINLOCK_EXTERN(threads_lock);
    6464
    6565extern btree_t threads_btree;                   /**< B+tree containing all threads. */
  • kernel/generic/include/synch/spinlock.h

    r0b3a78f r8be8cfa  
    5454 */
    5555#define SPINLOCK_DECLARE(slname)        spinlock_t slname
     56#define SPINLOCK_EXTERN(slname)         extern spinlock_t slname
    5657
    5758/*
     
    103104#else
    104105
    105 typedef void spinlock_t;
    106 
    107106/* On UP systems, spinlocks are effectively left out. */
    108107#define SPINLOCK_DECLARE(name)
     108#define SPINLOCK_EXTERN(name)
    109109#define SPINLOCK_INITIALIZE(name)
    110110
Note: See TracChangeset for help on using the changeset viewer.