RehabMan
Moderator
- Joined
- May 2, 2012
- Messages
- 181,007
- Motherboard
- Intel DH67BL
- CPU
- i7-2600K
- Graphics
- HD 3000
- Mac
- Mobile Phone
Hi apologies if my understanding of this is a little bit naive but after following your guide and a few of the examples I came up with the attached patch, which, when I try to apply it to my working dsdt.aml throws up all kind of errors so I'm thinking I've done something wrong which may or may not be glaringly obvious?
Can I please ask you to have a look to see what I have done wrong?
From what I could gather I only have 16bit entries to worry about which I have tried to address in the patch.His is from my second hacintosh a Sony Vaio that I have upgraded several components for including the 32 bit processor to a 64 bit to allow me to install Lion.
As it is my second hac I haven't got it's specs in my signature so here they are:
http://www.tonymacx86.com/lion-laptop-support/187143-sony-vaio-sz-1xp.html#post1216053
The battery patch is really the last necessary fix I need so I would greatly value your help on this.
Many thanks!
None of your patches apply as your EC is named EC0 not H_EC.
Patches to registers should be:
Code:
#Convert 16 bit to 8 bit registers
into device label EC0 code_regex B1AB,\s+16, replace_matched begin B1A0,8, B1A1,8, end;
into device label EC0 code_regex B1AC,\s+16, replace_matched begin B1B0,8, B1B1,8, end;
into device label EC0 code_regex BIVO,\s+16, replace_matched begin B1V0,8, B1V1,8, end;
into device label EC0 code_regex B1DC,\s+16, replace_matched begin B1D0,8, B1D1,8, end;
into device label EC0 code_regex B1LF,\s+16, replace_matched begin B1L0,8, B1L1,8, end;
into device label EC0 code_regex B1DV,\s+16, replace_matched begin B1Z0,8, B1Z1,8, end;
into device label EC0 code_regex A1TP,\s+16, replace_matched begin A1T0,8, A1T1,8, end;
into device label EC0 code_regex A1PT,\s+16, replace_matched begin A1P0,8, A1P1,8, end;
into device label EC0 code_regex A1CT,\s+16, replace_matched begin A1C0,8, A1C1,8, end;
Note: You might want to change how you rename them...
For example, I would do
B1AB->BAB0,BAB1
B1AC->BAC0,BAC1
B1VO->BVO0,BVO1 (note error in your patch 'I' vs. '1' in B1VO)
etc.
Reason being you want unique names here that are different than the original, but derived from the original via a pattern. Since they all share 'B1' you can eliminate the '1' from the name and put the byte number at the end.
And the other patches:
Code:
#Fix 16 bit registers
into method label B1AB code_regex \(B1AY, replaceall_matched begin (B1B2(B1A0,B1A1), end;
into method label B1AC code_regex \(B1AZ, replaceall_matched begin (B1B2(B1B0,B1B1), end;
into method label B1VO code_regex \(B1VZ, replaceall_matched begin (B1B2(B1V0,B1V1), end;
into method label B1DC code_regex \(B1DY, replaceall_matched begin (B1B2(B1D0,B1D1), end;
into method label B1LF code_regex \(B1LZ, replaceall_matched begin (B1B2(B1L0,B1L1), end;
into method label B1DV code_regex \(B1DZ, replaceall_matched begin (B1B2(B1Z0,B1Z1), end;
into method label A1TP code_regex \(A1TZ, replaceall_matched begin (B1B2(A1T0,A1T1), end;
into method label A1PT code_regex \(A1PZ, replaceall_matched begin (B1B2(A1P0,A1P1), end;
into method label A1CT code_regex \(A1CZ, replaceall_matched begin (B1B2(A1C0,A1C1), end;
...Are clearly wrong...
B1AB, B1AC/etc are not methods. You need to find the methods that the code appears in. The compiler will point them out after success with changing the register names.