[Top] [All Lists]

Re: [PATCH] Enable AT_PLATFORM for Loongson 2F CPU

To: David Daney <>
Subject: Re: [PATCH] Enable AT_PLATFORM for Loongson 2F CPU
From: Robert Millan <>
Date: Thu, 4 Nov 2010 19:43:08 +0100
Cc: Aurelien Jarno <>, Ralf Baechle <>,
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=MqwrLWR/RP2KyKNgJBo8btO05YQs+f0OejXSwDZyay4=; b=hCUl/HOPRa9yxNCrjpAbY+loNYSw2mwi5rsVW/9qxFOQ8xMJl+f9M8JXIGE9uP6dkz 7NWkriVO4EQcWN92itE+rFKSxenPe+dY8AYKYFv+EyI2i5j0wb1wGsdSK3VrXh/e8H5x TzszpOo0p39Tx6Wg5m6qjLh/TqJGQaMIsAM4I=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=HdKjJ9k5xevNUHqbDRqEM16kfaxzuPIPa0+z/TF+9RtC08mV9hBkPzfiHLRyzDavVv 7jcW2KdRHRy8GZTum41vHEsEHp4RC1LTZuq4hEiyMANSiChgENYDeCQ4jPoXhl09T2u4 NPKgxztg+018fWrEmPLeYegXZcfi/woOtW+Jc=
In-reply-to: <>
Original-recipient: rfc822;
References: <1288873119.12965.1@thorin> <> <>

David Daney a écrit :
> You are claiming that all loongson2 are loongson-2f.  Is that really
> true?  Or are there other types of loongson2 that are not loongson-2f?
> You need to be very careful here.  This is part of the userspace ABI, so
> if you get it wrong, you are stuck with it forever.

I'll figure out how to distinguish them and send a new patch.

> One question you didn't address is why userspace would care that it is
> running on exactly "loongson-2f" instead of just mips4.

I think Aurelien answered this.

> The __elf_platform gets converted to a directory name by, so you
> may want to choose a value without '-' in it.

Well I appreciate consistency with GCC flag names, so I'd rather keep
the dash, but then again it's not my decision to make.  In any case,
whoever commits this can adjust the name to his/her liking.

Robert Millan

<Prev in Thread] Current Thread [Next in Thread>