Modifications for 1.2.0:
======================================================================
+* Fix unlock_ram_in_cache() problem on PCIPPC2/6 boards
+ (always invalidate cache after unlocking it)
+
* Fix ethernet address handling ion case of multiple interfaces
* Patch by Denis Peter, 29 Jul 2002:
/* .. return NULL means it wasnt mine, non-null means I got it..*/
u8 *dhcp_vendorex_proc(u8 *pop)
{
-u8 oplen,*sub_op, sub_oplen,thing = 0, *retval;
+u8 oplen,*sub_op, sub_oplen, *retval;
+u8 thing = 0;
retval = NULL;
oplen = *(pop + 1);
out32 (REG (CPC0, SIOC0), 0x30000000);
- out32 (REG (CPC0, ABCNTL), 0xB0000000);
+ out32 (REG (CPC0, ABCNTL), 0xF0000000);
out32 (REG (CPC0, SESR), 0x00000000);
out32 (REG (CPC0, SEAR), 0x00000000);
sync /* Wait for all icbi to complete on bus */
isync
- /* Unlock the data cache */
+ /* Unlock the data cache and invalidate it */
mfspr r0, HID0
li r3,0x1000
andc r0,r0,r3
+ li r3,0x0400
+ or r0,r0,r3
sync
mtspr HID0, r0
sync