From patchwork Tue Oct 22 18:33:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rolf Eike Beer X-Patchwork-Id: 3084451 Return-Path: X-Original-To: patchwork-linux-parisc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1F7ED9F372 for ; Tue, 22 Oct 2013 18:40:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8AE232049B for ; Tue, 22 Oct 2013 18:40:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7128820497 for ; Tue, 22 Oct 2013 18:40:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754125Ab3JVSkQ (ORCPT ); Tue, 22 Oct 2013 14:40:16 -0400 Received: from mail.sf-mail.de ([62.27.20.61]:45922 "EHLO mail.sf-mail.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753077Ab3JVSkP (ORCPT ); Tue, 22 Oct 2013 14:40:15 -0400 Received: (qmail 17138 invoked from network); 22 Oct 2013 18:33:31 -0000 Received: from dslb-178-003-068-012.pools.arcor-ip.net ([::ffff:178.3.68.12]:57947 HELO caliban.sf-tec.de) (auth=eike@sf-mail.de) by mail.sf-mail.de (Qsmtpd 0.23svn) with (DHE-RSA-AES256-SHA encrypted) ESMTPSA for ; Tue, 22 Oct 2013 20:33:31 +0200 From: Rolf Eike Beer To: linux-parisc Cc: trinity@vger.kernel.org Subject: Trinity for PA-RISC Date: Tue, 22 Oct 2013 20:33:20 +0200 Message-ID: <3514559.IZDIRJtZo8@caliban.sf-tec.de> User-Agent: KMail/4.11.2 (Linux/3.11.4-1.g042c434-desktop; KDE/4.11.2; x86_64; ; ) MIME-Version: 1.0 Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_TVD_MIME_EPI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi all, out of boredom I did the first steps to port trinity to PA-RISC. The second patch is needed to get it compile, but since those headers are apparently not needed on other archs I suspect something is wrong with the PA-RISC headers. The implementation for some syscalls is missing, I just picked up what was available by default. Also everything currently is 32 bit. In contrast to what other archs do there currently is only a 32 bit userspace on PA-RISC, but there are many systems with a 64 bit userspace. I have the hope that one of the usual suspects would use this to hammer on the kernel and fix the fallout. ;) Eike From 3bb732227732e7577fe3e7c37a46eb05bea63cdc Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Tue, 22 Oct 2013 18:42:32 +0200 Subject: [PATCH 2/2] add more headers to fix compile on PA-RISC --- syscalls/msgrcv.c | 1 + syscalls/msgsnd.c | 1 + 2 files changed, 2 insertions(+) diff --git a/syscalls/msgrcv.c b/syscalls/msgrcv.c index 2200472..5585b99 100644 --- a/syscalls/msgrcv.c +++ b/syscalls/msgrcv.c @@ -1,6 +1,7 @@ /* * SYSCALL_DEFINE5(msgrcv, int, msqid, struct msgbuf __user *, msgp, size_t, msgsz, long, msgtyp, int, msgflg) */ +#include #include #include "compat.h" #include "sanitise.h" diff --git a/syscalls/msgsnd.c b/syscalls/msgsnd.c index 3e3a91d..9eaf3d6 100644 --- a/syscalls/msgsnd.c +++ b/syscalls/msgsnd.c @@ -1,6 +1,7 @@ /* * SYSCALL_DEFINE4(msgsnd, int, msqid, struct msgbuf __user *, msgp, size_t, msgsz, int, msgflg) */ +#include #include #include "compat.h" #include "sanitise.h" -- 1.8.3.2