summaryrefslogtreecommitdiff
path: root/payloads/libpayload/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/drivers')
-rw-r--r--payloads/libpayload/drivers/keyboard.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/payloads/libpayload/drivers/keyboard.c b/payloads/libpayload/drivers/keyboard.c
index 6431336863..23c87803a8 100644
--- a/payloads/libpayload/drivers/keyboard.c
+++ b/payloads/libpayload/drivers/keyboard.c
@@ -32,6 +32,7 @@
#include <libpayload.h>
#define I8042_CMD_DIS_KB 0xad
+#define POWER_BUTTON 0x90
struct layout_maps {
const char *country;
@@ -255,6 +256,9 @@ int keyboard_getchar(void)
}
}
+ if (ch == 0x5e)
+ ret = POWER_BUTTON;
+
return ret;
}