aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}