x86 driver on 64 bit machine

Hi,

i am new to driver development .

I am trying to load a x86 driver on a x64 vista machine.
i have Dbgprint statements in the driver by which i confirm ,my diver is working properly.

but on an x64 machine with an x86 driver i am not getting any output on the debugger.

can some one tell me is it possible to use a x86 drier on a 64 bit machine?.

thanks in advance

-Arun

I assumt the x64 machine runs x86 OS, otherwise the x86 driver wouldn’t load at all.

As to DbgPrint, on Vista it is mapped to DbgPrintEx. Look in Doron’s blog for the solution:
http://blogs.msdn.com/doronh/archive/2006/11/14/where-did-my-debug-output-go-in-vista.aspx

Alexey

No, it is not possible to run x86 drivers in an x64 kernel.

Kernel mode components MUST run CPU native code. So recompile your
driver in the relevant amd64/x64 build window.

At 11:15 14/05/2008, you wrote:

Hi,

i am new to driver development .

I am trying to load a x86 driver on a x64 vista machine.
i have Dbgprint statements in the driver by which i confirm ,my
diver is working properly.

but on an x64 machine with an x86 driver i am not getting any output
on the debugger.

can some one tell me is it possible to use a x86 drier on a 64 bit machine?.

thanks in advance

-Arun

You will have to port your driver to win 64 ( x64 ) if you want to run it on 64 bit vista for x64.
-Srikanth

Arun did not say that it’s a 64bit OS, he said it’s a x64 machine.
So if he manages to load the x86 driver, he must be running an x86 OS on a x64 machine.

Alexey

I believe he said he could not load the driver on his x64 machine. If
somebody is running an x64 capable system in x86 mode and is describing that
as an ‘x64 machine’ any confusion that results from this is strictly the
OP’s own fault.

I don’t own this list so what follows is merely a suggestion.

If you are describing a problem with a system that is x64 capable but the
problem occurs while it is operating in x86 mode, describe the system as an
x86 system. Conversely, if the problem occurs while the system is operating
in x64 mode, describe the system as an x64 system.

On Wed, May 14, 2008 at 6:59 AM, wrote:

> Arun did not say that it’s a 64bit OS, he said it’s a x64 machine.
> So if he manages to load the x86 driver, he must be running an x86 OS on a
> x64 machine.
>
> Alexey
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>


Mark Roddy

Hi!

you can use:

#ifdef AMD64
“you execute code on 64 bits platform.”
#endif

or

#if !defined(X86)

“you execute code on 64 bits platform.”

#endif

i think those code maybe useful.

thanks in advance.

Date: Wed, 14 May 2008 11:30:27 +0100
To: xxxxx@lists.osr.com
From: xxxxx@muttsnuts.com
Subject: Re: [ntdev] x86 driver on 64 bit machine

No, it is not possible to run x86 drivers in an x64 kernel.

Kernel mode components MUST run CPU native code. So recompile your
driver in the relevant amd64/x64 build window.

At 11:15 14/05/2008, you wrote:
>Hi,
>
>i am new to driver development .
>
>I am trying to load a x86 driver on a x64 vista machine.
>i have Dbgprint statements in the driver by which i confirm ,my
>diver is working properly.
>
>but on an x64 machine with an x86 driver i am not getting any output
>on the debugger.
>
>can some one tell me is it possible to use a x86 drier on a 64 bit machine?.
>
>thanks in advance
>
>-Arun


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


ÐÂÄê»»ÐÂÑÕ£¬¿ìÀ´×±°ç×Ô¼ºµÄMSN¸øÐÄÒǵÄTAÒ»¸ö¾ªÏ²£¡
http://im.live.cn/emoticons/?ID=18

sorry for the confusion caused: by x64 machine i meant a machine running X64 Operating system

xxxxx@gmail.com wrote:

sorry for the confusion caused: by x64 machine i meant a machine running X64 Operating system

Then you got your answer. You cannot use a 32-bit (i.e., x86) kernel
driver on a 64-bit operating system. You must build a 64-bit driver.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

> I am trying to load a x86 driver on a x64 vista machine.

.SYS driver? impossible.


Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com