From fe35b8ae0785fff7d33e18b62e3b435cfd5a5475 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sun, 21 Nov 2010 12:17:01 -0800 Subject: packet_router: split control transaction for commit into two lines --- firmware/microblaze/lib/pkt_ctrl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'firmware/microblaze/lib') 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); } -- cgit v1.2.3