Changeset 04803bf in mainline for kernel/generic/src/printf/vprintf.c


Ignore:
Timestamp:
2011-03-21T22:00:17Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
143932e3
Parents:
b50b5af2 (diff), 7308e84 (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.
Message:

Merge mainline changes (needs fixes).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/printf/vprintf.c

    rb50b5af2 r04803bf  
    3838#include <synch/spinlock.h>
    3939#include <arch/asm.h>
    40 #include <arch/types.h>
    4140#include <typedefs.h>
    42 #include <string.h>
     41#include <typedefs.h>
     42#include <str.h>
    4343
    44 SPINLOCK_STATIC_INITIALIZE_NAME(printf_lock, "*printf_lock");
     44IRQ_SPINLOCK_STATIC_INITIALIZE_NAME(printf_lock, "*printf_lock");
    4545
    4646static int vprintf_str_write(const char *str, size_t size, void *data)
     
    9393        };
    9494       
    95         ipl_t ipl = interrupts_disable();
    96         spinlock_lock(&printf_lock);
    97        
     95        irq_spinlock_lock(&printf_lock, true);
    9896        int ret = printf_core(fmt, &ps, ap);
    99        
    100         spinlock_unlock(&printf_lock);
    101         interrupts_restore(ipl);
     97        irq_spinlock_unlock(&printf_lock, true);
    10298       
    10399        return ret;
Note: See TracChangeset for help on using the changeset viewer.