Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24597
b: refs/heads/master
c: af30837
h: refs/heads/master
i:
  24595: c138de7
v: v3
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Mar 27, 2006
1 parent 7a8a953 commit 8d054b1
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7c92943c7b6c42fa631ac2b67aeb507e727cd75b
refs/heads/master: af308377e204e25f1f58627d05fe0f483703b514
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/kernel/legacy_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static int legacy_serial_console = -1;
static int __init add_legacy_port(struct device_node *np, int want_index,
int iotype, phys_addr_t base,
phys_addr_t taddr, unsigned long irq,
unsigned int flags)
upf_t flags)
{
u32 *clk, *spd, clock = BASE_BAUD * 16;
int index;
Expand Down Expand Up @@ -113,7 +113,7 @@ static int __init add_legacy_soc_port(struct device_node *np,
{
phys_addr_t addr;
u32 *addrp;
unsigned int flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_SHARE_IRQ;
upf_t flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_SHARE_IRQ;

/* We only support ports that have a clock frequency properly
* encoded in the device-tree.
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/powerpc/kernel/nvram_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,9 @@ static int dev_nvram_ioctl(struct inode *inode, struct file *file,
return 0;
}
#endif /* CONFIG_PPC_PMAC */
default:
return -EINVAL;
}
return -EINVAL;
}

struct file_operations nvram_fops = {
Expand Down
6 changes: 5 additions & 1 deletion trunk/arch/powerpc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,11 @@ static void show_instructions(struct pt_regs *regs)
if (!(i % 8))
printk("\n");

if (BAD_PC(pc) || __get_user(instr, (unsigned int *)pc)) {
/* We use __get_user here *only* to avoid an OOPS on a
* bad address because the pc *should* only be a
* kernel address.
*/
if (BAD_PC(pc) || __get_user(instr, (unsigned int __user *)pc)) {
printk("XXXXXXXX ");
} else {
if (regs->nip == pc)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/kernel/setup_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ unsigned long __init early_init(unsigned long dt_ptr)

/* First zero the BSS -- use memset_io, some platforms don't have
* caches on yet */
memset_io(PTRRELOC(&__bss_start), 0, _end - __bss_start);
memset_io((void __iomem *)PTRRELOC(&__bss_start), 0, _end - __bss_start);

/*
* Identify the CPU type and fix up code sections
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/lib/sstep.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extern char system_call_common[];

#ifdef CONFIG_PPC64
/* Bits in SRR1 that are copied from MSR */
#define MSR_MASK 0xffffffff87c0ffff
#define MSR_MASK 0xffffffff87c0ffffUL
#else
#define MSR_MASK 0x87c0ffff
#endif
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/powermac/bootx_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ void __init bootx_init(unsigned long r3, unsigned long r4)
&& (strcmp(model, "iMac,1") == 0
|| strcmp(model, "PowerMac1,1") == 0)) {
bootx_printf("iMac,1 detected, shutting down USB \n");
out_le32((unsigned *)0x80880008, 1); /* XXX */
out_le32((unsigned __iomem *)0x80880008, 1); /* XXX */
}
}

Expand Down
12 changes: 6 additions & 6 deletions trunk/arch/powerpc/platforms/powermac/nvram.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ struct core99_header {
* Read and write the non-volatile RAM on PowerMacs and CHRP machines.
*/
static int nvram_naddrs;
static volatile unsigned char *nvram_data;
static volatile unsigned char __iomem *nvram_data;
static int is_core_99;
static int core99_bank = 0;
static int nvram_partitions[3];
Expand Down Expand Up @@ -148,7 +148,7 @@ static ssize_t core99_nvram_size(void)
}

#ifdef CONFIG_PPC32
static volatile unsigned char *nvram_addr;
static volatile unsigned char __iomem *nvram_addr;
static int nvram_mult;

static unsigned char direct_nvram_read_byte(int addr)
Expand Down Expand Up @@ -285,7 +285,7 @@ static int sm_erase_bank(int bank)
int stat, i;
unsigned long timeout;

u8* base = (u8 *)nvram_data + core99_bank*NVRAM_SIZE;
u8 __iomem *base = (u8 __iomem *)nvram_data + core99_bank*NVRAM_SIZE;

DBG("nvram: Sharp/Micron Erasing bank %d...\n", bank);

Expand Down Expand Up @@ -317,7 +317,7 @@ static int sm_write_bank(int bank, u8* datas)
int i, stat = 0;
unsigned long timeout;

u8* base = (u8 *)nvram_data + core99_bank*NVRAM_SIZE;
u8 __iomem *base = (u8 __iomem *)nvram_data + core99_bank*NVRAM_SIZE;

DBG("nvram: Sharp/Micron Writing bank %d...\n", bank);

Expand Down Expand Up @@ -352,7 +352,7 @@ static int amd_erase_bank(int bank)
int i, stat = 0;
unsigned long timeout;

u8* base = (u8 *)nvram_data + core99_bank*NVRAM_SIZE;
u8 __iomem *base = (u8 __iomem *)nvram_data + core99_bank*NVRAM_SIZE;

DBG("nvram: AMD Erasing bank %d...\n", bank);

Expand Down Expand Up @@ -399,7 +399,7 @@ static int amd_write_bank(int bank, u8* datas)
int i, stat = 0;
unsigned long timeout;

u8* base = (u8 *)nvram_data + core99_bank*NVRAM_SIZE;
u8 __iomem *base = (u8 __iomem *)nvram_data + core99_bank*NVRAM_SIZE;

DBG("nvram: AMD Writing bank %d...\n", bank);

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/powermac/udbg_scc.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void udbg_scc_init(int force_scc)
/* Setup for 57600 8N1 */
if (ch == ch_a)
addr += 0x20;
sccc = (volatile u8 * __iomem) ioremap(addr & PAGE_MASK, PAGE_SIZE) ;
sccc = ioremap(addr & PAGE_MASK, PAGE_SIZE) ;
sccc += addr & ~PAGE_MASK;
sccd = sccc + 0x10;

Expand Down

0 comments on commit 8d054b1

Please sign in to comment.