Skip to content
This repository has been archived by the owner on Jan 3, 2021. It is now read-only.

Commit

Permalink
Have to patch .data -> Misc.PhysicalAddress too!
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxuser committed Jul 22, 2014
1 parent 90d820d commit d5774a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OZMTool/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,9 @@ UINT8 injectDSDTintoAmiboardInfo(QByteArray ami, QByteArray dsdtbuf, QByteArray

if(!strcmp((char *)&Section[i].Name, DATA_SECTION)) {
/* DSDT blob starts in .data section */
printf("\tPhysicalAddress: %X --> %X\n",
Section[i].Misc.PhysicalAddress,
Section[i].Misc.PhysicalAddress += alignDiffDSDT);
printf("\tSizeOfRawData: %X --> %X\n",
Section[i].SizeOfRawData,
Section[i].SizeOfRawData += alignDiffDSDT);
Expand Down

0 comments on commit d5774a1

Please sign in to comment.