summaryrefslogtreecommitdiff
path: root/sys/src/9/bcm/archbcm.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2019-12-04 22:02:51 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2019-12-04 22:02:51 +0100
commitf48f1a324aaad4616b93ec595d5e0f2e22d12bc4 (patch)
tree6481066d6ec62f330f6453cbe8462efb6343fc31 /sys/src/9/bcm/archbcm.c
parentc9570c14af7780384df818c94700dc8a18a29423 (diff)
bcm: use extended small pages so XN bit can work
the change to support no-execute bits broke the original raspberry pi1, as it uses backwards compatible page table format. to use the XN bit, subpage AP bits have to be disabled using the XP bit in CP15 Control Register c1 Bit 23.
Diffstat (limited to 'sys/src/9/bcm/archbcm.c')
-rw-r--r--sys/src/9/bcm/archbcm.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/src/9/bcm/archbcm.c b/sys/src/9/bcm/archbcm.c
index dd480bc43..d2e138330 100644
--- a/sys/src/9/bcm/archbcm.c
+++ b/sys/src/9/bcm/archbcm.c
@@ -116,12 +116,6 @@ archbcmlink(void)
}
int
-l2ap(int ap)
-{
- return (AP(3, (ap))|AP(2, (ap))|AP(1, (ap))|AP(0, (ap)));
-}
-
-int
cmpswap(long *addr, long old, long new)
{
return cas32(addr, old, new);