[Mingw-users] 64 bit pointers in 32 bit kernels
- Date: Wed, 14 May 2008 17:25:16 -0700
- From: Brian Hawley <bhawley@xxxxxxxxxxx>
- Subject: [Mingw-users] 64 bit pointers in 32 bit kernels
Perhaps someone has run across this before.
I'm porting a support library from unix to windows (i'm somewhat new to
windows driver development). I'm needing to substitute KeQuerySystemTime
(since I'm using MinGW, and KeQuerySystemTime is defined in a header).
I was able to determine from the header file the mechanism for accessing
the data. However, I believe the pointer dereferencing is a problem.
The system is a 32 bit system and windows debugger shows 'ptr64 FALSE'.
So, code like the following does not work. Instead the top 16 bits are
truncated.
uint64_t *ptr = 0xFFFFF780000000014ULL;
uint64_t value = 0;
value = *ptr;
Any ideas?
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users