summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2008-05-21 13:49:03 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2008-05-21 13:49:03 +0000
commit29413c76ab0e46b21d90c9f1a4e966669233d5a4 (patch)
treedb54f5eb98d95c673333d7cf73dcbf5341600583
parent4cc35fdfa9d80f976f29b5cc9f8de1a558e6b31a (diff)
downloadcoreboot-29413c76ab0e46b21d90c9f1a4e966669233d5a4.tar.xz
Add KEY_ESC (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3342 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--payloads/coreinfo/coreinfo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/payloads/coreinfo/coreinfo.c b/payloads/coreinfo/coreinfo.c
index 193da3d2d4..6055925f13 100644
--- a/payloads/coreinfo/coreinfo.c
+++ b/payloads/coreinfo/coreinfo.c
@@ -22,6 +22,8 @@
#define SCREEN_Y 25
#define SCREEN_X 80
+#define KEY_ESC 27
+
extern struct coreinfo_module cpuinfo_module;
extern struct coreinfo_module pci_module;
extern struct coreinfo_module coreboot_module;
@@ -256,7 +258,7 @@ static void loop(void)
}
}
- if (key == 0x1B)
+ if (key == KEY_ESC)
return;
handle_category_key(&categories[curwin], key);