Date: Wed, 14 Nov 2007 09:59:35 +0000 From: "Rui Paulo" <rpaulo@FreeBSD.org> To: "John Baldwin" <jhb@freebsd.org> Cc: freebsd-current@freebsd.org, freebsd-i386@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: MacBook users: possible fix for the SMP problem Message-ID: <e1309ba60711140159x4c1143b1n6d3d791cca80d61b@mail.gmail.com> In-Reply-To: <200711121611.37781.jhb@freebsd.org> References: <4A5A9C78-22AC-4480-BDEB-A72F6CF472DB@fnop.net> <200711121351.58616.jhb@freebsd.org> <e1309ba60711121219i1ca9773ei2fc3796849e1a669@mail.gmail.com> <200711121611.37781.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_5658_19956574.1195034375670 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Nov 12, 2007 9:11 PM, John Baldwin <jhb@freebsd.org> wrote: > I'm not sure where exactly one would add it, but I don't think the RTC clock > routine is the right place. Maybe do it at the start of cpu_startup() in > machdep.c instead? That works for me. See the attached patch. Regards. -- Rui Paulo ------=_Part_5658_19956574.1195034375670 Content-Type: application/octet-stream; name=machdep.c.diff Content-Transfer-Encoding: base64 X-Attachment-Id: f_f8zolsu10 Content-Disposition: attachment; filename=machdep.c.diff SW5kZXg6IGkzODYvbWFjaGRlcC5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9ob21lL25jdnMvc3Jj L3N5cy9pMzg2L2kzODYvbWFjaGRlcC5jLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjY2MApkaWZm IC11IC1wIC1yMS42NjAgbWFjaGRlcC5jCi0tLSBpMzg2L21hY2hkZXAuYwk1IE5vdiAyMDA3IDEx OjM2OjExIC0wMDAwCTEuNjYwCisrKyBpMzg2L21hY2hkZXAuYwkxNCBOb3YgMjAwNyAwOTo1Nzow OSAtMDAwMApAQCAt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gb24gSW50ZWwgSUNILlxuIik7CisJCW91dGwoSUNIX1BNQkFTRSArIDB4MzAsIGlu bChJQ0hfUE1CQVNFICsgMHgzMCkgJiB+MHg4KTsKKwl9CisJaWYgKGljaGVudikKKwkJZnJlZWVu dihpY2hlbnYpOworCWlmIChzeXNlbnYpCisJCWZyZWVlbnYoc3lzZW52KTsKKwogCS8qCiAJICog R29vZCB7bW9ybmluZyxhZnRlcm5vb24sZXZlbmluZyxuaWdodH0uCiAJICovCg== ------=_Part_5658_19956574.1195034375670--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e1309ba60711140159x4c1143b1n6d3d791cca80d61b>