From: david <sector2@ihug.co.nz>
To: Linux Kernel List <linux-kernel@vger.kernel.org>
Subject: big memory maping problim
Date: Thu, 04 Jan 2001 21:45:43 +1300 [thread overview]
Message-ID: <3A543837.DFF61275@ihug.co.nz> (raw)
hi
i have kernel 2.2.18
i need a dma buffer (dose not have to be linear)
so i used vmalloc to get the space then i need to make it
non_cache so i found cr3 the got the page entry and got the phys page
address
also setting bit 4 of the page entry to disable caching and then
reloading cr3
when i had done all the pages to reset the tlb's this worked fine but
now i need to shear the mem with a user program so in my driver mmap
function
i got vm->start and current ->tss->cr3
this give me to page entree witch i then set to the phys addr of the
above pages
this seam's to work fine
is their any thing else i need to do ?
remap_pages_range did not work on this mem but dose work on other
address spaces ?
Thank You
David Rundle <sector2@ihug.co.nz>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
reply other threads:[~2001-01-04 8:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3A543837.DFF61275@ihug.co.nz \
--to=sector2@ihug.co.nz \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox