]> xenbits.xensource.com Git - seabios.git/commitdiff
Remove "noinline" declarations from keyboard/mouse driver code.
authorKevin O'Connor <kevin@koconnor.net>
Mon, 28 May 2012 18:42:16 +0000 (14:42 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 31 May 2012 01:05:18 +0000 (21:05 -0400)
Now that the extra stack is used for keyboard and mouse driver code,
there is no reason to set noinline (which was done to try and conserve
stack space).

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/kbd.c
src/mouse.c
src/usb-hid.c
src/usb.c

index 0da13a1b70fec9d040c0ea31c3549b11948656ae..0aa89886e8eced77715edff6ecc149667aff6d47 100644 (file)
--- a/src/kbd.c
+++ b/src/kbd.c
@@ -378,10 +378,8 @@ static struct scaninfo {
     { 0x8600, 0x8800, 0x8a00, 0x8c00, none }, /* F12 */
 };
 
-// Handle a scancode read from the ps2 port.  Note that "noinline" is
-// used to make sure the call to call16_int in process_key doesn't
-// have the overhead of this function's stack.
-static void noinline
+// Handle a ps2 style scancode read from the keyboard.
+static void
 __process_key(u8 scancode)
 {
     u8 flags0 = GET_BDA(kbd_flag0);
index ece69db04718d80291ca81bcf62d301bd419e34e..e4b25e0e5d36f4788453e8ed1bf4d9a566f23b85 100644 (file)
@@ -303,7 +303,7 @@ invoke_mouse_handler(u16 ebda_seg)
         : "edi", "esi", "cc", "memory");
 }
 
-void noinline
+void
 process_mouse(u8 data)
 {
     if (!CONFIG_MOUSE)
index a4fe4ae18348f60d7ec69fd47360cec80ebd8a3d..8c4b803fe0a350dc9015d092786c0e83fdb6b248 100644 (file)
@@ -224,7 +224,7 @@ struct usbkeyinfo {
 struct usbkeyinfo LastUSBkey VARLOW;
 
 // Process USB keyboard data.
-static void noinline
+static void
 handle_key(struct keyevent *data)
 {
     dprintf(9, "Got key %x %x\n", data->modifiers, data->keys[0]);
index 1391f0eaa5bab16166b77cfb610462594965554e..bde7a58f4bd2836f0caa3f1b0d390e5162fb2a45 100644 (file)
--- a/src/usb.c
+++ b/src/usb.c
@@ -70,7 +70,7 @@ usb_send_bulk(struct usb_pipe *pipe_fl, int dir, void *data, int datasize)
     }
 }
 
-int noinline
+int
 usb_poll_intr(struct usb_pipe *pipe_fl, void *data)
 {
     switch (GET_LOWFLAT(pipe_fl->type)) {