summaryrefslogtreecommitdiff
path: root/sys/src/9/bcm/coproc.c
AgeCommit message (Collapse)Author
2018-11-07bcm: speed up co-processor operations by avoiding i+d cache flush on each ↵cinap_lenrek
operation coproc.c generated the instrucitons anew each time, requiering a i+d cache flush for each operation. instead, we can speed this up like this: given that the coprocessor registers are per cpu, we can assume that interrupts have already been disabled by the caller to prevent a process switch to another cpu. we cache the instructions generated in a static append only buffer and maintain separate end pointers for each cpu. the cache flushes only need to be done when new operations have been added to the buffer.
2013-01-26add raspberry pi kernel (from sources)cinap_lenrek