Skip to content

Commit

Permalink
devio: make insq nicer on compilers that need regptr hints
Browse files Browse the repository at this point in the history
  • Loading branch information
EtchedPixels committed Oct 18, 2023
1 parent 8b9f325 commit daba5d6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Kernel/devio.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,9 @@ int no_ioctl(uint_fast8_t minor, uarg_t a, char *b)
*/

/* add something to the tail of the queue. */
bool insq(struct s_queue * q, uint_fast8_t c)
bool insq(struct s_queue * qp, uint_fast8_t c)
{
regptr struct s_queue *q = qp;
bool r;

irqflags_t irq = di();
Expand All @@ -494,8 +495,9 @@ bool insq(struct s_queue * q, uint_fast8_t c)


/* Remove something from the head of the queue. */
bool remq(struct s_queue * q, uint_fast8_t *cp)
bool remq(struct s_queue * qp, uint_fast8_t *cp)
{
regptr struct s_queue *q = qp;
bool r;

irqflags_t irq = di();
Expand All @@ -516,8 +518,9 @@ bool remq(struct s_queue * q, uint_fast8_t *cp)


/* Clear the queue to empty conditions. (UZI280 addition) */
void clrq(struct s_queue *q)
void clrq(struct s_queue *qp)
{
regptr struct s_queue *q = qp;
irqflags_t irq = di();

q->q_head = q->q_tail = q->q_base;
Expand All @@ -528,8 +531,9 @@ void clrq(struct s_queue *q)


/* Remove something from the tail; the most recently added char. */
bool uninsq(struct s_queue *q, uint_fast8_t *cp)
bool uninsq(struct s_queue *qp, uint_fast8_t *cp)
{
regptr struct s_queue *q = qp;
bool r;
irqflags_t irq = di();

Expand Down

0 comments on commit daba5d6

Please sign in to comment.