Commit 37a93ba7 authored by Steve French's avatar Steve French

Merge bk://linux.bkbits.net/linux-2.5

into hostme.bitkeeper.com:/repos/c/cifs/linux-2.5cifs
parents 99eee9a8 5e681ee3
......@@ -1806,7 +1806,7 @@ static int __init olympic_pci_init(void)
static void __exit olympic_pci_cleanup(void)
{
return pci_unregister_driver(&olympic_driver) ;
pci_unregister_driver(&olympic_driver) ;
}
......
......@@ -215,7 +215,7 @@ static inline u8 eeh_inb(unsigned long port) {
static inline void eeh_outb(u8 val, unsigned long port) {
if (_IO_IS_VALID(port))
return out_8((u8 *)(port+pci_io_base), val);
out_8((u8 *)(port+pci_io_base), val);
}
static inline u16 eeh_inw(unsigned long port) {
......@@ -230,7 +230,7 @@ static inline u16 eeh_inw(unsigned long port) {
static inline void eeh_outw(u16 val, unsigned long port) {
if (_IO_IS_VALID(port))
return out_le16((u16 *)(port+pci_io_base), val);
out_le16((u16 *)(port+pci_io_base), val);
}
static inline u32 eeh_inl(unsigned long port) {
......@@ -245,7 +245,7 @@ static inline u32 eeh_inl(unsigned long port) {
static inline void eeh_outl(u32 val, unsigned long port) {
if (_IO_IS_VALID(port))
return out_le32((u32 *)(port+pci_io_base), val);
out_le32((u32 *)(port+pci_io_base), val);
}
/* in-string eeh macros */
......
......@@ -204,7 +204,7 @@ static inline unsigned long hpt_hash(unsigned long vpn, int large)
page = vpn & 0xffff;
}
return (vsid & 0x7fffffffff) ^ page;
return (vsid & 0x7fffffffffUL) ^ page;
}
static inline void __tlbie(unsigned long va, int large)
......
......@@ -175,8 +175,8 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,
#define activate_mm(active_mm, mm) \
switch_mm(active_mm, mm, current);
#define VSID_RANDOMIZER 42470972311
#define VSID_MASK 0xfffffffff
#define VSID_RANDOMIZER 42470972311UL
#define VSID_MASK 0xfffffffffUL
/* This is only valid for kernel (including vmalloc, imalloc and bolted) EA's
......
......@@ -12,18 +12,20 @@
#include <linux/config.h>
/* PAGE_SHIFT determines the page size */
#define PAGE_SHIFT 12
#ifndef __ASSEMBLY__
# define PAGE_SIZE (1UL << PAGE_SHIFT)
#ifdef __ASSEMBLY__
#define ASM_CONST(x) x
#else
# define PAGE_SIZE (1 << PAGE_SHIFT)
#define ASM_CONST(x) x##UL
#endif
/* PAGE_SHIFT determines the page size */
#define PAGE_SHIFT 12
#define PAGE_SIZE (ASM_CONST(1) << PAGE_SHIFT)
#define PAGE_MASK (~(PAGE_SIZE-1))
#define PAGE_OFFSET_MASK (PAGE_SIZE-1)
#define SID_SHIFT 28
#define SID_MASK 0xfffffffff
#define SID_MASK 0xfffffffffUL
#define GET_ESID(x) (((x) >> SID_SHIFT) & SID_MASK)
#ifdef CONFIG_HUGETLB_PAGE
......@@ -196,11 +198,11 @@ extern int page_is_ram(unsigned long physaddr);
/* KERNELBASE is defined for performance reasons. */
/* When KERNELBASE moves, those macros may have */
/* to change! */
#define PAGE_OFFSET 0xC000000000000000
#define PAGE_OFFSET ASM_CONST(0xC000000000000000)
#define KERNELBASE PAGE_OFFSET
#define VMALLOCBASE 0xD000000000000000
#define IOREGIONBASE 0xE000000000000000
#define EEHREGIONBASE 0xA000000000000000
#define VMALLOCBASE 0xD000000000000000UL
#define IOREGIONBASE 0xE000000000000000UL
#define EEHREGIONBASE 0xA000000000000000UL
#define IO_REGION_ID (IOREGIONBASE>>REGION_SHIFT)
#define EEH_REGION_ID (EEHREGIONBASE>>REGION_SHIFT)
......
......@@ -69,10 +69,6 @@ struct thread_info {
#define get_thread_info(ti) get_task_struct((ti)->task)
#define put_thread_info(ti) put_task_struct((ti)->task)
#if THREAD_SIZE != (4*PAGE_SIZE)
#error update vmlinux.lds and current_thread_info to match
#endif
/* how to get the thread information struct from C */
static inline struct thread_info *current_thread_info(void)
{
......
......@@ -15,10 +15,10 @@
#if BITS_PER_LONG == 32
# define IDR_BITS 5
# define IDR_FULL 0xffffffff
# define IDR_FULL 0xfffffffful
#elif BITS_PER_LONG == 64
# define IDR_BITS 6
# define IDR_FULL 0xffffffffffffffff
# define IDR_FULL 0xfffffffffffffffful
#else
# error "BITS_PER_LONG is not 32 or 64"
#endif
......
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