Driver for 64 bit OS

Hi all,

I’m new in win64 Drivers.
I’m have some questions about building 64 bits driver.
From DDK build environment, I see

Win Xp 64 bit( Debug/Free)
Win2003 AMD64 bit (Debug/Free)
Win2003 64 bit (Debug/Free)

My question are:

  1. Why there are 2 different builds in Win2003 but only one in winXP ?
  2. When I build drivers for Win XP 64, will it work on both AMD64 and IA64
    ?
  3. Do I have to concern about CPU architecture in my driver code ? In other
    words,
    is there any case I should use #ifdef _AMD64 or #ifdef _IA64 in my
    driver code ?

Thanks for help
QUANG

IA64 has nothing to do with AMD64. IA64 is for Itanium, while AMD64
indicates the AMD and Intel x86 based processors with the extended 64 bit
instruction set. The two architectures are incompatible and a driver for
one will not work on the other. For most well written drivers, you should
not have to conditionalize based on architecture.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

“Quang Vu” wrote in message news:xxxxx@ntdev…
> Hi all,
>
> I’m new in win64 Drivers.
> I’m have some questions about building 64 bits driver.
> From DDK build environment, I see
>
> Win Xp 64 bit( Debug/Free)
> Win2003 AMD64 bit (Debug/Free)
> Win2003 64 bit (Debug/Free)
>
> My question are:
> 1. Why there are 2 different builds in Win2003 but only one in winXP ?
> 2. When I build drivers for Win XP 64, will it work on both AMD64 and
> IA64
> ?
> 3. Do I have to concern about CPU architecture in my driver code ? In
> other
> words,
> is there any case I should use #ifdef _AMD64 or #ifdef _IA64 in my
> driver code ?
>
> Thanks for help
> QUANG
>
>
>
>

  1. winxp only supports ia64, not amd64
  2. no, a winxp 64 build will be ia46 only. To build an amd64 binary,
    you need a amd64 bit build window
  3. usually, no. they only reason you might need this is if you are
    using architecture specific assembly or relying on resources that are
    only available on a particular platform.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Quang Vu
Sent: Monday, July 25, 2005 12:02 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Driver for 64 bit OS

Hi all,

I’m new in win64 Drivers.
I’m have some questions about building 64 bits driver.
From DDK build environment, I see

Win Xp 64 bit( Debug/Free)
Win2003 AMD64 bit (Debug/Free)
Win2003 64 bit (Debug/Free)

My question are:

  1. Why there are 2 different builds in Win2003 but only one in winXP ?
  2. When I build drivers for Win XP 64, will it work on both AMD64 and
    IA64
    ?
  3. Do I have to concern about CPU architecture in my driver code ? In
    other
    words,
    is there any case I should use #ifdef _AMD64 or #ifdef _IA64 in my
    driver code ?

Thanks for help
QUANG


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

I’m not doubting you, but MSDN subscriber downloads has a 64-bit x64
Edition available for download. Isn’t that AMD? There is a separate
download section for 64-bit Itanium.

Curious,
ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Monday, July 25, 2005 3:09 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Driver for 64 bit OS

  1. winxp only supports ia64, not amd64
  2. no, a winxp 64 build will be ia46 only. To build an amd64 binary,
    you need a amd64 bit build window
  3. usually, no. they only reason you might need this is if you are
    using architecture specific assembly or relying on resources that are
    only available on a particular platform.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Quang Vu
Sent: Monday, July 25, 2005 12:02 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Driver for 64 bit OS

Hi all,

I’m new in win64 Drivers.
I’m have some questions about building 64 bits driver.
From DDK build environment, I see

Win Xp 64 bit( Debug/Free)
Win2003 AMD64 bit (Debug/Free)
Win2003 64 bit (Debug/Free)

My question are:

  1. Why there are 2 different builds in Win2003 but only one in winXP ?
  2. When I build drivers for Win XP 64, will it work on both AMD64 and
    IA64 ? 3. Do I have to concern about CPU architecture in my driver code
    ? In other words,
    is there any case I should use #ifdef _AMD64 or #ifdef _IA64 in my
    driver code ?

Thanks for help
QUANG


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’ To unsubscribe send a blank email to xxxxx@lists.osr.com

Doron Holan wrote:
> 2) no, a winxp 64 build will be ia46 only. To build an amd64 binary,
> you need a amd64 bit build window

Robins, Scott wrote:

I’m not doubting you, but MSDN subscriber downloads has a 64-bit x64
Edition available for download. Isn’t that AMD? There is a separate
download section for 64-bit Itanium.

I bet Doron’s confused a bit about naming (internal versus external).

There absolutely is a Windows XP Professional X64 Edition – This is
an AMD64 build. I’m staring at the box with the CD right now.

There’s even a Microsoft “Technology Advancement” program for people who
bought an x64 capable processor with 32-bit Windows installed and want
to upgrade their software to Windows XP Professional x64 Edition at no cost.

Peter
OSR

Yeah, I got confused. There was a one off ia64 release, I think that
was server or something.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of PeterGV (OSR)
Sent: Monday, July 25, 2005 1:13 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Driver for 64 bit OS

Doron Holan wrote:
> 2) no, a winxp 64 build will be ia46 only. To build an amd64
binary,
> you need a amd64 bit build window

Robins, Scott wrote:

I’m not doubting you, but MSDN subscriber downloads has a 64-bit x64
Edition available for download. Isn’t that AMD? There is a separate
download section for 64-bit Itanium.

I bet Doron’s confused a bit about naming (internal versus external).

There absolutely is a Windows XP Professional X64 Edition – This is
an AMD64 build. I’m staring at the box with the CD right now.

There’s even a Microsoft “Technology Advancement” program for people who

bought an x64 capable processor with 32-bit Windows installed and want
to upgrade their software to Windows XP Professional x64 Edition at no
cost.

Peter
OSR


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com