[klibc] [PATCH] add mips64 support

Dejan Latinovic Dejan.Latinovic at imgtec.com
Mon Jan 26 05:36:43 PST 2015

Hi Peter,

Thank you for replay.

There are 2 more patches needed for mips64 support:

Subject: [PATCH] add-mips64-support-headers

Description: Added header files for mips64.
Modeled on mips 32 header files and adapted for 64 bit ABI.
 - archsetjmp.h: do not save floating-point state
 - asm.h:        Symbolic register names for 64 bit ABI

Subject: [PATCH] add-mips64-support-arch-mips64-specific

Description: Adding mips64 specific chagnes. 
Modeled on mips 32 and adapted for 64 bit ABI.
 - MCONFIG:  using existing klibc.ld scrpit
 - crt0.S:   adapted gp initialization
 - setjmp.S: do not save floating-point state

All tree patches are attached.

I just tried it on last version from:


From: H. Peter Anvin [hpa at zytor.com]
Sent: Saturday, January 24, 2015 1:23 AM
To: Dejan Latinovic; YunQiang Su; klibc at zytor.com; maximilian attems
Subject: Re: [klibc] [PATCH] add mips64 support

On 12/15/2014 05:56 AM, Dejan Latinovic wrote:
> Hello,
> Any updates on mips64 support for klibc?
> Can I do anything to help merging
> mips64 changes?

Sorry, my personal life exploded in late August, and I have bee
chronically behind ever since.

Is this the only patch needed?

From: Dejan Latinovic <Dejan.Latinovic at imgtec.com>

Subject: [PATCH] add-mips64-support-arch-mips32

Description: Add mips64 support, using existing mips32 code.
 - using mips32 assembler source files: pipe.S vfork.S syscall.S
 - sysstub.ph: copied over from klibc/arch/mips

-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-mips64-support-headers.patch
Type: text/x-patch
Size: 4968 bytes
Desc: add-mips64-support-headers.patch
URL: <http://www.zytor.com/pipermail/klibc/attachments/20150126/301dc42b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-mips64-support-arch-mips32.patch
Type: text/x-patch
Size: 2134 bytes
Desc: add-mips64-support-arch-mips32.patch
URL: <http://www.zytor.com/pipermail/klibc/attachments/20150126/301dc42b/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-mips64-support-arch-mips64-specific.patch
Type: text/x-patch
Size: 2824 bytes
Desc: add-mips64-support-arch-mips64-specific.patch
URL: <http://www.zytor.com/pipermail/klibc/attachments/20150126/301dc42b/attachment-0002.bin>

More information about the klibc mailing list