aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall/actions/sys_scancode.c
blob: 612326adcd89485baf3d3727879adbf36e7b7757 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include <stdint.h>
#include <kernel/input/input.h>
#include <kernel/io/io.h>

uint32_t sys_scancode()
{
	sti();
	uint32_t key = wait_scancode();
	cli();
	return key;
}