ALL CODE IN THE SERIALIO STACK MUST BE RE-ENTRANT AND CALLABLE FROM\r
INTERRUPT CONTEXT\r
\r
-Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution. The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
LocalBufferSize = *BufferSize - (BufferPtr - (UINT8 *) Buffer);\r
} while (LocalBufferSize != 0 && Timeout > 0);\r
\r
- *BufferSize = (UINTN) (BufferPtr - (UINT8 *) Buffer);\r
+ *BufferSize = (UINTN) BufferPtr - (UINTN) Buffer;\r
\r
return Status;\r
}\r
the DebugPort interface.\r
@retval EFI_NOT_READY There are no characters ready to read from the\r
DebugPort interface\r
- @retval EFI_DEVICE_ERROR A hardware failure occured... (from SerialIo)\r
+ @retval EFI_DEVICE_ERROR A hardware failure occurred... (from SerialIo)\r
\r
**/\r
EFI_STATUS\r