linux-mips
[Top] [All Lists]

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

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Re: [PATCH] Enable AT_PLATFORM for Loongson 2F CPU
From: Robert Millan <rmh@gnu.org>
Date: Thu, 11 Nov 2010 15:47:35 +0100
Cc: wu zhangjin <wuzhangjin@gmail.com>, David Daney <ddaney@caviumnetworks.com>, Aurelien Jarno <aurelien@aurel32.net>, linux-mips@linux-mips.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:subject:to :cc:references:in-reply-to:x-mailer:message-id:mime-version :content-type; bh=CF+CDz0EY6LLLYN6cvWUD9FP7j7zAXobvo9oOGwTjHc=; b=R9/2FjO8NUys0fPHYEqmxndHj0p012l6ERADux7nG0EI2O8wmY7K+DULWuA3QfJ5zq wshf4KVW1JByCNNqNbauAXmGzfBEjCbYWtESTYojZuLuVWkeMp3CSo11qziVn+FtNO/i 3/nOJgZaj5JiDGj/DSnElThn3xFJMm3vE2lyU=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:subject:to:cc:references:in-reply-to:x-mailer :message-id:mime-version:content-type; b=XuazlcYThTdoK/wQ5mkdqLUfhZjr9dwhtdA44iDCBtQAxWlOzeu/6Ozah5vyVRdS6/ FwPAyP91tsZEydyFv//aGi33T81/rksy2XKvIAuGmOMBo5OORrMhdv7Qdj64NhUQDipQ vSG0uRuns7ADJ4ybWdlxYww3ZhC5k6J1qRhe4=
In-reply-to: <20101109154055.GD10799@linux-mips.org> (from ralf@linux-mips.org on Tue Nov 9 16:40:55 2010)
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1289305442.31389.0@thorin> <20101109154055.GD10799@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
El 09/11/10 16:40:55, en/na Ralf Baechle va escriure:
> Cavium introduced this idion first.  Now your patch is repeating it
> and I'm
> sure other SMP platforms will soon use it.   I don't want a thousand
> if (cpu == 0) in that file, so can you cook a patch that introduces a
> helper, something like
> 
> static void set_elf_platform(const char *plat)
> {
>       if (cpu == 0)
>               __elf_platform = plat;
> }
> 
> Then use that for all assignments to __elf_platform?  Thanks.

Here.

Attachment: loongson2f.diff
Description: Text Data

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