Commit 25c407de authored by Linus Torvalds's avatar Linus Torvalds

Merge bk://ppc.bkbits.net/for-linus-ppc

into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents 4f0fdda0 b210f57c
......@@ -1986,9 +1986,9 @@ fcc_restart(struct net_device *dev, int duplex)
fccp = fcp->fccp;
if (duplex)
fccp->fcc_fpsmr |= FCC_PSMR_FDE;
fccp->fcc_fpsmr |= FCC_PSMR_FDE | FCC_PSMR_LPB;
else
fccp->fcc_fpsmr &= ~FCC_PSMR_FDE;
fccp->fcc_fpsmr &= ~(FCC_PSMR_FDE | FCC_PSMR_LPB);
/* Enable transmit/receive */
fccp->fcc_gfmr |= FCC_GFMR_ENR | FCC_GFMR_ENT;
......
......@@ -418,7 +418,6 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
* are used for initrd_start and initrd_size,
* otherwise they contain 0xdeadbeef.
*/
cmd_line[0] = 0;
if (r3 >= 0x4000 && r3 < 0x800000 && r4 == 0) {
strlcpy(cmd_line, (char *)r3 + KERNELBASE,
sizeof(cmd_line));
......
......@@ -216,7 +216,7 @@ static void attach_free_block(rh_info_t * info, rh_block_t * blkn)
/* Grow the after block backwards */
if (before == NULL && after != NULL) {
(int8_t *) after->start -= size;
after->start = (int8_t *)after->start - size;
after->size += size;
return;
}
......@@ -407,7 +407,7 @@ void *rh_detach_region(rh_info_t * info, void *start, int size)
/* blk still in free list, with updated start and/or size */
if (bs == s || be == e) {
if (bs == s)
(int8_t *) blk->start += size;
blk->start = (int8_t *)blk->start + size;
blk->size -= size;
} else {
......@@ -471,7 +471,7 @@ void *rh_alloc(rh_info_t * info, int size, const char *owner)
newblk->owner = owner;
/* blk still in free list, with updated start, size */
(int8_t *) blk->start += size;
blk->start = (int8_t *)blk->start + size;
blk->size -= size;
start = newblk->start;
......@@ -535,7 +535,7 @@ void *rh_alloc_fixed(rh_info_t * info, void *start, int size, const char *owner)
/* blk still in free list, with updated start and/or size */
if (bs == s || be == e) {
if (bs == s)
(int8_t *) blk->start += size;
blk->start = (int8_t *)blk->start + size;
blk->size -= size;
} else {
......
......@@ -935,8 +935,8 @@ unsigned int __init residual_isapic_addr(void)
goto unknown;
#define p pkt->L4_Pack.L4_Data.L4_PPCPack
/* Must be 32-bit memory address */
if (!((p.PPCData[0] == 2) && (p.PPCData[1] == 32)))
/* Must be 32-bit system address */
if (!((p.PPCData[0] == 3) && (p.PPCData[1] == 32)))
goto unknown;
/* It doesn't seem to work where length != 1 (what can I say? :-/ ) */
......
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