9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] [PATCH] sysrpoc.c; add support for 16k segment for spim
@ 2022-10-21  0:36 adventures in9
  0 siblings, 0 replies; only message in thread
From: adventures in9 @ 2022-10-21  0:36 UTC (permalink / raw)
  To: 9front

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 */
             }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-21  0:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-21  0:36 [9front] [PATCH] sysrpoc.c; add support for 16k segment for spim adventures in9

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).