diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-03-27 20:57:01 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-03-27 20:57:01 +0200 |
commit | 04c3a6f66e3b895a087124ed415f01e23e21ee10 (patch) | |
tree | 7efd53b8b1d4cc461401ef5a2ecb2fdba13b70f8 /sys/src/9/ppc | |
parent | bf2195b88c9c1483d97cb4578f81467cad73c39e (diff) |
zynq: introduce SG_FAULT to prevent access to AXI segment while PL is not ready
access to the axi segment hangs the machine when the fpga
is not programmed yet. to prevent access, we introduce a
new SG_FAULT flag, that when set on the Segment.type or
Physseg.attr, causes the fault handler to immidiately
return with an error (as if the segment would not be mapped).
during programming, we temporarily set the SG_FAULT flag
on the axi physseg, flush all processes tlb's that have
the segment mapped and when programming is done, we clear
the flag again.
Diffstat (limited to 'sys/src/9/ppc')
-rw-r--r-- | sys/src/9/ppc/m8260.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/ppc/m8260.c b/sys/src/9/ppc/m8260.c index 0c441a209..4b283266a 100644 --- a/sys/src/9/ppc/m8260.c +++ b/sys/src/9/ppc/m8260.c @@ -445,7 +445,7 @@ addseg(char *name, ulong start, ulong length) kstrdup(&segbuf.name, name); segbuf.pa = start; segbuf.size = length; - if (addphysseg(&segbuf) == -1) { + if (addphysseg(&segbuf) == nil) { print("addphysseg: %s\n", name); return; } |