mirror of
https://github.com/acpica/acpica/
synced 2025-02-25 18:04:08 +03:00
adam richter's patch to fix BitGranularity = 32
date 2001.02.01.17.48.00; author agrover; state Exp;
This commit is contained in:
parent
3385582e10
commit
4a802d234c
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: amfldio - Aml Field I/O
|
||||
* $Revision: 1.37 $
|
||||
* $Revision: 1.38 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -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…
x
Reference in New Issue
Block a user