On Mon, Dec 22, 2008 at 04:16:50PM -0500, Christoph Hellwig wrote:
> The kdb arch code for i386 and x86_64 is to 98% essentially the same
> modulo a few tiniy differences that crept in over the years.  The real
> differences are:
> 
>  - the register handling due to the additional registers and slightly
>    different ABI on x86_64
>  - setjmp / longjmp is different assembly code
>  - i386 has an stackdepth command.  I don't really see why it
>    doesn't exist for x86_64, but at least right now it's not there

I'll stick this item on my todo list.

>  - x86_64 has a cpu_pda command.  AFAIK the PDA doesn't exist on i386
>    in that form, so it's one to stay
>  - x86_64 registers a die notifier.  This looks like it would apply
>    to i386 too, but I'd like to leave it to an expert.

Any experts around who may know why this is only on x86_64?

> 
> The patch elow just merges all files.  A slightly cleaner version might
> be to have a kdba_regs_{32,64}.c for the register stuff instead of
> ifdefs.


I've looked over this whole patch.  I don't think there's much point in
going further and getting rid of the ifdefs.  I'll do some testing
tomorrow, but I currently don't see any reason why I shouldn't include
this patch in the next patch set.

mh

_______________________________________________
kdb mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/kdb

Reply via email to