Xref: utzoo comp.protocols.tcp-ip:2087 comp.unix.wizards:5958 Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!oberon!nova.usc.edu!mark From: mark@nova.usc.edu (Mark A. Brown) Newsgroups: comp.protocols.tcp-ip,comp.unix.wizards Subject: Re: WARNING: TOD clock not initialized -- CHECK AND RESET THE DATE! Message-ID: <6009@oberon.USC.EDU> Date: 4 Jan 88 21:34:45 GMT References: <5203@columbia.edu> <8321@allegra.UUCP> Sender: nobody@oberon.USC.EDU Reply-To: mark@nova.usc.edu (Mark A. Brown) Organization: University of Southern California, Los Angeles, CA Lines: 42 Here's a binary patch for the leap year bug that will work for Sun 4s. # adb -w -k /vmunix /dev/mem resettodr+0x110?X (It should contain 0xba276001, a sub %i5, 0x1, %i5 instruction. (Change it to a nop in both /vmunix and kernel memory) .?W 0x1000000 ./W 0x1000000 (To make yourself feel better, do the following) .?i ./i (If they're nop's, things should now be better) $q We are running the SYS4 GAMMA release, but things should be the same for SYS4 3.2. If not, here's the original GAMMA binary and you can go from there. _resettodr+0xf0: srl %i5, 0x10, %i5 _resettodr+0xf4: orcc %g0, %i1, %g0 _resettodr+0xf8: bne _resettodr + 0x120 _resettodr+0xfc: sub %i5, 0x1, %i5 _resettodr+0x100: sll %i5, 0x10, %i5 _resettodr+0x104: srl %i5, 0x10, %i5 _resettodr+0x108: cmp %i5, 0x2 _resettodr+0x10c: bne,a _resettodr + 0x120 _resettodr+0x110: sub %i5, 0x1, %i5 <<< change to nop _resettodr+0x114: sethi %hi(0x263800), %o5 _resettodr+0x118: ba _resettodr + 0x134 _resettodr+0x11c: add %o5, 0x380, %i3 _resettodr+0x120: sll %i5, 0x10, %i5 _resettodr+0x124: srl %i5, 0x10, %i5 _resettodr+0x128: sub %i5, 0x1, %i3 _resettodr+0x12c: sll %i3, 0x2, %i3 _resettodr+0x130: ld [%i3 + %l7], %i3 _resettodr+0x134: add %i4, %i3, %i4 _resettodr+0x138: mov %i4, %o0 Mark