Displaying 2 results from an estimated 2 matches for "standard_io_resources".
2007 Apr 18
1
Handling PCI/ROM space
...I'm
seeing this now and not before, but I suspect its because I enabled
CONFIG_DEBUG_PAGEALLOC. Anyway, I've got these patches to deal with
these cases:
--- a/arch/i386/kernel/setup.c
+++ b/arch/i386/kernel/setup.c
@@ -276,7 +276,14 @@ static struct resource standard_io_resou
#define STANDARD_IO_RESOURCES \
(sizeof standard_io_resources / sizeof standard_io_resources[0])
-#define romsignature(x) (*(unsigned short *)(x) == 0xaa55)
+static inline int romsignature(const unsigned char *x)
+{
+ unsigned short sig;
+ int ret = 0;
+ if (__get_user(sig, (const unsigned short *)x) == 0)
+ r...
2007 Apr 18
1
Handling PCI/ROM space
...I'm
seeing this now and not before, but I suspect its because I enabled
CONFIG_DEBUG_PAGEALLOC. Anyway, I've got these patches to deal with
these cases:
--- a/arch/i386/kernel/setup.c
+++ b/arch/i386/kernel/setup.c
@@ -276,7 +276,14 @@ static struct resource standard_io_resou
#define STANDARD_IO_RESOURCES \
(sizeof standard_io_resources / sizeof standard_io_resources[0])
-#define romsignature(x) (*(unsigned short *)(x) == 0xaa55)
+static inline int romsignature(const unsigned char *x)
+{
+ unsigned short sig;
+ int ret = 0;
+ if (__get_user(sig, (const unsigned short *)x) == 0)
+ r...