Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests after changing field Preserve behavior #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions aml_tests/bankfield.asl
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,18 @@ DefinitionBlock("out.aml", "DSDT", 1, "LAI", "LAI_TEST", 1)
}
Method(_INI)
{
//! io-read: pio 8b 0xBEEF = 0x0
//! io-write: pio 8b 0xBEEF = 0x55
//! io-read: pio 8b 0xBEF1 = 0x0
//! io-write: pio 8b 0xBEF1 = 0xAA
CAFE = 0xAA

//! io-read: pio 8b 0xBEEF = 0x0
//! io-write: pio 8b 0xBEEF = 0x55
//! io-read: pio 8b 0xBEF1 = 0xAA

//! io-read: pio 8b 0xBEEF = 0x0
//! io-write: pio 8b 0xBEEF = 0x55
//! io-read: pio 8b 0xBEF2 = 0
//! io-write: pio 8b 0xBEF2 = 0xAA
BABE = CAFE

//! io-read: pio 8b 0xBEEF = 0x0
//! io-write: pio 8b 0xBEEF = 0x55
//! io-read: pio 32b 0xBEF3 = 0x0
//! io-write: pio 32b 0xBEF3 = 0xBEEFDEAD
TEST = 0xBEEFDEAD
}
Expand Down
45 changes: 20 additions & 25 deletions aml_tests/indexfield.asl
Original file line number Diff line number Diff line change
Expand Up @@ -15,47 +15,42 @@ DefinitionBlock("out.aml", "DSDT", 1, "LAI", "LAI_TEST", 1)
REGD, 8,
REGE, 16,
}

OperationRegion (ID2F, SystemIO, 0xD00, 0x2)
Field (ID2F, ByteAcc, NoLock, Preserve) {
IDX2, 4,
DAT2, 8
}

IndexField (IDX2, DAT2, ByteAcc, NoLock, Preserve) {
RE2A, 8,
RE2B, 8
}

Method(_INI)
{
//! io-read: pio 8b 0xC00 = 0x0
//! io-write: pio 8b 0xC00 = 0x2
//! io-read: pio 8b 0xC01 = 0x0

//! io-read: pio 8b 0xC00 = 0x0
//! io-write: pio 8b 0xC00 = 0x2
//! io-read: pio 8b 0xC01 = 0x0
//! io-write: pio 8b 0xC01 = 0xAA
REGC = 0xAA

//! io-read: pio 8b 0xC00 = 0x0
//! io-write: pio 8b 0xC00 = 0x0
//! io-read: pio 8b 0xC01 = 0x0

//! io-read: pio 8b 0xC00 = 0x0
//! io-write: pio 8b 0xC00 = 0x0
//! io-read: pio 8b 0xC01 = 0x0
//! io-write: pio 8b 0xC01 = 0x55
REGA = 0x55

//! io-read: pio 8b 0xC00 = 0x0
//! io-write: pio 8b 0xC00 = 0x4
//! io-read: pio 8b 0xC01 = 0x0

//! io-read: pio 8b 0xC00 = 0x0
//! io-write: pio 8b 0xC00 = 0x4
//! io-read: pio 8b 0xC01 = 0x0
//! io-write: pio 8b 0xC01 = 0xCD

//! io-read: pio 8b 0xC00 = 0x0
//! io-write: pio 8b 0xC00 = 0x5
//! io-read: pio 8b 0xC01 = 0x0

//! io-read: pio 8b 0xC00 = 0x0
//! io-write: pio 8b 0xC00 = 0x5
//! io-read: pio 8b 0xC01 = 0x0
//! io-write: pio 8b 0xC01 = 0xAB
REGE = 0xABCD

//! io-read: pio 8b 0xD00 = 0x00
//! io-write: pio 8b 0xD00 = 0x01
//! io-read: pio 8b 0xD00 = 0x01
//! io-write: pio 8b 0xD00 = 0xA1
//! io-read: pio 8b 0xD01 = 0x00
//! io-write: pio 8b 0xD01 = 0x0A
RE2B = 0xAA
}
}
}
}
1 change: 0 additions & 1 deletion aml_tests/opregion.asl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ DefinitionBlock("out.aml", "DSDT", 1, "LAI", "LAI_TEST", 1)
FLD6 = 0x00
//! io-read: pio 8b 0xB000 = 0x55
//! io-write: pio 8b 0xB000 = 0xD5
//! io-read: pio 8b 0xB001 = 0x55
//! io-write: pio 8b 0xB001 = 0xAA
FLD8 = 0x155

Expand Down
2 changes: 1 addition & 1 deletion subprojects/lai
Submodule lai updated 1 files
+11 −1 core/opregion.c