[patch] highmem-2.3.23-D3

Ingo Molnar (mingo@chiara.csoma.elte.hu)
Wed, 20 Oct 1999 20:07:47 +0200 (CEST)


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.

--650352740-1854766589-940442867=:8768
Content-Type: TEXT/PLAIN; charset=US-ASCII

the previous patch had a silly bug, this one works instead.
highmem-2.3.23-D3:

- fixes PG_DMA handling

- allocates boot-time pages above MAX_DMA_ADDRESS, if possible.

-- mingo

--650352740-1854766589-940442867=:8768
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="highmem-2.3.23-D3"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.10.9910202007470.8768@chiara.csoma.elte.hu>
Content-Description:
Content-Disposition: attachment; filename="highmem-2.3.23-D3"

LS0tIGxpbnV4L21tL2Jvb3RtZW0uYy5vcmlnMglXZWQgT2N0IDIwIDA5OjIw
OjM5IDE5OTkNCisrKyBsaW51eC9tbS9ib290bWVtLmMJV2VkIE9jdCAyMCAx
MDo1Njo0MCAxOTk5DQpAQCAtMTYsNiArMTYsNyBAQA0KICNpbmNsdWRlIDxs
aW51eC9pbnRlcnJ1cHQuaD4NCiAjaW5jbHVkZSA8bGludXgvaW5pdC5oPg0K
ICNpbmNsdWRlIDxsaW51eC9ib290bWVtLmg+DQorI2luY2x1ZGUgPGFzbS9k
bWEuaD4NCiANCiAvKg0KICAqIFBvaW50ZXIgdG8gYSBiaXRtYXAgLSB0aGUg
Yml0cyByZXByZXNlbnQgYWxsIHBoeXNpY2FsIG1lbW9yeSBwYWdlcw0KQEAg
LTI0LDkgKzI1LDEwIEBADQogICogQWNjZXNzIHRvIHRoaXMgc3Vic3lzdGVt
IGhhcyB0byBiZSBzZXJpYWxpemVkIGV4dGVybmFsbHkuICh0aGlzIGlzDQog
ICogdHJ1ZSBmb3IgdGhlIGJvb3QgcHJvY2VzcyBhbnl3YXkpDQogICovDQot
c3RhdGljIHZvaW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-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/