All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Matteo Facchinetti @ Sirius Electronic Systems S.R.L." <matteo.facchinetti@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-core] rtdm_mmap_to_user() remapping problem on powerpc arch.
Date: Wed, 29 Oct 2008 11:34:08 +0100	[thread overview]
Message-ID: <49083C20.6060306@domain.hid> (raw)

Hi all,

I'm using framework RTDM to develop my driver on embedded system mpc5200 
based.
(kernel 2.6.24.4 (powerpc arch) - xenomai 2.4.3).

I've need to use rtdm_mmap_to_user() to share a kmalloc() kernel memory 
in userspace.
For this, I'm using the example in  
http://www.captain.at/xenomai-real-time-driver-example.php.

Running a similar example I've discovered a problem in kmalloc remapping.
The only way that I've found, to make remapping correctly, is to 
allocate an entire kernel mem page with __get_freepage() instead of 
kmalloc().

I think that could be a bug in powerpc arch.
what do you think about?





             reply	other threads:[~2008-10-29 10:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-29 10:34 Matteo Facchinetti @ Sirius Electronic Systems S.R.L. [this message]
2008-10-29 13:49 ` [Xenomai-core] rtdm_mmap_to_user() remapping problem on powerpc arch Gilles Chanteperdrix

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=49083C20.6060306@domain.hid \
    --to=matteo.facchinetti@domain.hid \
    --cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.