x64 Calling convetion(ABI) issues.



_asm{...} is not allowed in 64bit DDK compiler.
So have to rewrite the _asm session to C or intrinsic function.
While, rewrite to C works fine, but rewrite to intrinsic funtion(complete
assemble code) have some problems.
In HCT 12.1, there is a x64 calling convention test, which complain that the
intrinsic function is "leaf function can not call ....." "nested function can
not modify ...."
Some errors like that.
THe intrinsic function works well while running, seems the errors come with
some register using not match some format.

After search in MSDN, did not find any helpful information.
So, is there any body know how to write the intrinsic function correctly(can
pass the HCT12.1's x64 calling convention tests)?


.



Relevant Pages

  • Re: x64 Calling convetion(ABI) issues.
    ... >> So have to rewrite the _asm session to C or intrinsic function. ... > Unlike x86, methods will allocate all the stack space they need up front, ...
    (microsoft.public.development.device.drivers)
  • Re: x64 Calling convetion(ABI) issues.
    ... > So have to rewrite the _asm session to C or intrinsic function. ... Unlike x86, methods will allocate all the stack space they need up front, so ...
    (microsoft.public.development.device.drivers)