RehabMan
Moderator
- Joined
- May 2, 2012
- Messages
- 181,007
- Motherboard
- Intel DH67BL
- CPU
- i7-2600K
- Graphics
- HD 3000
- Mac
- Mobile Phone
[/HTML][/HTML]
into method label WE1B parent_label EC0 remove_entry;
into method label WECB parent_label EC0 remove_entry;
into device label EC0 insert
begin
Method (WE1B, 2, NotSerialized)\n
{\n
OperationRegion(ERAM, EmbeddedControl, Arg0, 1)\n
Field(ERAM, ByteAcc, NoLock, Preserve) { BYTE, 8 }\n
Store(Arg1, BYTE)\n
}\n
Method (WECB, 3, Serialized)\n
// Arg0 - offset in bytes from zero-based EC\n
// Arg1 - size of buffer in bits\n
// Arg2 - value to write\n
{\n
ShiftRight(Arg1, 3, Arg1)\n
Name(TEMP, Buffer(Arg1) { })\n
Store(Arg2, TEMP)\n
Add(Arg0, Arg1, Arg1)\n
Store(0, Local0)\n
While (LLess(Arg0, Arg1))\n
{\n
WE1B(Arg0, DerefOf(Index(TEMP, Local0)))\n
Increment(Arg0)\n
Increment(Local0)\n
}\n
}\n
end;
into method label MHPF code_regex \sSMDA\) replaceall_matched begin WECB(0x65,256)) end;
into method label CFUN code_regex \sSMDA\) replaceall_matched begin WECB(0x65,256)) end;
Ok I did that, but give errors....
Before that with previous patch without WECB, without other patches give me counting ??!!
But i must do it right ....Now I'm back with errors again...
What is the next, where I make wrong, what did not understand ?
No. Have to replace the entire Store with WECB.
eg.
Store(X, SMDA)
->
WECB(offset-of-SMDA, sizeof-SMDA, X)
There are numerous examples in the existing patches in the laptop repo.