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