Date: Tue, 3 Apr 2001 14:09:00 +0100 (BST) From: Doug Rabson <dfr@nlsystems.com> To: Michael Richards <michael@fastmail.ca> Cc: <jhb@FreeBSD.org>, Matthew Jacob <mjacob@feral.com>, <freebsd-alpha@FreeBSD.org>, <msmith@FreeBSD.org> Subject: Re: Proposed Loader fix Message-ID: <Pine.BSF.4.33.0104031407110.10147-200000@herring.nlsystems.com> In-Reply-To: <3AC8CA0E.00003D.26518@frodo.searchcanada.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-1506290001-986303340=:10147 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 2 Apr 2001, Michael Richards wrote: > Yes, after posting that proposed fix, I realised that it wouldn't > work properly that way. I was unable to apply the posted patches to > srmdisk.c I get: Hmm. Must have been garbled somewhere. I've attached another patch here in the hope that attachments get less mailer mangling than plain text. This version of the patch does reference counting so that we can actually call prom_close(). Its still untested though :-). -- Doug Rabson Mail: dfr@nlsystems.com Phone: +44 20 8348 6160 --0-1506290001-986303340=:10147 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=foo Content-Transfer-Encoding: BASE64 Content-ID: <Pine.BSF.4.33.0104031409000.10147@herring.nlsystems.com> Content-Description: Content-Disposition: attachment; filename=foo SW5kZXg6IHNybWRpc2suYw0KPT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KUkNT IGZpbGU6IC9ob21lL25jdnMvc3JjL3N5cy9ib290L2FscGhhL2xpYmFscGhh L3NybWRpc2suYyx2DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuOQ0KZGlmZiAt dSAtcjEuOSBzcm1kaXNrLmMNCi0tLSBzcm1kaXNrLmMJMjAwMC8wMy8xNSAw MTo1MzozNAkxLjkNCisrKyBzcm1kaXNrLmMJMjAwMS8wNC8wMyAxMzowNToy NA0KQEAgLTk2LDYgKzk2LDggQEANCiAgICAgaW50CQliZF91bml0OwkJLyog U1JNIHVuaXQgbnVtYmVyICovDQogICAgIGludAkJYmRfbmFtZWxlbjsNCiAg ICAgaW50CQliZF9mbGFnczsNCisgICAgaW50CQliZF9mZDsNCisgICAgaW50 CQliZF9vcGVuY291bnQ7DQogfSBiZGluZm8gW01BWEJEREVWXTsNCiBzdGF0 aWMgaW50IG5iZGluZm8gPSAwOw0KIA0KQEAgLTExMyw2ICsxMTUsOCBAQA0K ICAgICByZXQuYml0cyA9IHByb21fZ2V0ZW52KFBST01fRV9CT09URURfREVW LA0KIAkJCSAgIGJkaW5mb1swXS5iZF9uYW1lLCBzaXplb2YoYmRpbmZvWzBd LmJkX25hbWUpKTsNCiAgICAgYmRpbmZvWzBdLmJkX25hbWVsZW4gPSByZXQu dS5yZXR2YWw7DQorICAgIGJkaW5mb1swXS5iZF9mZCA9IC0xOw0KKyAgICBi ZGluZm9bMF0uYmRfb3BlbmNvdW50ID0gMDsNCiAgICAgbmJkaW5mbysrOw0K IA0KICAgICByZXR1cm4gKDApOw0KQEAgLTE1NSw3ICsxNTksNyBAQA0KICAg ICBzdHJ1Y3QgZGlza2xhYmVsCQkqbHA7DQogICAgIGludAkJCQlzZWN0b3Is IHNsaWNlLCBpOw0KICAgICBpbnQJCQkJZXJyb3I7DQotICAgIGludAkJCQl1 bml0Ow0KKyAgICBpbnQJCQkJdW5pdCwgZmQ7DQogICAgIHByb21fcmV0dXJu X3QJCXJldDsNCiANCiAgICAgdmFfc3RhcnQoYXJncywgZik7DQpAQCAtMTY5 LDExICsxNzMsMTcgQEANCiAgICAgfQ0KICAgICANCiAgICAgLyogQ2FsbCB0 aGUgcHJvbSB0byBvcGVuIHRoZSBkaXNrLiAqLw0KLSAgICByZXQuYml0cyA9 IHByb21fb3BlbihiZGluZm9bdW5pdF0uYmRfbmFtZSwgYmRpbmZvW3VuaXRd LmJkX25hbWVsZW4pOw0KLSAgICBpZiAoc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uX2Rpc2sJKm9kID0g Zi0+Zl9kZXZkYXRhOw0KIA0KLSAgICAodm9pZClwcm9tX2Nsb3NlKG9kLT5v ZF9mZCk7DQorICAgIGJkaW5mb1tvZC0+b2RfdW5pdF0uYmRfb3BlbmNvdW50 LS07DQorICAgIGlmIChiZGluZm9bb2QtPm9kX3VuaXRdLmJkX29wZW5jb3Vu dCA9PSAwKSB7DQorCSh2b2lkKXByb21fY2xvc2Uob2QtPm9kX2ZkKTsNCisJ YmRpbmZvW29kLT5vZF91bml0XS5iZF9mZCA9IC0xOw0KKyAgICB9DQogDQog ICAgIGZyZWUob2QpOw0KICAgICBmLT5mX2RldmRhdGEgPSBOVUxMOw0K --0-1506290001-986303340=:10147-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0104031407110.10147-200000>