dbfileio.c (102550) | dbfileio.c (107325) |
---|---|
1/******************************************************************************* 2 * 3 * Module Name: dbfileio - Debugger file I/O commands. These can't usually 4 * be used when running the debugger in Ring 0 (Kernel mode) | 1/******************************************************************************* 2 * 3 * Module Name: dbfileio - Debugger file I/O commands. These can't usually 4 * be used when running the debugger in Ring 0 (Kernel mode) |
5 * $Revision: 68 $ | 5 * $Revision: 69 $ |
6 * 7 ******************************************************************************/ 8 9/****************************************************************************** 10 * 11 * 1. Copyright Notice 12 * 13 * Some or all of this work - Copyright (c) 1999 - 2002, Intel Corp. --- 313 unchanged lines hidden (view full) --- 327 328 ACPI_MEMCPY (*TablePtr, &TableHeader, sizeof (TableHeader)); 329 330 /* Get the rest of the table */ 331 332 Actual = fread (AmlStart, 1, (size_t) AmlLength, fp); 333 if (Actual == AmlLength) 334 { | 6 * 7 ******************************************************************************/ 8 9/****************************************************************************** 10 * 11 * 1. Copyright Notice 12 * 13 * Some or all of this work - Copyright (c) 1999 - 2002, Intel Corp. --- 313 unchanged lines hidden (view full) --- 327 328 ACPI_MEMCPY (*TablePtr, &TableHeader, sizeof (TableHeader)); 329 330 /* Get the rest of the table */ 331 332 Actual = fread (AmlStart, 1, (size_t) AmlLength, fp); 333 if (Actual == AmlLength) 334 { |
335 /* Now validate the checksum */ 336 337 Status = AcpiTbVerifyTableChecksum (*TablePtr); 338 |
|
335 return (AE_OK); 336 } 337 338 if (Actual > 0) 339 { 340 AcpiOsPrintf ("Warning - reading table, asked for %X got %X\n", AmlLength, Actual); 341 return (AE_OK); 342 } --- 72 unchanged lines hidden (view full) --- 415 } 416#endif 417 418 return_ACPI_STATUS (Status); 419} 420 421 422#ifdef ACPI_APPLICATION | 339 return (AE_OK); 340 } 341 342 if (Actual > 0) 343 { 344 AcpiOsPrintf ("Warning - reading table, asked for %X got %X\n", AmlLength, Actual); 345 return (AE_OK); 346 } --- 72 unchanged lines hidden (view full) --- 419 } 420#endif 421 422 return_ACPI_STATUS (Status); 423} 424 425 426#ifdef ACPI_APPLICATION |
427/******************************************************************************* 428 * 429 * FUNCTION: AcpiDbGetAcpiTable 430 * 431 * PARAMETERS: Filname - File where table is located 432 * 433 * RETURN: Status 434 * 435 * DESCRIPTION: Get an ACPI table from a file 436 * 437 ******************************************************************************/ 438 |
|
423ACPI_STATUS 424AcpiDbGetAcpiTable ( 425 NATIVE_CHAR *Filename) 426{ 427 FILE *fp; 428 UINT32 TableLength; 429 ACPI_STATUS Status; 430 | 439ACPI_STATUS 440AcpiDbGetAcpiTable ( 441 NATIVE_CHAR *Filename) 442{ 443 FILE *fp; 444 UINT32 TableLength; 445 ACPI_STATUS Status; 446 |
447 |
|
431 /* Open the file */ 432 433 fp = fopen (Filename, "rb"); 434 if (!fp) 435 { 436 AcpiOsPrintf ("Could not open file %s\n", Filename); 437 return (AE_ERROR); 438 } --- 10 unchanged lines hidden (view full) --- 449 AcpiOsPrintf ("Couldn't get table from the file\n"); 450 return (Status); 451 } 452 453 return (AE_OK); 454 } 455#endif 456 | 448 /* Open the file */ 449 450 fp = fopen (Filename, "rb"); 451 if (!fp) 452 { 453 AcpiOsPrintf ("Could not open file %s\n", Filename); 454 return (AE_ERROR); 455 } --- 10 unchanged lines hidden (view full) --- 466 AcpiOsPrintf ("Couldn't get table from the file\n"); 467 return (Status); 468 } 469 470 return (AE_OK); 471 } 472#endif 473 |
474 |
|
457/******************************************************************************* 458 * 459 * FUNCTION: AcpiDbLoadAcpiTable 460 * 461 * PARAMETERS: Filname - File where table is located 462 * 463 * RETURN: Status 464 * --- 49 unchanged lines hidden --- | 475/******************************************************************************* 476 * 477 * FUNCTION: AcpiDbLoadAcpiTable 478 * 479 * PARAMETERS: Filname - File where table is located 480 * 481 * RETURN: Status 482 * --- 49 unchanged lines hidden --- |