Changes in kernel/arch/ia32/src/smp/mps.c [b2fa1204:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/smp/mps.c
rb2fa1204 r9d58539 36 36 37 37 #include <config.h> 38 #include < log.h>38 #include <print.h> 39 39 #include <debug.h> 40 40 #include <arch/smp/mps.h> … … 181 181 buf[6] = 0; 182 182 183 log(LF_ARCH, LVL_DEBUG, "MPS: bus=%" PRIu8 " (%s)", bus->bus_id, buf);183 printf("MPS: bus=%" PRIu8 " (%s)\n", bus->bus_id, buf); 184 184 #endif 185 185 } … … 205 205 { 206 206 #ifdef MPSCT_VERBOSE 207 log_begin(LF_ARCH, LVL_DEBUG); 208 log_printf("MPS: "); 207 printf("MPS: "); 209 208 210 209 switch (iointr->intr_type) { 211 210 case 0: 212 log_printf("INT");213 break; 214 case 1: 215 log_printf("NMI");216 break; 217 case 2: 218 log_printf("SMI");219 break; 220 case 3: 221 log_printf("ExtINT");222 break; 223 } 224 225 log_printf(", ");211 printf("INT"); 212 break; 213 case 1: 214 printf("NMI"); 215 break; 216 case 2: 217 printf("SMI"); 218 break; 219 case 3: 220 printf("ExtINT"); 221 break; 222 } 223 224 printf(", "); 226 225 227 226 switch (iointr->poel & 3) { 228 227 case 0: 229 log_printf("bus-like");230 break; 231 case 1: 232 log_printf("active high");233 break; 234 case 2: 235 log_printf("reserved");236 break; 237 case 3: 238 log_printf("active low");239 break; 240 } 241 242 log_printf(", ");228 printf("bus-like"); 229 break; 230 case 1: 231 printf("active high"); 232 break; 233 case 2: 234 printf("reserved"); 235 break; 236 case 3: 237 printf("active low"); 238 break; 239 } 240 241 printf(", "); 243 242 244 243 switch ((iointr->poel >> 2) & 3) { 245 244 case 0: 246 log_printf("bus-like");247 break; 248 case 1: 249 log_printf("edge-triggered");250 break; 251 case 2: 252 log_printf("reserved");253 break; 254 case 3: 255 log_printf("level-triggered");256 break; 257 } 258 259 log_printf(", bus=%" PRIu8 " irq=%" PRIu8 " io_apic=%" PRIu8" pin=%"260 PRIu8 , iointr->src_bus_id, iointr->src_bus_irq,245 printf("bus-like"); 246 break; 247 case 1: 248 printf("edge-triggered"); 249 break; 250 case 2: 251 printf("reserved"); 252 break; 253 case 3: 254 printf("level-triggered"); 255 break; 256 } 257 258 printf(", bus=%" PRIu8 " irq=%" PRIu8 " io_apic=%" PRIu8" pin=%" 259 PRIu8 "\n", iointr->src_bus_id, iointr->src_bus_irq, 261 260 iointr->dst_io_apic_id, iointr->dst_io_apic_pin); 262 log_end();263 261 #endif 264 262 } … … 268 266 { 269 267 #ifdef MPSCT_VERBOSE 270 log_begin(LF_ARCH, LVL_DEBUG); 271 log_printf("MPS: "); 268 printf("MPS: "); 272 269 273 270 switch (lintr->intr_type) { 274 271 case 0: 275 log_printf("INT");276 break; 277 case 1: 278 log_printf("NMI");279 break; 280 case 2: 281 log_printf("SMI");282 break; 283 case 3: 284 log_printf("ExtINT");285 break; 286 } 287 288 log_printf(", ");272 printf("INT"); 273 break; 274 case 1: 275 printf("NMI"); 276 break; 277 case 2: 278 printf("SMI"); 279 break; 280 case 3: 281 printf("ExtINT"); 282 break; 283 } 284 285 printf(", "); 289 286 290 287 switch (lintr->poel & 3) { 291 288 case 0: 292 log_printf("bus-like");293 break; 294 case 1: 295 log_printf("active high");296 break; 297 case 2: 298 log_printf("reserved");299 break; 300 case 3: 301 log_printf("active low");302 break; 303 } 304 305 log_printf(", ");289 printf("bus-like"); 290 break; 291 case 1: 292 printf("active high"); 293 break; 294 case 2: 295 printf("reserved"); 296 break; 297 case 3: 298 printf("active low"); 299 break; 300 } 301 302 printf(", "); 306 303 307 304 switch ((lintr->poel >> 2) & 3) { 308 305 case 0: 309 log_printf("bus-like");310 break; 311 case 1: 312 log_printf("edge-triggered");313 break; 314 case 2: 315 log_printf("reserved");316 break; 317 case 3: 318 log_printf("level-triggered");319 break; 320 } 321 322 log_printf(", bus=%" PRIu8 " irq=%" PRIu8 " l_apic=%" PRIu8" pin=%"323 PRIu8 , lintr->src_bus_id, lintr->src_bus_irq,306 printf("bus-like"); 307 break; 308 case 1: 309 printf("edge-triggered"); 310 break; 311 case 2: 312 printf("reserved"); 313 break; 314 case 3: 315 printf("level-triggered"); 316 break; 317 } 318 319 printf(", bus=%" PRIu8 " irq=%" PRIu8 " l_apic=%" PRIu8" pin=%" 320 PRIu8 "\n", lintr->src_bus_id, lintr->src_bus_irq, 324 321 lintr->dst_l_apic_id, lintr->dst_l_apic_pin); 325 log_end();326 322 #endif 327 323 } … … 336 332 switch (cur[CT_EXT_ENTRY_TYPE]) { 337 333 default: 338 log(LF_ARCH, LVL_NOTE, "MPS: Skipping MP Configuration" 339 " Table extended entry type %" PRIu8, 340 cur[CT_EXT_ENTRY_TYPE]); 334 printf("MPS: Skipping MP Configuration Table extended " 335 "entry type %" PRIu8 "\n", cur[CT_EXT_ENTRY_TYPE]); 341 336 } 342 337 } … … 346 341 { 347 342 if (ct->signature != CT_SIGNATURE) { 348 log(LF_ARCH, LVL_WARN, "MPS: Wrong ct->signature");343 printf("MPS: Wrong ct->signature\n"); 349 344 return; 350 345 } 351 346 352 347 if (!mps_ct_check()) { 353 log(LF_ARCH, LVL_WARN, "MPS: Wrong ct checksum");348 printf("MPS: Wrong ct checksum\n"); 354 349 return; 355 350 } 356 351 357 352 if (ct->oem_table) { 358 log(LF_ARCH, LVL_WARN, "MPS: ct->oem_table not supported");353 printf("MPS: ct->oem_table not supported\n"); 359 354 return; 360 355 } … … 407 402 * Something is wrong. Fallback to UP mode. 408 403 */ 409 log(LF_ARCH, LVL_WARN, "MPS: ct badness %" PRIu8, *cur);404 printf("MPS: ct badness %" PRIu8 "\n", *cur); 410 405 return; 411 406 } … … 423 418 * Not yet implemented. 424 419 */ 425 log(LF_ARCH, LVL_WARN, "MPS: Default configuration not supported");420 printf("MPS: Default configuration not supported\n"); 426 421 } 427 422 … … 454 449 455 450 fs_found: 456 log(LF_ARCH, LVL_NOTE, "%p: MPS Floating Pointer Structure", fs);451 printf("%p: MPS Floating Pointer Structure\n", fs); 457 452 458 453 if ((fs->config_type == 0) && (fs->configuration_table)) { 459 454 if (fs->mpfib2 >> 7) { 460 log(LF_ARCH, LVL_WARN,"MPS: PIC mode not supported\n");455 printf("MPS: PIC mode not supported\n"); 461 456 return; 462 457 }
Note:
See TracChangeset
for help on using the changeset viewer.