From patchwork Mon Mar 18 21:20:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Khryukin X-Patchwork-Id: 228809 X-Patchwork-Delegate: jacmet@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id E906D2C00B8 for ; Tue, 19 Mar 2013 08:21:04 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 2D50A8CE65; Mon, 18 Mar 2013 21:21:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rYI0qhiQHAy7; Mon, 18 Mar 2013 21:20:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 370DA8CE9E; Mon, 18 Mar 2013 21:20:47 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 798B78F74B for ; Mon, 18 Mar 2013 21:20:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8A1938CEFA for ; Mon, 18 Mar 2013 21:20:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4ulsfgvtB6h1 for ; Mon, 18 Mar 2013 21:20:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-la0-f41.google.com (mail-la0-f41.google.com [209.85.215.41]) by whitealder.osuosl.org (Postfix) with ESMTPS id B9AB48CEC8 for ; Mon, 18 Mar 2013 21:20:38 +0000 (UTC) Received: by mail-la0-f41.google.com with SMTP id fo12so6832917lab.0 for ; Mon, 18 Mar 2013 14:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer; bh=TQ50AAdLu7iwtJAsFpiMHoHnXqBRFemsH6xwcVtlxR4=; b=0rXxclusijEG4fvPlYHtI1AnoPXLVbKX6eM2fo/dfZrnI0Uc95mUmn2Tx/jBF4+Eg8 QVMz5Kk+C3NWD+HJHVPdrNcqat9sI+VLpWfMa5jLZ12QBDa+l52p9SFLVSX+ChzrD56/ aHxnRt2CLdnkwgdVZCAb5frOh66iyPDl3DLqL94yva7BIHXOmO00hi5YnVz0q6SQBPlP j2ZR8rIvIuTsIH8xXquWQ+G8gnlaJVvy3P/rBjBa9EiBK40ZXMcwKO4fANU5P0XL+SGj LDsErTftcxi+EcOtQytawU8ezfy5NLZeomXom66SlFCahO6bSJZHVsfXNVVkJ2Px+Uzo U+Ow== X-Received: by 10.112.28.169 with SMTP id c9mr7210263lbh.84.1363641636342; Mon, 18 Mar 2013 14:20:36 -0700 (PDT) Received: from veeneel.mezon.lan (gate-obit.mezon.ru. [37.77.135.198]) by mx.google.com with ESMTPS id kw9sm5920280lbb.4.2013.03.18.14.20.34 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Mar 2013 14:20:35 -0700 (PDT) From: Alexander Khryukin To: buildroot@busybox.net Date: Tue, 19 Mar 2013 01:20:17 +0400 Message-Id: <1363641617-2991-1-git-send-email-alexander@mezon.ru> X-Mailer: git-send-email 1.8.1.5 Subject: [Buildroot] [PATCH 3/3] prcpucfg fixes for nspr aarch64 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Alexander Khryukin --- package/libnspr/nspr-prcpucfg-aarch64.patch | 70 +++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 package/libnspr/nspr-prcpucfg-aarch64.patch diff --git a/package/libnspr/nspr-prcpucfg-aarch64.patch b/package/libnspr/nspr-prcpucfg-aarch64.patch new file mode 100644 index 0000000..70fe49e --- /dev/null +++ b/package/libnspr/nspr-prcpucfg-aarch64.patch @@ -0,0 +1,70 @@ +diff --git a/mozilla/nsprpub/pr/include/md/_linux.cfg b/mozilla/nsprpub/pr/include/md/_linux.cfg +index d0a3bee..2666a4d 100644 +--- a/mozilla/nsprpub/pr/include/md/_linux.cfg ++++ b/mozilla/nsprpub/pr/include/md/_linux.cfg +@@ -861,6 +861,52 @@ + #define PR_BYTES_PER_WORD_LOG2 2 + #define PR_BYTES_PER_DWORD_LOG2 3 + ++#elif defined(__aarch64__) ++ ++#define IS_LITTLE_ENDIAN 1 ++#undef IS_BIG_ENDIAN ++#define IS_64 ++ ++#define PR_BYTES_PER_BYTE 1 ++#define PR_BYTES_PER_SHORT 2 ++#define PR_BYTES_PER_INT 4 ++#define PR_BYTES_PER_INT64 8 ++#define PR_BYTES_PER_LONG 8 ++#define PR_BYTES_PER_FLOAT 4 ++#define PR_BYTES_PER_DOUBLE 8 ++#define PR_BYTES_PER_WORD 8 ++#define PR_BYTES_PER_DWORD 8 ++ ++#define PR_BITS_PER_BYTE 8 ++#define PR_BITS_PER_SHORT 16 ++#define PR_BITS_PER_INT 32 ++#define PR_BITS_PER_INT64 64 ++#define PR_BITS_PER_LONG 64 ++#define PR_BITS_PER_FLOAT 32 ++#define PR_BITS_PER_DOUBLE 64 ++#define PR_BITS_PER_WORD 64 ++ ++#define PR_BITS_PER_BYTE_LOG2 3 ++#define PR_BITS_PER_SHORT_LOG2 4 ++#define PR_BITS_PER_INT_LOG2 5 ++#define PR_BITS_PER_INT64_LOG2 6 ++#define PR_BITS_PER_LONG_LOG2 6 ++#define PR_BITS_PER_FLOAT_LOG2 5 ++#define PR_BITS_PER_DOUBLE_LOG2 6 ++#define PR_BITS_PER_WORD_LOG2 6 ++ ++#define PR_ALIGN_OF_SHORT 2 ++#define PR_ALIGN_OF_INT 4 ++#define PR_ALIGN_OF_LONG 8 ++#define PR_ALIGN_OF_INT64 8 ++#define PR_ALIGN_OF_FLOAT 4 ++#define PR_ALIGN_OF_DOUBLE 8 ++#define PR_ALIGN_OF_POINTER 8 ++#define PR_ALIGN_OF_WORD 8 ++ ++#define PR_BYTES_PER_WORD_LOG2 3 ++#define PR_BYTES_PER_DWORD_LOG2 3 ++ + #else + + #error "Unknown CPU architecture" +diff --git a/mozilla/nsprpub/pr/include/md/_linux.h b/mozilla/nsprpub/pr/include/md/_linux.h +index 4992b77..671ad8a 100644 +--- a/mozilla/nsprpub/pr/include/md/_linux.h ++++ b/mozilla/nsprpub/pr/include/md/_linux.h +@@ -53,6 +53,8 @@ + #define _PR_SI_ARCHITECTURE "avr32" + #elif defined(__m32r__) + #define _PR_SI_ARCHITECTURE "m32r" ++#elif defined(__aarch64__) ++#define _PR_SI_ARCHITECTURE "aarch64" + #else + #error "Unknown CPU architecture" + #endif