summaryrefslogtreecommitdiff
path: root/sys/src/9/kw/arch.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-06-19 10:27:26 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-06-19 10:27:26 +0200
commit575015d2b023e5707293830186581f03c33aa90a (patch)
tree5e2394872fbdce314e123357fe94863a527dcf1f /sys/src/9/kw/arch.c
parente6220b39c97171fe9372e2b14a94dd555e0dc0f5 (diff)
kernel: do not pull in atom.s from libc for arm kernels
- provide our own copy of cas() in l.s - replace use of libc ainc()/adec() with portable incref()/decref()
Diffstat (limited to 'sys/src/9/kw/arch.c')
-rw-r--r--sys/src/9/kw/arch.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/sys/src/9/kw/arch.c b/sys/src/9/kw/arch.c
index fc1734b63..d59c5794c 100644
--- a/sys/src/9/kw/arch.c
+++ b/sys/src/9/kw/arch.c
@@ -172,32 +172,6 @@ userureg(Ureg* ureg)
return (ureg->psr & PsrMask) == PsrMusr;
}
-/*
- * atomic ops
- * make sure that we don't drag in the C library versions
- */
-int
-ainc(int *p)
-{
- int s, v;
-
- s = splhi();
- v = ++*p;
- splx(s);
- return v;
-}
-
-int
-adec(int *p)
-{
- int s, v;
-
- s = splhi();
- v = --*p;
- splx(s);
- return v;
-}
-
int
cas32(void* addr, u32int old, u32int new)
{