Re: Comparing struct pt_regs : asm-i386 vs asm-x86_64

From: Robert M. Stockmann
Date: Sun Jul 18 2004 - 12:11:55 EST


On Sun, 18 Jul 2004, Robert M. Stockmann wrote:

> >
> > So when porting i386 C-code (which uses the struct pt_regs from
> > include/asm-i386/ptrace.h) how does the pt_regs structure translate into
> > the struct pt_regs from include/asm-x86_64/ptrace.h ?
> >
>
> I came across this "Gentle Introduction" on www.x86-64.org :
>
> "Gentle Introduction to x86-64 Assembly "
> http://www.x86-64.org/documentation/assembly :
>
> Where the most striking remark is this :
>
> "This document is meant to summarise differences between x86-64 and i386
> assembly assuming that you already know well the i386 gas syntax. I will try
> to keep this document up to date until official documentation is available."
>
> Amazing stuff! How can one manufacture full-functional x86_64 AMD64 and
> Opteron CPU's in silicon print, while the white-paper print of the "official
> documentation" on assembly programming on x86_64 is NOT available ??
>

Its seems the docs needed are just for download at http://www.amd.com/ :

http://www.amd.com/us-en/Processors/TechnicalResources/0,,30_182_739_7044,00.html

AMD64 Architecture Programmer's Manual Volume 1: Application Programming
AMD64 Architecture Programmer's Manual Volume 2: System Programming
AMD64 Architecture Programmer's Manual Volume 3: General-Purpose and System Instructions
AMD64 Architecture Programmer's Manual Volume 4: 128-Bit Media Instructions
AMD64 Architecture Programmer's Manual Volume 5: 64-Bit Media and x87 Floating-Point Instructions

Robert
--
Robert M. Stockmann - RHCE
Network Engineer - UNIX/Linux Specialist
crashrecovery.org stock@xxxxxxxxxxx

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/