Jump to content

Compiling ACPI v2.0 driver for Windows XP SP3 and Windows 2003 SP2 (x32/x64)


Mov AX, 0xDEAD

Recommended Posts

3 hours ago, daniel_k said:

:hello:

Haven't heard of that issue before.

Try the latest acpi.sys from the latest posts.

If it doesn't work, try to install Windows 7 x86, Intel USB3 HCSwitch driver, modded USB3 from MDL and see if you have the same issue.

With the latest acpi.sys, no more USB 3.0, only USB 2.0 ! :angel

I will try to install Windows 7 as soon as possible.

Regards

Link to comment
Share on other sites


On 4/17/2022 at 6:07 PM, Mov AX, 0xDEAD said:

acpi.sys is not just a AML interpreter as ACPICA, it is a part of kernel subsystem, like HAL/WIN32K, you need spend months to make it compatible with original ACPI IRP API

It seems reactos guys added other codes but need to be adapted to XP/2k3 hal , but i guess much of data missing

Link to comment
Share on other sites

@Damnation

Because all tries to hack a driver for example from i211 to fake as i219 failed, I think,

the problem is, that we have to change whole Ndis5 (XP) to Ndis6 (>XP)

Dietmar

PS: Yesterday I tried to hack again the Windbg driver for the i219 on the Asrock z370 gaming k6 board.

On the i211 the hacked driver works also as original but on the i219, compi just restarts without any message.

Here is my hacked and the original version

 

kd_02Intelwin81

https://ufile.io/rw27ju7j

Edited by Dietmar
Link to comment
Share on other sites

@Dietmar

I checked for missing imports on windows 7 ndis.sys and it's dependencies

	ndis -
    
NtTraceControl
KeRegisterProcessorChangeCallback
RtlNumberOfSetBitsUlongPtr
KeTestSpinLock
IoGetDeviceNumaNode
NtQuerySystemInformationEx

	netio -
    
MmAllocatePagesForMdlEx
KeFreeCalloutStack
KeAllocateCalloutStack
SeCaptureSubjectContextEx
KeTestSpinLock
SeAccessCheckFromState
RtlCreateHashTable
RtlDeleteHashTable
RtlGetNextEntryHashTable
RtlLookupEntryHashTable
RtlRemoveEntryHashTable
RtlInsertEntryHashTable
RtlEndEnumerationHashTable
RtlEnumerateEntryHashTable
RtlInitEnumerationHashTable
RtlContractHashTable
RtlExpandHashTable

	msrpc -
    
IoSetIoCompletionEx
ZwAlpcCancelMessage
ZwAlpcCreatePortSection
ZwAlpcCreateResourceReserve
ZwAlpcCreateSectionView
ZwAlpcCreateSecurityContext
ZwAlpcDeletePortSection
ZwAlpcDeleteSectionView
ZwAlpcDeleteSecurityContext
ZwAlpcDisconnectPort
ZwAlpcQueryInformation
ZwAlpcSetInformation
ZwCreateIoCompletion
ZwImpersonateAnonymousToken
ZwRemoveIoCompletionEx
	

seems like we've got quite a bit to do for this to work.

Edited by Damnation
Link to comment
Share on other sites

@Damnation

Yepp,

and you also have to grab a brandnew Win7 bit32 LAN driver for all the i219 variants and to check their dependencies also.

And check dependencies from this win7 i219 bit32 driver in XP and also in win7.

I think, when you check dependencies in Win7, at once you see, what have to be done at least

Dietmar

https://docs.microsoft.com/en-us/windows-hardware/drivers/network/overview-of-ndis-versions

 

Edited by Dietmar
Link to comment
Share on other sites

5 hours ago, Damnation said:

@Mov AX, 0xDEAD

Out of curiosity I wanted to ask, was there any particular reason why functions like ACPIDevicePowerProcessPhase3, OSNotifyDeviceCheck were implemented in assembly and not C code?

@Damnation

I like when BinDiff shows 99.99% code identity between compiled and SP3 binaries.  I failed to recreate the original logic of these two functions at the source code level, so i made dirty Copy&Paste asm hack

 

 
Link to comment
Share on other sites

3 hours ago, Dietmar said:

When you have time for, I am very much interested in a driver for XP for the Intel i219 lan device.

As you know, Vista/Win7 LAN drivers require NDIS6, I'm not interested in it yet, i know it is very wanted, but not now

When we finish with know acpi.sys' BSOD, i will release another acpi.sys sources , I think you can guess what it will be

Edited by Mov AX, 0xDEAD
Link to comment
Share on other sites

12 minutes ago, Damnation said:

@George King

I've made an amd64 build for you - I used old versions of ACPIDevicePowerProcessPhase3, OSNotifyDeviceCheck just to get a successful compile.

https://anonfiles.com/9555z5Ybx0/acpi_xp_amd64_forGK_7z

 

lets see if this one works.

Hello :hello:, I'm glad you're back at work, are you working on 2000 and XP at the same time ?

This is really cool :cool:

WinWord2000 Grazie a tutti !

Link to comment
Share on other sites

1 hour ago, Damnation said:

@George King

I've made an amd64 build for you - I used old versions of ACPIDevicePowerProcessPhase3, OSNotifyDeviceCheck just to get a successful compile.

https://anonfiles.com/9555z5Ybx0/acpi_xp_amd64_forGK_7z

 

lets see if this one works.

Thanks, but it doesn't work, 7B BSOD. I have proper drivers, it's caused by this ACPI.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...