Commit bd039e05 authored by Ray Lee's avatar Ray Lee Committed by Linus Torvalds

[PATCH] Re: 2.5.33 PNPBIOS does not compile

I don't know if the current form is harmless or not, but it is
definitely incorrect.  The patch below corrects the compile failure, as
well as the multi-statement macro defines used in bare if statements;
please apply.
parent 0f64db60
...@@ -126,12 +126,16 @@ __asm__( ...@@ -126,12 +126,16 @@ __asm__(
); );
#define Q_SET_SEL(cpu, selname, address, size) \ #define Q_SET_SEL(cpu, selname, address, size) \
do { \
set_base(cpu_gdt_table[cpu][(selname) >> 3], __va((u32)(address))); \ set_base(cpu_gdt_table[cpu][(selname) >> 3], __va((u32)(address))); \
set_limit(&cpu_gdt_table[cpu][(selname) >> 3], size) set_limit(cpu_gdt_table[cpu][(selname) >> 3], size); \
} while(0)
#define Q2_SET_SEL(cpu, selname, address, size) \ #define Q2_SET_SEL(cpu, selname, address, size) \
do { \
set_base(cpu_gdt_table[cpu][(selname) >> 3], (u32)(address)); \ set_base(cpu_gdt_table[cpu][(selname) >> 3], (u32)(address)); \
set_limit(&cpu_gdt_table[cpu][(selname) >> 3], size) set_limit(cpu_gdt_table[cpu][(selname) >> 3], size); \
} while(0)
/* /*
* At some point we want to use this stack frame pointer to unwind * At some point we want to use this stack frame pointer to unwind
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment