Changeset 246 for trunk/kernel/kern
- Timestamp:
- Jul 20, 2017, 12:55:23 PM (7 years ago)
- Location:
- trunk/kernel/kern
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/kernel_init.c
r204 r246 100 100 // This variable contains the input IRQ indexes for the IOPIC controller 101 101 __attribute__((section(".kdata"))) 102 iopic_input_t 102 iopic_input_t iopic_input CONFIG_CACHE_LINE_ALIGNED; 103 103 104 104 // This variable contains the input IRQ indexes for the LAPIC controller … … 862 862 // 1. create FATFS context in cluster 0 863 863 fatfs_ctx_t * fatfs_ctx = fatfs_ctx_alloc(); 864 865 printk("\n@@@ %s extend = %x\n", __FUNCTION__ , fatfs_ctx ); 864 866 865 867 nolock_assert( (fatfs_ctx != NULL) , __FUNCTION__ , … … 902 904 hal_core_sleep(); 903 905 } 906 907 ///////////////////////////////@@@ 908 fatfs_ctx_display(); 909 ///////////////////////////////@@@ 904 910 905 911 // register VFS root inode in process_zero -
trunk/kernel/kern/printk.c
r188 r246 129 129 case ('l'): // 64 bits hexadecimal 130 130 { 131 uint32_t 131 uint32_t imax; 132 132 uint64_t val; 133 133 … … 153 153 len = i + 1; 154 154 pbuf = &buf[(imax-1) - i]; 155 break; 156 } 157 case ('X'): // 32 bits hexadecimal on 8 characters 158 { 159 uint32_t val = va_arg( args , uint32_t ); 160 for(i = 0; i < 8; i++) 161 { 162 buf[7 - i] = HexaTab[val % 16]; 163 val = (val>>4); 164 } 165 len = 8; 166 pbuf = buf; 155 167 break; 156 168 }
Note: See TracChangeset
for help on using the changeset viewer.