9front - general discussion about 9front
 help / color / mirror / Atom feed
From: adventures in9 <adventuresin9@gmail.com>
To: 9front@9front.org
Subject: [9front] [PATCH] sysrpoc.c; add support for 16k segment for spim
Date: Thu, 20 Oct 2022 17:36:21 -0700	[thread overview]
Message-ID: <CAPfmpJAC7wrdP6AgfRfTWc0yRTYXpy3yPh3Et7s8fG5v8rTxOA@mail.gmail.com> (raw)

This is needed to run spim processes on the mt7688.  Basically just
copied the mips one and changed it for the aout magic used by spim.

---------
diff 2cd313668cea156fd13b54873d7934d9b15d8081 uncommitted
--- a/sys/src/9/port/sysproc.c
+++ b/sys/src/9/port/sysproc.c
@@ -369,6 +369,9 @@
                 case R_MAGIC:    /* 64K segment alignment for arm64 */
                     align = 0xffff;
                     break;
+                case P_MAGIC:    /* 16k segment alignment for spim */
+                    align = 0x3fff;
+                    break;
                 }
                 break; /* for binary */
             }

                 reply	other threads:[~2022-10-21  0:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPfmpJAC7wrdP6AgfRfTWc0yRTYXpy3yPh3Et7s8fG5v8rTxOA@mail.gmail.com \
    --to=adventuresin9@gmail.com \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).