Ignore:
Timestamp:
Jun 29, 2017, 6:22:27 PM (5 years ago)
Author:
alain
Message:

Introducing a nolock_printk() function used by kernel_init.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/printk.h

    r50 r103  
    6767 * This function displays a formated string on the kernel terminal TXT0,
    6868 * using a busy waiting policy: It calls directly the relevant TXT driver,
    69  * after taking the TXT0 chdev lock for exclusive access to the TXT0 terminal.
     69 * after taking the lock for exclusive access to the TXT0 terminal.
    7070 **********************************************************************************
    7171 * @ format     : formated string.
    7272 *********************************************************************************/
    73 void         printk( char* format, ... );
     73void printk( char* format, ... );
    7474
    7575/**********************************************************************************
    76  * Display a formated string on the calling thread private terminal, using a
    77  * descheduling policy: it register the request in the selected TXT chdev waiting
    78  * queue and deschedule. IT is reactivated by the IRQ signaling completion.
    79  * Not fully implemented yet ( use TXT0 in deschedling mode ).
     76 * This function displays a formated string on the kernel terminal TXT0,
     77 * using a busy waiting policy: It calls directly the relevant TXT driver,
     78 * without taking the the lock protecting exclusive access to TXT0 terminal.
    8079 **********************************************************************************
    8180 * @ format     : formated string.
    8281 *********************************************************************************/
    83 void         user_printk( char* format, ... );
     82void nolock_printk( char* format, ... );
    8483
    8584/**********************************************************************************
     
    203202
    204203#if CONFIG_KINIT_DEBUG
    205 #define kinit_dmsg(...) printk(__VA_ARGS__)
     204#define kinit_dmsg(...) nolock_printk(__VA_ARGS__)
    206205#else
    207206#define kinit_dmsg(...)
Note: See TracChangeset for help on using the changeset viewer.