diff options
author | Benji Dial <benji6283@gmail.com> | 2021-06-21 17:47:13 -0400 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2021-06-21 17:47:13 -0400 |
commit | f57e2eabe0a10c9732c83532e01654a499fb8dcf (patch) | |
tree | cbf91a23fcdd65e0ea7ed55b0940ca7042d59bef /src/kernel/kbd.c | |
parent | 83835306d57461205a7bcfef9f4c3e06bc504006 (diff) | |
download | portland-os-f57e2eabe0a10c9732c83532e01654a499fb8dcf.tar.gz |
many, many changes; settings is broken
Diffstat (limited to 'src/kernel/kbd.c')
-rw-r--r-- | src/kernel/kbd.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/kernel/kbd.c b/src/kernel/kbd.c index ce25397..3c49382 100644 --- a/src/kernel/kbd.c +++ b/src/kernel/kbd.c @@ -10,8 +10,8 @@ #include "kbd.h" #include "log.h" -#define SCANTAB_DIR "sys/scantabs/" -#define SCANTAB_DIR_LEN 13 +#define SCANTAB_DIR "/sys/scantabs/" +#define SCANTAB_DIR_LEN 14 enum { PS2_CMD = 0x64, @@ -97,7 +97,10 @@ void init_kbd() { scantab_path[SCANTAB_DIR_LEN + layout_len + 3] = 't'; scantab_path[SCANTAB_DIR_LEN + layout_len + 4] = '\0'; logf(LOG_INFO, "Using scantab file at \"%s\".", scantab_path); - file_id_t stf = drives->get_file(drives, scantab_path); + struct drive *d; + const char *f; + map_path(scantab_path, &d, &f); + file_id_t stf = drives->get_file(d, f); if (!stf) PANIC("could not load scantab file."); |