diff options
author | Josh Blum <josh@joshknows.com> | 2010-11-21 12:17:01 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-12-11 18:43:09 -0800 |
commit | fe35b8ae0785fff7d33e18b62e3b435cfd5a5475 (patch) | |
tree | 0147082dfd5137267740ca9efad6217719628353 /firmware/microblaze/lib | |
parent | 9f28245c26c46e57448c4d8f3a2c4e038d6abd2a (diff) | |
download | uhd-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.c | 3 |
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); } |