[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAKL7Q7pq5BTax4odM5YuzR4TsoU5CV59341LziR9c=Yjnia4gQ@mail.gmail.com>
Date: Thu, 1 Mar 2012 00:51:20 +0100
From: "Joshua C." <joshuacov@...glemail.com>
To: "H. Peter Anvin" <hpa@...or.com>
Cc: Bodo Eggert <7eggert@....de>, linux-kernel@...r.kernel.org
Subject: Re: [RESUBMIT] [PATCH] Use BIOS Keyboard variable to set Numlock
2012/3/1 H. Peter Anvin <hpa@...or.com>:
> Looks good, *except* that this will break the compile for all non-x86
> architectures. It might be worthwhile to factor out the
> architecture-dependent bits for cleanliness.
>
> -hpa
>
Will this work?
+#if (defined(__i386__) || defined(__x86_64__))
+#include <asm/io.h>
+#include <asm/setup.h>
+#else
+extern struct boot_params boot_params;
+#endif
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists