Ignore:
Timestamp:
Aug 29, 2017, 12:03:37 PM (4 years ago)
Author:
alain
Message:

This version executed successfully the user "init" process on a mono-processor TSAR architecture.

File:
1 edited

Legend:

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

    r389 r406  
    109109
    110110#if CONFIG_CLUSTER_DEBUG
    111 #define cluster_dmsg(...)   printk(__VA_ARGS__)
     111#define cluster_dmsg(...)   if(hal_time_stamp() > CONFIG_CLUSTER_DEBUG) printk(__VA_ARGS__)
    112112#else
    113113#define cluster_dmsg(...)
     
    115115
    116116#if CONFIG_CONTEXT_DEBUG
    117 #define context_dmsg(...)   printk(__VA_ARGS__)
     117#define context_dmsg(...)   if(hal_time_stamp() > CONFIG_CONTEXT_DEBUG) printk(__VA_ARGS__)
    118118#else
    119119#define context_dmsg(...)
     
    121121
    122122#if CONFIG_CORE_DEBUG
    123 #define core_dmsg(...)   printk(__VA_ARGS__)
     123#define core_dmsg(...)   if(hal_time_stamp() > CONFIG_CORE_DEBUG) printk(__VA_ARGS__)
    124124#else
    125125#define core_dmsg(...)
     
    127127
    128128#if CONFIG_DEVFS_DEBUG
    129 #define devfs_dmsg(...)   printk(__VA_ARGS__)
     129#define devfs_dmsg(...)   if(hal_time_stamp() > CONFIG_DEVFS_DEBUG) printk(__VA_ARGS__)
    130130#else
    131131#define devfs_dmsg(...)
     
    133133
    134134#if CONFIG_DMA_DEBUG
    135 #define dma_dmsg(...)   printk(__VA_ARGS__)
     135#define dma_dmsg(...)   if(hal_time_stamp() > CONFIG_DMA_DEBUG) printk(__VA_ARGS__)
    136136#else
    137137#define dma_dmsg(...)
     
    139139
    140140#if CONFIG_DQDT_DEBUG
    141 #define dma_dmsg(...)   printk(__VA_ARGS__)
    142 #else
    143 #define dma_dmsg(...)
    144 #endif
    145 
    146 #if CONFIG_DQDT_DEBUG
    147 #define dqdt_dmsg(...)   printk(__VA_ARGS__)
     141#define dqdt_dmsg(...)   if(hal_time_stamp() > CONFIG_DQDT_DEBUG) printk(__VA_ARGS__)
    148142#else
    149143#define dqdt_dmsg(...)
     
    151145
    152146#if CONFIG_ELF_DEBUG
    153 #define elf_dmsg(...)   printk(__VA_ARGS__)
     147#define elf_dmsg(...)   if(hal_time_stamp() > CONFIG_ELF_DEBUG) printk(__VA_ARGS__)
    154148#else
    155149#define elf_dmsg(...)
     
    157151
    158152#if CONFIG_EXEC_DEBUG
    159 #define exec_dmsg(...)   printk(__VA_ARGS__)
     153#define exec_dmsg(...)   if(hal_time_stamp() > CONFIG_EXEC_DEBUG) printk(__VA_ARGS__)
    160154#else
    161155#define exec_dmsg(...)
    162156#endif
    163157
     158#if CONFIG_EXCP_DEBUG
     159#define excp_dmsg(...)   if(hal_time_stamp() > CONFIG_EXCP_DEBUG) printk(__VA_ARGS__)
     160#else
     161#define excp_dmsg(...)
     162#endif
     163
    164164#if CONFIG_FATFS_DEBUG
    165 #define fatfs_dmsg(...)   printk(__VA_ARGS__)
     165#define fatfs_dmsg(...)   if(hal_time_stamp() > CONFIG_FATFS_DEBUG) printk(__VA_ARGS__)
    166166#else
    167167#define fatfs_dmsg(...)
     
    169169
    170170#if CONFIG_FBF_DEBUG
    171 #define fbf_dmsg(...)   printk(__VA_ARGS__)
     171#define fbf_dmsg(...)   if(hal_time_stamp() > CONFIG_FBF_DEBUG) printk(__VA_ARGS__)
    172172#else
    173173#define fbf_dmsg(...)
     
    175175
    176176#if CONFIG_FORK_DEBUG
    177 #define fork_dmsg(...)   printk(__VA_ARGS__)
     177#define fork_dmsg(...)   if(hal_time_stamp() > CONFIG_FORK_DEBUG) printk(__VA_ARGS__)
    178178#else
    179179#define fork_dmsg(...)
    180180#endif
    181181
     182#if CONFIG_GPT_DEBUG
     183#define gpt_dmsg(...)   if(hal_time_stamp() > CONFIG_GPT_DEBUG) printk(__VA_ARGS__)
     184#else
     185#define gpt_dmsg(...)
     186#endif
     187
    182188#if CONFIG_IDLE_DEBUG
    183 #define idle_dmsg(...) printk(__VA_ARGS__)
     189#define idle_dmsg(...)   if(hal_time_stamp() > CONFIG_IDLE_DEBUG) printk(__VA_ARGS__)
    184190#else
    185191#define idle_dmsg(...)
     
    193199
    194200#if CONFIG_IRQ_DEBUG
    195 #define irq_dmsg(...)   printk(__VA_ARGS__)
     201#define irq_dmsg(...)   if(hal_time_stamp() > CONFIG_IRQ_DEBUG) printk(__VA_ARGS__)
    196202#else
    197203#define irq_dmsg(...)
     
    199205
    200206#if CONFIG_KCM_DEBUG
    201 #define kcm_dmsg(...) printk(__VA_ARGS__)
     207#define kcm_dmsg(...)   if(hal_time_stamp() > CONFIG_KCM_DEBUG) printk(__VA_ARGS__)
    202208#else
    203209#define kcm_dmsg(...)
     
    205211
    206212#if CONFIG_KHM_DEBUG
    207 #define khm_dmsg(...) printk(__VA_ARGS__)
     213#define khm_dmsg(...)   if(hal_time_stamp() > CONFIG_KHM_DEBUG) printk(__VA_ARGS__)
    208214#else
    209215#define khm_dmsg(...)
     
    211217
    212218#if CONFIG_KINIT_DEBUG
    213 #define kinit_dmsg(...) printk(__VA_ARGS__)
     219#define kinit_dmsg(...)   if(hal_time_stamp() > CONFIG_KINIT_DEBUG) printk(__VA_ARGS__)
    214220#else
    215221#define kinit_dmsg(...)
     
    217223
    218224#if CONFIG_KMEM_DEBUG
    219 #define kmem_dmsg(...) printk(__VA_ARGS__)
     225#define kmem_dmsg(...)   if(hal_time_stamp() > CONFIG_KMEM_DEBUG) printk(__VA_ARGS__)
    220226#else
    221227#define kmem_dmsg(...)
     
    223229
    224230#if CONFIG_MAPPER_DEBUG
    225 #define mapper_dmsg(...)   printk(__VA_ARGS__)
     231#define mapper_dmsg(...)   if(hal_time_stamp() > CONFIG_MAPPER_DEBUG) printk(__VA_ARGS__)
    226232#else
    227233#define mapper_dmsg(...)
     
    229235
    230236#if CONFIG_MMC_DEBUG
    231 #define mmc_dmsg(...)   printk(__VA_ARGS__)
     237#define mmc_dmsg(...)   if(hal_time_stamp() > CONFIG_MMC_DEBUG) printk(__VA_ARGS__)
    232238#else
    233239#define mmc_dmsg(...)
     
    235241
    236242#if CONFIG_NIC_DEBUG
    237 #define nic_dmsg(...)   printk(__VA_ARGS__)
     243#define nic_dmsg(...)   if(hal_time_stamp() > CONFIG_NIC_DEBUG) printk(__VA_ARGS__)
    238244#else
    239245#define nic_dmsg(...)
     
    241247
    242248#if CONFIG_PIC_DEBUG
    243 #define pic_dmsg(...)   printk(__VA_ARGS__)
     249#define pic_dmsg(...)   if(hal_time_stamp() > CONFIG_PIC_DEBUG) printk(__VA_ARGS__)
    244250#else
    245251#define pic_dmsg(...)
     
    247253
    248254#if CONFIG_PPM_DEBUG
    249 #define ppm_dmsg(...)   printk(__VA_ARGS__)
     255#define ppm_dmsg(...)   if(hal_time_stamp() > CONFIG_PPM_DEBUG) printk(__VA_ARGS__)
    250256#else
    251257#define ppm_dmsg(...)
     
    253259
    254260#if CONFIG_PROCESS_DEBUG
    255 #define process_dmsg(...)   printk(__VA_ARGS__)
     261#define process_dmsg(...)   if(hal_time_stamp() > CONFIG_PROCESS_DEBUG) printk(__VA_ARGS__)
    256262#else
    257263#define process_dmsg(...)
     
    264270#endif
    265271
    266 #if CONFIG_RPCG_DEBUG
    267 #define rpcg_dmsg(...)   printk(__VA_ARGS__)
    268 #else
    269 #define rpcg_dmsg(...)
    270 #endif
    271 
    272272#if CONFIG_SCHED_DEBUG
    273 #define sched_dmsg(...)   printk(__VA_ARGS__)
     273#define sched_dmsg(...)   if(hal_time_stamp() > CONFIG_SCHED_DEBUG) printk(__VA_ARGS__)
    274274#else
    275275#define sched_dmsg(...)
     
    277277
    278278#if CONFIG_SIGNAL_DEBUG
    279 #define signal_dmsg(...)   printk(__VA_ARGS__)
     279#define signal_dmsg(...)   if(hal_time_stamp() > CONFIG_SIGNAL_DEBUG) printk(__VA_ARGS__)
    280280#else
    281281#define signal_dmsg(...)
     
    283283
    284284#if CONFIG_SYSCALL_DEBUG
    285 #define syscall_dmsg(...)   printk(__VA_ARGS__)
     285#define syscall_dmsg(...)   if(hal_time_stamp() > CONFIG_SYSCALL_DEBUG) printk(__VA_ARGS__)
    286286#else
    287287#define syscall_dmsg(...)
     
    289289
    290290#if CONFIG_THREAD_DEBUG
    291 #define thread_dmsg(...)   printk(__VA_ARGS__)
     291#define thread_dmsg(...)   if(hal_time_stamp() > CONFIG_THREAD_DEBUG) printk(__VA_ARGS__)
    292292#else
    293293#define thread_dmsg(...)
     
    295295
    296296#if CONFIG_TXT_DEBUG
    297 #define txt_dmsg(...)   printk(__VA_ARGS__)
     297#define txt_dmsg(...)   if(hal_time_stamp() > CONFIG_TXT_DEBUG) printk(__VA_ARGS__)
    298298#else
    299299#define txt_dmsg(...)
     
    307307
    308308#if CONFIG_VMM_DEBUG
    309 #define vmm_dmsg(...)   printk(__VA_ARGS__)
     309#define vmm_dmsg(...)   if(hal_time_stamp() > CONFIG_VMM_DEBUG) printk(__VA_ARGS__)
    310310#else
    311311#define vmm_dmsg(...)
Note: See TracChangeset for help on using the changeset viewer.