Commit deb0b199 authored by David S. Miller's avatar David S. Miller

Merge davem@nuts.ninka.net:/home/davem/src/BK/net-2.5

into kernel.bkbits.net:/home/davem/net-2.5
parents 01709170 df4b68ca
...@@ -162,7 +162,7 @@ cmd_line_ptr: .long 0 # (Header version 0x0202 or later) ...@@ -162,7 +162,7 @@ cmd_line_ptr: .long 0 # (Header version 0x0202 or later)
# can be located anywhere in # can be located anywhere in
# low memory 0x10000 or higher. # low memory 0x10000 or higher.
ramdisk_max: .long __MAXMEM-1 # (Header version 0x0203 or later) ramdisk_max: .long MAXMEM-1 # (Header version 0x0203 or later)
# The highest safe address for # The highest safe address for
# the contents of an initrd # the contents of an initrd
......
...@@ -169,7 +169,7 @@ cmd_line_ptr: .long 0 # (Header version 0x0202 or later) ...@@ -169,7 +169,7 @@ cmd_line_ptr: .long 0 # (Header version 0x0202 or later)
# can be located anywhere in # can be located anywhere in
# low memory 0x10000 or higher. # low memory 0x10000 or higher.
ramdisk_max: .long __MAXMEM-1 # (Header version 0x0203 or later) ramdisk_max: .long MAXMEM-1 # (Header version 0x0203 or later)
# The highest safe address for # The highest safe address for
# the contents of an initrd # the contents of an initrd
......
...@@ -289,9 +289,10 @@ static void do_sys_vm86(struct kernel_vm86_struct *info, struct task_struct *tsk ...@@ -289,9 +289,10 @@ static void do_sys_vm86(struct kernel_vm86_struct *info, struct task_struct *tsk
asm volatile("movl %%fs,%0":"=m" (tsk->thread.saved_fs)); asm volatile("movl %%fs,%0":"=m" (tsk->thread.saved_fs));
asm volatile("movl %%gs,%0":"=m" (tsk->thread.saved_gs)); asm volatile("movl %%gs,%0":"=m" (tsk->thread.saved_gs));
tss = init_tss + smp_processor_id(); tss = init_tss + get_cpu();
tss->esp0 = tsk->thread.esp0 = (unsigned long) &info->VM86_TSS_ESP0; tss->esp0 = tsk->thread.esp0 = (unsigned long) &info->VM86_TSS_ESP0;
disable_sysenter(tss); disable_sysenter(tss);
put_cpu();
tsk->thread.screen_bitmap = info->screen_bitmap; tsk->thread.screen_bitmap = info->screen_bitmap;
if (info->flags & VM86_SCREEN_BITMAP) if (info->flags & VM86_SCREEN_BITMAP)
......
...@@ -2019,7 +2019,7 @@ int __init ide_setup (char *s) ...@@ -2019,7 +2019,7 @@ int __init ide_setup (char *s)
goto done; goto done;
} }
#endif /* CONFIG_BLK_DEV_HT6560B */ #endif /* CONFIG_BLK_DEV_HT6560B */
#if CONFIG_BLK_DEV_QD65XX #ifdef CONFIG_BLK_DEV_QD65XX
case -12: /* "qd65xx" */ case -12: /* "qd65xx" */
{ {
extern void init_qd65xx (void); extern void init_qd65xx (void);
......
...@@ -90,8 +90,6 @@ typedef struct { unsigned long pgprot; } pgprot_t; ...@@ -90,8 +90,6 @@ typedef struct { unsigned long pgprot; } pgprot_t;
* and CONFIG_HIGHMEM64G options in the kernel configuration. * and CONFIG_HIGHMEM64G options in the kernel configuration.
*/ */
#define __PAGE_OFFSET (0xC0000000)
/* /*
* This much address space is reserved for vmalloc() and iomap() * This much address space is reserved for vmalloc() and iomap()
* as well as fixmap mappings. * as well as fixmap mappings.
...@@ -116,10 +114,16 @@ static __inline__ int get_order(unsigned long size) ...@@ -116,10 +114,16 @@ static __inline__ int get_order(unsigned long size)
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
#ifdef __ASSEMBLY__
#define __PAGE_OFFSET (0xC0000000)
#else
#define __PAGE_OFFSET (0xC0000000UL)
#endif
#define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET) #define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
#define VMALLOC_RESERVE ((unsigned long)__VMALLOC_RESERVE) #define VMALLOC_RESERVE ((unsigned long)__VMALLOC_RESERVE)
#define __MAXMEM (-__PAGE_OFFSET-__VMALLOC_RESERVE) #define MAXMEM (-__PAGE_OFFSET-__VMALLOC_RESERVE)
#define MAXMEM ((unsigned long)(-PAGE_OFFSET-VMALLOC_RESERVE))
#define __pa(x) ((unsigned long)(x)-PAGE_OFFSET) #define __pa(x) ((unsigned long)(x)-PAGE_OFFSET)
#define __va(x) ((void *)((unsigned long)(x)+PAGE_OFFSET)) #define __va(x) ((void *)((unsigned long)(x)+PAGE_OFFSET))
#define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT) #define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
......
...@@ -69,7 +69,7 @@ __asm__ __volatile__( ...@@ -69,7 +69,7 @@ __asm__ __volatile__(
"testb %%al,%%al\n\t" "testb %%al,%%al\n\t"
"jne 1b" "jne 1b"
: "=&S" (d0), "=&D" (d1), "=&a" (d2), "=&c" (d3) : "=&S" (d0), "=&D" (d1), "=&a" (d2), "=&c" (d3)
: "0" (src), "1" (dest), "2" (0), "3" (0xffffffff):"memory"); : "0" (src), "1" (dest), "2" (0), "3" (0xffffffffu):"memory");
return dest; return dest;
} }
...@@ -91,7 +91,7 @@ __asm__ __volatile__( ...@@ -91,7 +91,7 @@ __asm__ __volatile__(
"2:\txorl %2,%2\n\t" "2:\txorl %2,%2\n\t"
"stosb" "stosb"
: "=&S" (d0), "=&D" (d1), "=&a" (d2), "=&c" (d3) : "=&S" (d0), "=&D" (d1), "=&a" (d2), "=&c" (d3)
: "0" (src),"1" (dest),"2" (0),"3" (0xffffffff), "g" (count) : "0" (src),"1" (dest),"2" (0),"3" (0xffffffffu), "g" (count)
: "memory"); : "memory");
return dest; return dest;
} }
...@@ -186,7 +186,7 @@ __asm__ __volatile__( ...@@ -186,7 +186,7 @@ __asm__ __volatile__(
"scasb\n\t" "scasb\n\t"
"notl %0\n\t" "notl %0\n\t"
"decl %0" "decl %0"
:"=c" (__res), "=&D" (d0) :"1" (s),"a" (0), "0" (0xffffffff)); :"=c" (__res), "=&D" (d0) :"1" (s),"a" (0), "0" (0xffffffffu));
return __res; return __res;
} }
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#define MAKE_MM_SEG(s) ((mm_segment_t) { (s) }) #define MAKE_MM_SEG(s) ((mm_segment_t) { (s) })
#define KERNEL_DS MAKE_MM_SEG(0xFFFFFFFF) #define KERNEL_DS MAKE_MM_SEG(0xFFFFFFFFUL)
#define USER_DS MAKE_MM_SEG(PAGE_OFFSET) #define USER_DS MAKE_MM_SEG(PAGE_OFFSET)
#define get_ds() (KERNEL_DS) #define get_ds() (KERNEL_DS)
......
...@@ -47,23 +47,23 @@ extern __inline__ int generic_fls(int x) ...@@ -47,23 +47,23 @@ extern __inline__ int generic_fls(int x)
if (!x) if (!x)
return 0; return 0;
if (!(x & 0xffff0000)) { if (!(x & 0xffff0000u)) {
x <<= 16; x <<= 16;
r -= 16; r -= 16;
} }
if (!(x & 0xff000000)) { if (!(x & 0xff000000u)) {
x <<= 8; x <<= 8;
r -= 8; r -= 8;
} }
if (!(x & 0xf0000000)) { if (!(x & 0xf0000000u)) {
x <<= 4; x <<= 4;
r -= 4; r -= 4;
} }
if (!(x & 0xc0000000)) { if (!(x & 0xc0000000u)) {
x <<= 2; x <<= 2;
r -= 2; r -= 2;
} }
if (!(x & 0x80000000)) { if (!(x & 0x80000000u)) {
x <<= 1; x <<= 1;
r -= 1; r -= 1;
} }
......
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