summaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-11-21 12:17:01 -0800
committerJosh Blum <josh@joshknows.com>2010-12-11 18:43:09 -0800
commitfe35b8ae0785fff7d33e18b62e3b435cfd5a5475 (patch)
tree0147082dfd5137267740ca9efad6217719628353 /firmware/microblaze/lib
parent9f28245c26c46e57448c4d8f3a2c4e038d6abd2a (diff)
downloaduhd-fe35b8ae0785fff7d33e18b62e3b435cfd5a5475.tar.gz
uhd-fe35b8ae0785fff7d33e18b62e3b435cfd5a5475.tar.bz2
uhd-fe35b8ae0785fff7d33e18b62e3b435cfd5a5475.zip
packet_router: split control transaction for commit into two lines
Diffstat (limited to 'firmware/microblaze/lib')
-rw-r--r--firmware/microblaze/lib/pkt_ctrl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/microblaze/lib/pkt_ctrl.c b/firmware/microblaze/lib/pkt_ctrl.c
index a1e9ec1fe..9f662122d 100644
--- a/firmware/microblaze/lib/pkt_ctrl.c
+++ b/firmware/microblaze/lib/pkt_ctrl.c
@@ -78,7 +78,8 @@ void *pkt_ctrl_claim_outgoing_buffer(void){
}
void pkt_ctrl_commit_outgoing_buffer(size_t num_lines){
- set_control((1 << OUT_HS_BIT) | (num_lines << 16), (1 << OUT_HS_BIT) | (0xffff << 16));
+ set_control(num_lines << 16, 0xffff << 16);
+ set_control_bit(OUT_HS_BIT);
while (is_status_bit_set(OUT_HS_BIT)){}
clr_control_bit(OUT_HS_BIT);
}