These changes were needed in addition to the silence.patch
that Laszlo posted on May 28.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14420
6f19259b-4bc3-4df7-8a09-
765794883524
any.\r
\r
Copyright (C) 2013, Red Hat, Inc.\r
- Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials are licensed and made available\r
under the terms and conditions of the BSD License which accompanies this\r
\r
UsedElemIdx = Dev->TxLastUsed++ % Dev->TxRing.QueueSize;\r
DescIdx = Dev->TxRing.Used.UsedElem[UsedElemIdx].Id;\r
- ASSERT (DescIdx < 2 * Dev->TxMaxPending - 1);\r
+ ASSERT (DescIdx < (UINT32) (2 * Dev->TxMaxPending - 1));\r
\r
//\r
// report buffer address to caller that has been enqueued by caller\r
//\r
- *TxBuf = (VOID *) Dev->TxRing.Desc[DescIdx + 1].Addr;\r
+ *TxBuf = (VOID *)(UINTN) Dev->TxRing.Desc[DescIdx + 1].Addr;\r
\r
//\r
// now this descriptor can be used again to enqueue a transmit buffer\r
Implementation of the SNP.Receive() function and its private helpers if any.\r
\r
Copyright (C) 2013, Red Hat, Inc.\r
- Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials are licensed and made available\r
under the terms and conditions of the BSD License which accompanies this\r
*HeaderSize = Dev->Snm.MediaHeaderSize;\r
}\r
\r
- RxPtr = (UINT8 *)Dev->RxRing.Desc[DescIdx + 1].Addr;\r
+ RxPtr = (UINT8 *)(UINTN) Dev->RxRing.Desc[DescIdx + 1].Addr;\r
CopyMem (Buffer, RxPtr, RxLen);\r
\r
if (DestAddr != NULL) {\r
Implementation of the SNP.Transmit() function and its private helpers if any.\r
\r
Copyright (C) 2013, Red Hat, Inc.\r
- Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials are licensed and made available\r
under the terms and conditions of the BSD License which accompanies this\r
*Ptr++ = (UINT8) (*Protocol >> 8);\r
*Ptr++ = (UINT8) *Protocol;\r
\r
- ASSERT (Ptr - (UINT8 *) Buffer == Dev->Snm.MediaHeaderSize);\r
+ ASSERT ((UINTN) (Ptr - (UINT8 *) Buffer) == Dev->Snm.MediaHeaderSize);\r
}\r
\r
//\r