Date: Sun, 12 Sep 2010 16:50:53 +0530 From: "Jayachandran C." <c.jayachandran@gmail.com> To: freebsd-mips@freebsd.org Subject: patch - remove psracccess.S Message-ID: <AANLkTin1hSK6w2n7YhmS%2BWKXzyLYkDTivN7XHn%2B99nH2@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
--0016364c7f13498f2704900e2c9d Content-Type: text/plain; charset=ISO-8859-1 The functions in sys/mips/mips/psraccess.S can be implemented with mips_rd_status/mips_wr_status. Here's patch that does that. If there are no objections, I will commit this some time tomorrow. JC. --0016364c7f13498f2704900e2c9d Content-Type: application/octet-stream; name="psraccess.patch" Content-Disposition: attachment; filename="psraccess.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gdztcu3h0 SW5kZXg6IHN5cy9jb25mL2ZpbGVzLm1pcHMKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lzL2NvbmYvZmlsZXMu bWlwcwkocmV2aXNpb24gMjEyNDc1KQorKysgc3lzL2NvbmYvZmlsZXMubWlwcwkod29ya2luZyBj b3B5KQpAQCAtMjIsNyArMjIsNiBAQAogbWlwcy9taXBzL21hY2hkZXAuYwkJc3RhbmRhcmQKIG1p cHMvbWlwcy9tcF9tYWNoZGVwLmMJCW9wdGlvbmFsIHNtcAogbWlwcy9taXBzL21wYm9vdC5TCQlv cHRpb25hbCBzbXAKLW1pcHMvbWlwcy9wc3JhY2Nlc3MuUwkJc3RhbmRhcmQKICMgLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLQogIyBQaGFzZSAzCiAjIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KSW5kZXg6IHN5cy9taXBzL2luY2x1ZGUv Y3B1ZnVuYy5oCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT0KLS0tIHN5cy9taXBzL2luY2x1ZGUvY3B1ZnVuYy5oCShyZXZp c2lvbiAyMTI0NzUpCisrKyBzeXMvbWlwcy9pbmNsdWRlL2NwdWZ1bmMuaAkod29ya2luZyBjb3B5 KQpAQCAtMjY2LDYgKzI2NiwyNCBAQAogCX0KIH0KIAorc3RhdGljIF9faW5saW5lIHVpbnQzMl90 CitzZXRfaW50cl9tYXNrKHVpbnQzMl90IG1hc2spCit7CisJdWludDMyX3Qgb3N0YXR1czsKKwor CW9zdGF0dXMgPSBtaXBzX3JkX3N0YXR1cygpOworCW1hc2sgPSAob3N0YXR1cyAmIH5NSVBTX1NS X0lOVF9NQVNLKSB8ICh+bWFzayAmIE1JUFNfU1JfSU5UX01BU0spOworCW1pcHNfd3Jfc3RhdHVz KG1hc2spOworCXJldHVybiAob3N0YXR1cyk7Cit9CisKK3N0YXRpYyBfX2lubGluZSB1aW50MzJf dAorZ2V0X2ludHJfbWFzayh2b2lkKQoreworCisJcmV0dXJuIChtaXBzX3JkX3N0YXR1cygpICYg TUlQU19TUl9JTlRfTUFTSyk7Cit9CisKIHN0YXRpYyBfX2lubGluZSB2b2lkCiBicmVha3BvaW50 KHZvaWQpCiB7CkluZGV4OiBzeXMvbWlwcy9pbmNsdWRlL21kX3Zhci5oCj09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0t IHN5cy9taXBzL2luY2x1ZGUvbWRfdmFyLmgJKHJldmlzaW9uIDIxMjQ3NSkKKysrIHN5cy9taXBz L2luY2x1ZGUvbWRfdmFyLmgJKHdvcmtpbmcgY29weSkKQEAgLTc1LDkgKzc1LDUgQEAKIHZvaWQJ cGxhdGZvcm1faWRlbnRpZnkodm9pZCk7CiAKIGV4dGVybiBpbnQgYnVzZ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VZFTE9QRVJTX0ZJWE1FCi0gKiBTb21lIE1JUFMgQ1BVIG1heSBuZWVkIGRlbGF5cyB1c2lu ZyBub3BzIGJldHdlZW4gZXhlY3V0aW5nIENQMCBJbnN0cnVjdGlvbnMKLSAqLwotI2RlZmluZQlN SVBTX0NQVV9OT1BfREVMQVkJbm9wO25vcDtub3A7bm9wO25vcDtub3A7bm9wO25vcDtub3A7bm9w OwotCi0JLnNldAlub3Jlb3JkZXIJCSMgTm9yZW9yZGVyIGlzIGRlZmF1bHQgc3R5bGUhCi0KLUxF QUYoc2V0X2ludHJfbWFzaykKLQlsaQl0MCwgTUlQU19TUl9JTlRfTUFTSwkjIDEgbWVhbnMgbWFz a2VkIHNvIGludmVydC4KLQlub3QJYTAsIGEwCQkJIyAxIG1lYW5zIG1hc2tlZCBzbyBpbnZlcnQu Ci0JYW5kCWEwLCB0MAkJCSMgMSBtZWFucyBtYXNrZWQgc28gaW52ZXJ0LgotCW1mYzAJdjAsIE1J UFNfQ09QXzBfU1RBVFVTCi0JbGkJdjEsIH5NSVBTX1NSX0lOVF9NQVNLCi0JYW5kCXYxLCB2MAot CW9yCXYxLCBhMAotCW10YzAJdjEsIE1JUFNfQ09QXzBfU1RBVFVTCi0JTUlQU19DUFVfTk9QX0RF TEFZCi0JbW92ZQl2MCwgdjEKLQlqcglyYQotCW5vcAotCi1FTkQoc2V0X2ludHJfbWFzaykKLQot TEVBRihnZXRfaW50cl9tYXNrKQotCWxpCWEwLCAwCi0JbWZjMAl2MCwgTUlQU19DT1BfMF9TVEFU VVMKLQlsaQl2MSwgTUlQU19TUl9JTlRfTUFTSwotCWFuZAl2MCwgdjEKLQlvcgl2MCwgYTAKLQlq cglyYQotCW5vcAotCi1FTkQoZ2V0X2ludHJfbWFzaykK --0016364c7f13498f2704900e2c9d--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTin1hSK6w2n7YhmS%2BWKXzyLYkDTivN7XHn%2B99nH2>