diff options
| author | Miguel <m.i@gmx.at> | 2018-10-04 00:53:30 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-10-04 00:53:30 +0200 |
| commit | ce16fe524c14ccaae67fb634105da5aef08ead48 (patch) | |
| tree | 03990f29389bd4c55f40b804b809c7060c24c739 /driver/mouse.c | |
| parent | a455cd5af26bf8731e7c981a9421b16ab34dae6f (diff) | |
moving framebuffer access completely to userspace
Diffstat (limited to 'driver/mouse.c')
| -rw-r--r-- | driver/mouse.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/driver/mouse.c b/driver/mouse.c index 810cb83..274c9a5 100644 --- a/driver/mouse.c +++ b/driver/mouse.c @@ -81,8 +81,7 @@ static void mouse_write(uint8_t a_write) uint32_t mouse_interrupt(uint32_t esp) { - uint8_t b=x86_inb(0x60); - ringbuffer_put(&mouse_in,b); + if(!ringbuffer_put(&mouse_in,x86_inb(0x60)))kpanic("full"); return esp; } |
