Re: Assembly code for calling a function on amd machine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 15, 2008 at 06:51:46PM -0500, Asim wrote:
> I have an AMD Opteron(tm) Processor. I want to write assembly code for
> calling a function say f with n arguments already in stack and store
> the result in res. I can write on Intel but on AMD machines the
> arguments are not being passed correctly. Does anyone know what
> changes I need to make for processor specification. I'm not getting
> any good document online.

The nice thing about AMD and Intel processors is that they have fully
compatible instruction sets (minus the extensions like SSE3 etc.). IOW:
if it works on an Intel CPU, it will work on an AMD CPU. Without source
it is impossible to tell why it doesn't work for you.

BTW, is this really a kernel related question?


Erik

-- 
Erik Mouw -- mouw@xxxxxxxxxxxx

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux