\r
do {\r
//\r
- // Access sytem memory to see if the value is the tested one.\r
+ // Access system memory to see if the value is the tested one.\r
//\r
// The system memory pointed by Address will be updated by the\r
// SATA Host Controller, "volatile" is introduced to prevent\r
}\r
\r
/**\r
- Buid a command FIS.\r
+ Build a command FIS.\r
\r
@param[in,out] CmdFis A pointer to the EFI_AHCI_COMMAND_FIS data\r
structure.\r
AhciWriteReg (AhciBar, Offset, Data64.Uint32.Upper32);\r
\r
//\r
- // Single task envrionment, we only use one command table for all port\r
+ // Single task environment, we only use one command table for all port\r
//\r
Offset = AHCI_PORT_START + Port * AHCI_PORT_REG_WIDTH + AHCI_PORT_CLB;\r
OldCmdListLo = AhciReadReg (AhciBar, Offset);\r
if (EFI_ERROR (Status)) {\r
DEBUG ((\r
DEBUG_ERROR,\r
- "%a: Error occured when waiting for the first D2H register FIS - %r\n",\r
+ "%a: Error occurred when waiting for the first D2H register FIS - %r\n",\r
__FUNCTION__, Status\r
));\r
continue;\r