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:
parent
0ed839e1d1
commit
b31c162db3
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user