Date: Wed, 7 Oct 1998 11:25:17 -0400 (EDT) From: Brian Feldman <green@unixhelp.org> To: current@FreeBSD.ORG Message-ID: <Pine.BSF.4.03.9810071123210.1840-200000@feldman.dyn.ml.org>
next 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-1047586893-907773917=:1840 Content-Type: TEXT/PLAIN; charset=US-ASCII How does this work, as a translation of elf_machdep.c from alpha, to i386? Note: kldload still doesn't work right..... Brian Feldman green@unixhelp.org -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCM/CS/SS d- s+:+ a--- C++(++++) UB++++ P---- L- E---(+) W+++ N@ o? K- W--- O M- V-- PS+ PE-() Y+ PGP(+) t+ 5-- X++ R+ mtv b++(+++) D+ D++ G e* h(+) r+(-) z- -------END GEEK CODE BLOCK----- --0-1047586893-907773917=:1840 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="elf.c" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.BSF.4.03.9810071125170.1840@feldman.dyn.ml.org> Content-Description: Content-Disposition: attachment; filename="elf.c" LyotDQogKiBDb3B5cmlnaHQgMTk5Ni0xOTk4IEpvaG4gRC4gUG9sc3RyYS4N CiAqIEFsbCByaWdodHMgcmVzZXJ2ZWQuDQogKg0KICogUmVkaXN0cmlidXRp b24gYW5kIHVzZSBpbiBzb3VyY2UgYW5kIGJpbmFyeSBmb3Jtcywgd2l0aCBv ciB3aXRob3V0DQogKiBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJv dmlkZWQgdGhhdCB0aGUgZm9sbG93aW5nIGNvbmRpdGlvbnMNCiAqIGFyZSBt ZXQ6DQogKiAxLiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVz dCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodA0KICogICAgbm90aWNlLCB0 aGlzIGxpc3Qgb2YgY29uZ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w0KDQoJCWNhc2UgUl8zODZfUkVMQVRJVkU6IHsNCgkJ CSp3aGVyZSArPSByZWxvY2Jhc2U7DQoJCX0NCgkJYnJlYWs7DQoNCgkJY2Fz ZSBSXzM4Nl9DT1BZOiB7DQoJCQkvKg0KCQkJICogVGhlcmUgc2hvdWxkbid0 IGJlIGNvcHkgcmVsb2NhdGlvbnMgaW4ga2VybmVsDQoJCQkgKiBvYmplY3Rz Lg0KCQkJICovDQoJCQlwcmludGYoImtsZGxvYWQ6IHVuZXhwZWN0ZWQgUl9D T1BZIHJlbG9jYXRpb25cbiIpOw0KCQkJcmV0dXJuIC0xOw0KCQl9DQoJCWJy ZWFrOw0KDQoJCWRlZmF1bHQ6DQoJCQlwcmludGYoImtsZGxvYWQ6IHVuZXhw ZWN0ZWQgcmVsb2NhdGlvbiB0eXBlICVkXG4iLA0KCQkJICAgICAgIEVMRl9S X1RZUEUocmVsYS0+cl9pbmZvKSk7DQoJCQlyZXR1cm4gLTE7DQoJfQ0KCXJl dHVybigwKTsNCn0NCg== --0-1047586893-907773917=:1840-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" 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.03.9810071123210.1840-200000>