More linux-conform fbmem (2.1.12[0-x]) patch

Carsten Pluntke (su0289@sx2.HRZ.Uni-Dortmund.DE)
Sat, 31 Oct 1998 10:50:31 +0100 (MET)


---559023410-851401618-909827431=:20019
Content-type: text/plain; charset="us-ascii"

As suggested I replaced the iopa() with a virt_to_phys() call which is
really more linux-conform... I think the changes are to be done to make
iopa(), __pa() and other address translation schemes obsolete, replacing
them with the virt_to_phys(), virt_to_bus() and vice versa calls.

(LKML readers:) This patch is used on at least my APUS system to make
framebuffer based X servers functional again after it has gone broken
since version 2.1.120. If you think the patch is of everyone's concern,
please remove the #ifdef ... #endif and put it in the kernel...

Comments appreciated,

Carsten

---559023410-851401618-909827431=:20019
Content-type: TEXT/PLAIN; charset="US-ASCII"; name="fbmem-patch"
Content-transfer-encoding: BASE64
Content-ID: <Pine.GSO.4.05.9810311050310.20019@sx2.hrz.uni-dortmund.de>
Content-Description:
Content-Disposition: attachment; filename=fbmem-patch

ZGlmZiAtdXJOIC1YIGV4Y2x1ZGUgbGludXgtMi4xLjEyNC9kcml2ZXJzL3Zp
ZGVvL2ZibWVtLmMgbGludXgvZHJpdmVycy92aWRlby9mYm1lbS5jDQotLS0g
bGludXgtMi4xLjEyNC9kcml2ZXJzL3ZpZGVvL2ZibWVtLmMgU2F0IE9jdCAz
MSAxMDoyNjoxOCAxOTk4DQorKysgbGludXgvZHJpdmVycy92aWRlby9mYm1l
bS5jIFNhdCBPY3QgMzEgMTA6Mjk6MjQgMTk5OA0KQEAgLTQyNCw2ICs0MjQs
MTQgQEANCiAgICAgICAgfQ0KICAgICAgICBpZiAoKHZtYS0+dm1fZW5kIC0g
dm1hLT52bV9zdGFydCArIHZtYS0+dm1fb2Zmc2V0KSA+IGxlbikNCiAgICAg
ICAgICAgICAgICByZXR1cm4gLUVJTlZBTDsNCisNCisjaWZkZWYgQ09ORklH
X0FQVVMNCisgICAgICAgLyogWFhYDQorICAgICAgICAgKiBOb3JtYWxseSBp
dCBzaG91bGQgYmUgZG9uZSBvbiBhbGwgYXJjaGl0ZWN0dXJlcy4NCisgICAg
ICAgICAqLw0KKyAgICAgICBzdGFydCA9IHZpcnRfdG9fcGh5cygodm9pZCAq
KSBzdGFydCk7DQorI2VuZGlmDQorDQogICAgICAgIHZtYS0+dm1fb2Zmc2V0
ICs9IHN0YXJ0Ow0KICAgICAgICBpZiAodm1hLT52bV9vZmZzZXQgJiB+UEFH
RV9NQVNLKQ0KICAgICAgICAgICAgICAgIHJldHVybiAtRU5YSU87DQo=
---559023410-851401618-909827431=:20019--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/