Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193488
b: refs/heads/master
c: c1637e9
h: refs/heads/master
v: v3
  • Loading branch information
Bob Moore authored and Len Brown committed Apr 20, 2010
1 parent d70971c commit f2e2465
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 333b04ae338e3421297d46c508f053a6767d2883
refs/heads/master: c1637e9c649a0eb72c467041d78275aabdd48a41
13 changes: 10 additions & 3 deletions trunk/drivers/acpi/acpica/exregion.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,10 @@ acpi_ex_data_table_space_handler(u32 function,
{
ACPI_FUNCTION_TRACE(ex_data_table_space_handler);

/* Perform the memory read or write */

/*
* Perform the memory read or write. The bit_width was already
* validated.
*/
switch (function) {
case ACPI_READ:

Expand All @@ -502,9 +504,14 @@ acpi_ex_data_table_space_handler(u32 function,
break;

case ACPI_WRITE:

ACPI_MEMCPY(ACPI_PHYSADDR_TO_PTR(address),
ACPI_CAST_PTR(char, value), ACPI_DIV_8(bit_width));
break;

default:

return_ACPI_STATUS(AE_SUPPORT);
return_ACPI_STATUS(AE_BAD_PARAMETER);
}

return_ACPI_STATUS(AE_OK);
Expand Down

0 comments on commit f2e2465

Please sign in to comment.