Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
1.9 KiB

  1. This test will determine the existence and validity of an ACPI Serial Port Console Redirection (SPCR) table. The test will attempt to detect this table, and if a valid table is discovered, several additional steps will be taken.
  2. 1. Several of the significant settings will be displayed.
  3. 2. The settings will be used to attempt initialization of a UART.
  4. It is important to note that this test must be run in real-mode. No OS support is required. For that reason, the test poses as an OS loader and executes when the machine�s BIOS attempts to boot from media (putting the test on a floppy works very well). The following steps should be used to prepare the test:
  5. 1. Format a floppy so that a boot sector gets written to it (this happens automatically under NT/Windows2000/Whistler).
  6. 2. Copy the test to the floppy, carefully renaming it "ntldr".
  7. 3. reboot the machine and allow it to boot from this floppy.
  8. 1. If no valid SPCR table is detected, a brief message is displayed on the system console informing the user.
  9. 2. Assuming a valid SPCR is found, several of the significant settings will be displayed. The UART is then initialized and tested for authenticity (the data given in the SPCR table may not be pointing to a valid UART).
  10. 3. If the UART is deemed to be valid (a standard loopback test is used), then a validation message will be displayed.
  11. 4. If the UART is deemed to be valid, then a random string is generated. The random string is then sent through the UART. The test will then wait for the user to enter the string back. The results of the users input are then tested against the original random string to ensure they match.
  12. 5. If the strings match, the user will see a confirmation message.
  13. 6. If the strings do *not* match, the user will see a confirmation message.
  14. 7. Once the test has completed, the test will create a file on the boot media called "spcrtest.txt". A pass/failure message will be written to the logfile.