Skip to content

Commit

Permalink
Remove some things that shouldn't be there
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 committed Mar 9, 2025
1 parent e854c5b commit 1ca2aab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
3 changes: 0 additions & 3 deletions src/device/kbc_at_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ kbc_at_dev_queue_add(atkbc_dev_t *dev, uint8_t val, uint8_t main)
{
if (main) {
kbc_at_dev_log("%s: dev->queue[%02X] = %02X;\n", dev->name, dev->queue_end, val);
if (!is_cpu_thread && kbc_at_dev_queue_pos(dev, 1) == dev->fifo_mask) {
while (kbc_at_dev_queue_pos(dev, 1) == dev->fifo_mask) {}
}
dev->queue[dev->queue_end] = val;
dev->queue_end = (dev->queue_end + 1) & dev->fifo_mask;
} else {
Expand Down
11 changes: 2 additions & 9 deletions src/include/86box/keyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@
#ifndef EMU_KEYBOARD_H
#define EMU_KEYBOARD_H

#ifdef __cplusplus
# include <atomic>
using atomic_uint = std::atomic_uint;
#else
# include <stdatomic.h>
#endif

enum {
DEV_KBD = 0,
DEV_AUX = 1
Expand Down Expand Up @@ -69,8 +62,8 @@ typedef struct atkbc_dev_t {
uint8_t rate;
uint8_t cmd_queue_start;
uint8_t cmd_queue_end;
atomic_uint queue_start;
atomic_uint queue_end;
uint8_t queue_start;
uint8_t queue_end;

uint16_t flags;

Expand Down

0 comments on commit 1ca2aab

Please sign in to comment.