Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261825AbVAMXiQ (ORCPT ); Thu, 13 Jan 2005 18:38:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261823AbVAMXfO (ORCPT ); Thu, 13 Jan 2005 18:35:14 -0500 Received: from wproxy.gmail.com ([64.233.184.205]:48667 "EHLO wproxy.gmail.com") by vger.kernel.org with ESMTP id S261778AbVAMXc2 (ORCPT ); Thu, 13 Jan 2005 18:32:28 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=VKuxvtqsmYbhBitxidC2zn4QVJX2uq2Rz84raWvIRbwrMNPsi0+otUZEo4FoMKMEIWOPMXk03QWxxV5mJGOwn9Nygn+rcUam7PQaOlHXzJKK28TFMmTjQGm2MdqmuLi9+xlh+iGkEjONcMHlP0AJnfpSv1bpq47cGSMiMYT55cw= Message-ID: <8746466a05011315321ede946c@mail.gmail.com> Date: Thu, 13 Jan 2005 16:32:27 -0700 From: Dave Reply-To: Dave To: akpm@osdl.org, torvalds@osdl.org, linux-kernel@vger.kernel.org, smaurer@teja.com, linux@arm.linux.org.uk, dsaxena@plexity.net, drew.moseley@intel.com, mporter@kernel.crashing.org Subject: [PATCH 5/5] Convert resource to u64 from unsigned long Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_712_16611477.1105659147742" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6202 Lines: 101 ------=_Part_712_16611477.1105659147742 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline This is for PPC platform by Matt Porter Signed-off-by: Dave Jiang (dave.jiang@gmail.com) Signed-off-by: Matt Porter (mporter@kernel.crashing.org) -- -= Dave =- Software Engineer - Advanced Development Engineering Team Storage Component Division - Intel Corp. mailto://dave.jiang @ intel http://sourceforge.net/projects/xscaleiop/ ---- The views expressed in this email are mine alone and do not necessarily reflect the views of my employer (Intel Corp.). ------=_Part_712_16611477.1105659147742 Content-Type: application/octet-stream; name="ppc_u64_clean.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="ppc_u64_clean.patch" PT09PT0gYXJjaC9wcGMva2VybmVsL3BjaS5jIDEuNDggdnMgZWRpdGVkID09PT09Ci0tLSAxLjQ4 L2FyY2gvcHBjL2tlcm5lbC9wY2kuYwkyMDA0LTEwLTIwIDAxOjM3OjA1IC0wNzowMAorKysgZWRp dGVkL2FyY2gvcHBjL2tlcm5lbC9wY2kuYwkyMDA1LTAxLTEzIDExOjEwOjQyIC0wNzowMApAQCAt MTE0LDcgKzExNCw3IEBACiAJCWlmICghcmVzLT5mbGFncykKIAkJCWNvbnRpbnVlOwogCQlpZiAo cmVzLT5lbmQgPT0gMHhmZmZmZmZmZikgewotCQkJREJHKCJQQ0k6JXMgUmVzb3VyY2UgJWQgWyUw OGx4LSUwOGx4XSBpcyB1bmFzc2lnbmVkXG4iLAorCQkJREJHKCJQQ0k6JXMgUmVzb3VyY2UgJWQg WyUwOEx4LSUwOEx4XSBpcyB1bmFzc2lnbmVkXG4iLAogCQkJICAgIHBjaV9uYW1lKGRldiksIGks IHJlcy0+c3RhcnQsIHJlcy0+ZW5kKTsKIAkJCXJlcy0+ZW5kIC09IHJlcy0+c3RhcnQ7CiAJCQly ZXMtPnN0YXJ0ID0gMDsKQEAgLTE3MywxNyArMTczLDE3IEBACiAgKiBidXQgd2Ugd2FudCB0byB0 cnkgdG8gYXZvaWQgYWxsb2NhdGluZyBhdCAweDI5MDAtMHgyYmZmCiAgKiB3aGljaCBtaWdodCBo YXZlIGJlIG1pcnJvcmVkIGF0IDB4MDEwMC0weDAzZmYuLgogICovCi12b2lkIHBjaWJpb3NfYWxp Z25fcmVzb3VyY2Uodm9pZCAqZGF0YSwgc3RydWN0IHJlc291cmNlICpyZXMsIHVuc2lnbmVkIGxv bmcgc2l6ZSwKLQkJICAg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IElPIHdpbmRvdzogJTA4bHgt JTA4bHhcbiIsIHJlcy5zdGFydCwgcmVzLmVuZCk7CisJREJHKCIgIElPIHdpbmRvdzogJTAxNkx4 LSUwMTZMeFxuIiwgcmVzLnN0YXJ0LCByZXMuZW5kKTsKIAogCS8qIFNldCB1cCB0aGUgdG9wIGFu ZCBib3R0b20gb2YgdGhlIFBDSSBJL08gc2VnbWVudCBmb3IgdGhpcyBidXMuICovCiAJcGNpX3Jl YWRfY29uZmlnX2R3b3JkKGJyaWRnZSwgUENJX0lPX0JBU0UsICZsKTsKQEAgLTEyMDksOCArMTIw OSw4IEBACiAJCQkJCWNvbnRpbnVlOwogCQkJCWlmICgoci0+ZmxhZ3MgJiBJT1JFU09VUkNFX0lP KSA9PSAwKQogCQkJCQljb250aW51ZTsKLQkJCQlEQkcoIlRyeWluZyB0byBhbGxvY2F0ZSBmcm9t ICUwOGx4LCBzaXplICUwOGx4IGZyb20gcGFyZW50IgotCQkJCSAgICAiIHJlcyAlZDogJTA4bHgg LT4gJTA4bHhcbiIsCisJCQkJREJHKCJUcnlpbmcgdG8gYWxsb2NhdGUgZnJvbSAlMDE2THgsIHNp emUgJTAxNkx4IGZyb20gcGFyZW50IgorCQkJCSAgICAiIHJlcyAlZDogJTAxNkx4IC0+ICUwMTZM eFxuIiwKIAkJCQkJcmVzLT5zdGFydCwgcmVzLT5lbmQsIGksIHItPnN0YXJ0LCByLT5lbmQpOwog CQkJCiAJCQkJaWYgKGFsbG9jYXRlX3Jlc291cmNlKHIsIHJlcywgcmVzLT5lbmQgKyAxLCByZXMt PnN0YXJ0LCBtYXgsCg== ------=_Part_712_16611477.1105659147742-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/