All of lore.kernel.org
 help / color / mirror / Atom feed
From: Josh Boyer <jwboyer@linux.vnet.ibm.com>
To: Jonathan Haws <Jonathan.Haws@sdl.usu.edu>
Cc: "linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Subject: Re: Invalidate Data Cache from User Space
Date: Mon, 9 Nov 2009 20:15:47 -0500	[thread overview]
Message-ID: <20091110011547.GD30489@zod.rchland.ibm.com> (raw)
In-Reply-To: <BB99A6BA28709744BF22A68E6D7EB51F03310AFEC3@midas.usurf.usu.edu>

On Mon, Nov 09, 2009 at 11:10:42AM -0700, Jonathan Haws wrote:
>All,
>What is happening is the dcbi instruction will fail.  I get an Illegal Instruction message on the console and my program exits.
>
>Is there a reason I cannot call dbci from a user space application, or is there something wrong in my code?  Even better, is there a working and tested function that I can call from user space to invalidate a portion of the data cache?

dcbi is a priviledged instruction on 4xx.  You can only execute it from
supervisor mode (kernel).

josh

      reply	other threads:[~2009-11-10  1:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-09 18:10 Invalidate Data Cache from User Space Jonathan Haws
2009-11-10  1:15 ` Josh Boyer [this message]

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=20091110011547.GD30489@zod.rchland.ibm.com \
    --to=jwboyer@linux.vnet.ibm.com \
    --cc=Jonathan.Haws@sdl.usu.edu \
    --cc=linuxppc-dev@lists.ozlabs.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.