Skip to content

Commit

Permalink
rspq: fix switch to dynamic buffer
Browse files Browse the repository at this point in the history
Same fix as 4812bb0: do not force a specific dynamic buffer, just let
the RSP select the next one.
  • Loading branch information
rasky committed Oct 26, 2023
1 parent 72a313d commit dff9028
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/rspq/rspq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1374,10 +1374,7 @@ void rspq_wait(void)
// in the case the RDP is still pointing to a static buffer (after a block
// is just finished). This allows the user to safely free the static buffer
// after rspq_wait(), as intuition would suggest.
void *rdp_buf = rspq_rdp_dynamic_buffers[0];
void *rdp_buf_end = rdp_buf + RDPQ_DYNAMIC_BUFFER_SIZE;
rspq_int_write(RSPQ_CMD_RDP_SET_BUFFER,
PhysicalAddr(rdp_buf), PhysicalAddr(rdp_buf), PhysicalAddr(rdp_buf_end));
rspq_int_write(RSPQ_CMD_RDP_SET_BUFFER, 0, 0, 0);
}

// Wait until RSP has finished processing the queue
Expand Down

0 comments on commit dff9028

Please sign in to comment.