Patch the reintroduced (~0 << 32) == 1 bug with a cryptic but functional

version.  This should fix the read-before-write problem again.

Obtained from:	"Adam J. Richter" <adam@yggdrasil.com>
This commit is contained in:
msmith 2001-02-02 08:31:50 +00:00
parent 0ed839e1d1
commit b31c162db3
2 changed files with 4 additions and 2 deletions

View File

@ -572,7 +572,8 @@ AcpiAmlWriteFieldDataWithUpdateRule (
/* Check if update rule needs to be applied (not if mask is all ones) */
if (((1 << BitGranularity) -1) & ~Mask)
/* The left shift drops the bits we want to ignore. */
if ((~Mask << (sizeof(Mask) * 8 - BitGranularity)) != 0)
{
/*
* Read the current contents of the byte/word/dword containing

View File

@ -572,7 +572,8 @@ AcpiAmlWriteFieldDataWithUpdateRule (
/* Check if update rule needs to be applied (not if mask is all ones) */
if (((1 << BitGranularity) -1) & ~Mask)
/* The left shift drops the bits we want to ignore. */
if ((~Mask << (sizeof(Mask) * 8 - BitGranularity)) != 0)
{
/*
* Read the current contents of the byte/word/dword containing