NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/42736
The following reply was made to PR kern/42736; it has been noted by GNATS.
From: Paul Goyette <paul%whooppee.com@localhost>
To: fair%netbsd.org@localhost, gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: kern/42736
Date: Mon, 22 Feb 2010 09:42:00 -0800 (PST)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--0-2007850013-1266860520=:20770
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On Mon, 22 Feb 2010, Paul Goyette wrote:
> Eric, can you provide the output of
>
> sysctl -r hw.spdmem0.spd_data | hexdump
Actually, this is not necessary. I found the resolution of this PR in
the OpenBSD version of code (they fixed it about two years ago).
Please try the attached patch.
-------------------------------------------------------------------------
| Paul Goyette | PGP DSS Key fingerprint: | E-mail addresses: |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer | | pgoyette at netbsd.org |
-------------------------------------------------------------------------
--0-2007850013-1266860520=:20770
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=spdmem.c.diff
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.NEB.4.64.1002220942000.20770%quicky.whooppee.com@localhost>
Content-Description:
Content-Disposition: attachment; filename=spdmem.c.diff
SW5kZXg6IHNwZG1lbS5jDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1Mg
ZmlsZTogL2N2c3Jvb3Qvc3JjL3N5cy9kZXYvaTJjL3NwZG1lbS5jLHYNCnJl
dHJpZXZpbmcgcmV2aXNpb24gMS4xNQ0KZGlmZiAtdSAtcCAtcjEuMTUgc3Bk
bWVtLmMNCi0tLSBzcGRtZW0uYwk5IE1heSAyMDA5IDE3OjMyOjI3IC0wMDAw
CTE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