From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 1910 invoked from network); 27 Jan 2023 21:11:06 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 27 Jan 2023 21:11:06 -0000 Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob1.topicbox.com (Postfix) with ESMTP id 1B9D91DF73 for ; Fri, 27 Jan 2023 16:11:04 -0500 (EST) (envelope-from bounce.mM3df698a73959945f954ae172.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id 05E8DAFAED9; Fri, 27 Jan 2023 16:11:04 -0500 (EST) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=IARfzWy9 header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=adventuresin9@gmail.com smtp.helo=mail-lf1-f45.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:list-help:list-id:list-post :list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1674853863; bh=HAXSRzi0JN5RCHQX h474F220dCuwUm5GmQEloW4NT70=; b=ZbZSoNNNzfw49XCHvet1TY32mhV91XGt 0XVvCpQLEnNYD6C1mSqABMisXkgaJBduM0CugWZur+Kw/LwoGChR0PGSCtZvUsr9 GS88EXS/+kpwhJYG29u8ZO0934SRnFqMg2tA/p2FTKZ2mYsFCCq47wVUoSoD/zko Q5i1TX7MyUg= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1674853863; b=g/N1O0HyRtsfKb7wh0qwCFvZHII0RlQvXSDOyDsDJC+Df9EF2P MFxs9O4PxdDe/MxItVzUtZIjCPteIxlkLQuR2VtdD2kEo9CHIM4a+dObkyvWHiTY E6AKCMsjYgnCF6psP/hfx8sgvkYlHb6IFT3n3X+YqxUTAAXb3aQM8gZiM= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=IARfzWy9 header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=adventuresin9@gmail.com smtp.helo=mail-lf1-f45.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=IARfzWy9 header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.167.45 (mail-lf1-f45.google.com); spf=pass smtp.mailfrom=adventuresin9@gmail.com smtp.helo=mail-lf1-f45.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=i86n4O3/; x-me-sender=none; x-ptr=pass smtp.helo=mail-lf1-f45.google.com policy.ptr=mail-lf1-f45.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h= mime-version:references:in-reply-to:from:date:message-id:subject :to:content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; t=1674853863; x=1674940263; bh=4A4KHLVXBtmMPLq/JBvesnIo6uN3uNTG aBUZ3jbVkL0=; b=ik6L7UVxeIj8nvyTUgOhAzjsj/ToqLll0vN6GK7Cg72WdAK4 6a0ou7QRDgPITFSvs7pD7Oryhj0t03mzsL1LLNwAZwwed+kMAzj6AFJ7c+ApXCpt D2Z8yjLuwodjYEqrVQnPyc9K0MQ1OuR4bPPFznblA7/y7FzxoixNty+rnuc= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 42B95AFAA93 for <9fans@9fans.net>; Fri, 27 Jan 2023 16:10:46 -0500 (EST) (envelope-from adventuresin9@gmail.com) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id 30D0CAE8764; Fri, 27 Jan 2023 16:10:46 -0500 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1674853846; b=ZV0wbQProv3gWy+1G3MrvhJa3saaWvGXdODQJaXNvffIFGEkZK XrUniXgEvoyNo5aWW1vC0D0Et3TO5SphM7CoeGGJ+QI4/UG+KJNVOunNBFX0ILgh xwaMhLoGLLjBXS57D3ZyGACuzOULLCqQ94/808Pa04SrNp/MhP5315FPLB5j3QOi MjLWtClIy8KWn8neWqdS5409DrboL92khpF+beKBAZnMj2/A1QEGJyb8ZF+zX5kt F1GTCWn0FiDKR8LgTa+jYUVyyYCDDoRPqvdEEMgmNF6hKa1GnYLVRzK+p+mSNuJN Zay+gHozsDlMRU23PyLBgzbdcRTQ84bIU9rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=arcseal; t=1674853846; bh=aNIUOpWX40i897hHvxewuBteGFp5hWlcOgygGHWGeZg=; b=rf3bL9LTr7UA iYenV956g2j2eg4UUzT/UO7E3yVbYeIy0NqgjqC6r/Jcp0/oe35SHS2xbdJ7wXP1 c20HVTiEZK3yj6V8/S062sG4OU8llG5bNkqrCHG7kzNHz2uDtv++kt57EiHZigDb irUkGleCcQHClRlm2BtfNsqjJlEeomzdYVugF1pjdFMyZgsUClK+nlJVOQY+U0gO uFqf8zFuqFs+cz9h52mV1cgiqBswTvgrs/0wpvVK1TuI9lGmGsdH+kjA3SBy6xqn R+Sv/W7dFol1RreeubapRoefaEHfgI7rJg/f0M5CiGS5DUjXYO7ZyE95bo3kqTmx OPGTlzxAvQ== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=IARfzWy9 header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.167.45 (mail-lf1-f45.google.com); spf=pass smtp.mailfrom=adventuresin9@gmail.com smtp.helo=mail-lf1-f45.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=i86n4O3/; x-me-sender=none; x-ptr=pass smtp.helo=mail-lf1-f45.google.com policy.ptr=mail-lf1-f45.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvhedruddviedgudeghecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepgghfjg fhfffkuffvtgesthdtredttddtjeenucfhrhhomheprgguvhgvnhhtuhhrvghsuchinhel uceorgguvhgvnhhtuhhrvghsihhnleesghhmrghilhdrtghomheqnecuggftrfgrthhtvg hrnhepfedtffeivdfgveffiefhvddvhfetgedujeejkeetledtheduleevgfekjeduleeg necuffhomhgrihhnpehtohhpihgtsghogidrtghomhenucfkphepvddtledrkeehrdduie ejrdegheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvtdel rdekhedrudeijedrgeehpdhhvghlohepmhgrihhlqdhlfhduqdhfgeehrdhgohhoghhlvg drtghomhdpmhgrihhlfhhrohhmpeeorgguvhgvnhhtuhhrvghsihhnleesghhmrghilhdr tghomheq X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'adventuresin9@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="adventuresin9@gmail.com"; helo=mail-lf1-f45.google.com; client-ip=209.85.167.45 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Fri, 27 Jan 2023 16:10:45 -0500 (EST) (envelope-from adventuresin9@gmail.com) Received: by mail-lf1-f45.google.com with SMTP id v17so4192084lfd.7 for <9fans@9fans.net>; Fri, 27 Jan 2023 13:10:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aNIUOpWX40i897hHvxewuBteGFp5hWlcOgygGHWGeZg=; b=i86n4O3/4yHrDH2eUaRnng6nV4a5plK6rzJvGDsYBl6MFZ/rB7+8k069wmCHnDpq32 0+GdKPQV+XIhOtM7MzL8FuiHGY2UWo/2krUVc+Bv/6McpNtOl+kzeOPbMTmlfnkS3OJ7 pyQzUyp+AMftGBhk88Sligu27RIYw00+8M3xMuYZWTFdlF7bhp0c6/cZCTKlu1Li2QTI x/tMEOgu86pDt2w9IBznMKKGxfwIVytmhvdajS4jy3c31cYMuojxqAnzmebfw/OfCC0X 66OGrEyBb0NlhNaIDB1CFP0i+iDI9GJG6AelR1mdV3NCon1QZX+MI3nwRDhNVef5OCFj 6cpQ== X-Gm-Message-State: AFqh2kod4qx2A4QRk+dEuBWMMTrS60H0N+QC6aFWsWMSKvQ1n2Tmn9rt E/0LKM3+iHqwu9DUkzkRVlWp3CjSloLJt6GI3qDvCX6U X-Google-Smtp-Source: AMrXdXuV6g+tkNWr6B9yFT11N2ozq5y3KfkskBaW1vPvKFBqpJZz3V0tfy+XudsLLbSSUZHfnBmjVY2/yl5YkubYZJc= X-Received: by 2002:a05:6512:2384:b0:4cb:eb9:c98f with SMTP id c4-20020a056512238400b004cb0eb9c98fmr5015512lfv.31.1674853843934; Fri, 27 Jan 2023 13:10:43 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: adventures in9 Date: Fri, 27 Jan 2023 13:10:32 -0800 Message-ID: Subject: Re: [9fans] spim syscall stack adjustment To: 9fans <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 13e8fc06-9e87-11ed-b742-8da9482c71f1 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UNTg5ZmE1NTMxM2FiYmRiNC1NM2RmNjk4YTczOTU5OTQ1Zjk1NGFl?= =?UTF-8?B?MTcyPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: quoted-printable List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M3df698a73959945f954ae172:1:w8Tue4hIaM62oUzjw8sR8Sz-gBmMEUUVUidFoGwHq8Q I could try and build a spim world without the ADD in syscall to see what happens. It might be a week or 2 before I can find the time. As for why it does it. I never really looked into it. I figured it was just another endian issue. I had enough bugs that when I got past that one I just moved on to the next. But I do need to set up a fresh 9 Front install to go through and get patches for all the mips and spim stuff. I also have a big-endian Atheros/Qualcomm chip that I need to get around to building a kernel for, and then there will be a close to 1 to 1 chip to compare mips and spim stuff. On Thu, Jan 26, 2023 at 6:47 PM Anthony Martin wrote: >=20 > Does anyone know why the libc system call functions for > spim add four to the stack pointer (R29) before issuing > the SYSCALL instruction? >=20 > /sys/src/libc/9syscall/mkfile:/spim >=20 > It was introduced in the third edition but there were > never any spim kernels released so I wasn't able to > compare the libc additions to the trap code. >=20 > I was watching one of adventuresin9's videos about his > ongoing port to the MediaTek MT7688 and he mentioned > having to modify the stack offsets in the syscall trap > handler just as cherry9 had done for the loongson port. >=20 > Is there any reason not to simply get rid of that ADD $4? >=20 > Cheers, > Anthony ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T589fa55313abbdb4-M3df69= 8a73959945f954ae172 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription