From 3aaf71a60053276ff20beede7f50bf0d35cf1f7a Mon Sep 17 00:00:00 2001 From: Siarzhuk Zharski Date: Sun, 16 Oct 2011 17:19:46 +0000 Subject: [PATCH] Fix for reported keyboard id endiannes. I'm sorry for the extra noise. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42867 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/bus_managers/ps2/ps2_keyboard.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/add-ons/kernel/bus_managers/ps2/ps2_keyboard.cpp b/src/add-ons/kernel/bus_managers/ps2/ps2_keyboard.cpp index fcbf6f686d..d4a36cd4f6 100644 --- a/src/add-ons/kernel/bus_managers/ps2/ps2_keyboard.cpp +++ b/src/add-ons/kernel/bus_managers/ps2/ps2_keyboard.cpp @@ -522,7 +522,8 @@ keyboard_ioctl(void *_cookie, uint32 op, void *buffer, size_t length) case KB_GET_KEYBOARD_ID: { TRACE("ps2: ioctl KB_GET_KEYBOARD_ID\n"); - return user_memcpy(buffer, &sKeyboardIds, sizeof(sKeyboardIds)); + uint16 keyboardId = sKeyboardIds[1] << 8 | sKeyboardIds[0]; + return user_memcpy(buffer, &keyboardId, sizeof(keyboardId)); } case KB_SET_CONTROL_ALT_DEL_TIMEOUT: