public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel•crashing.org>
To: "wilbur.chan" <wilbur512@gmail•com>
Cc: linuxppc-dev@ozlabs•org
Subject: Re: Problem when disabled interrupt in system call (ppc8270)
Date: Fri, 16 Oct 2009 15:43:39 +1100	[thread overview]
Message-ID: <1255668219.19032.12.camel@pasglop> (raw)
In-Reply-To: <e997b7420910151812m3de16f67hdb756bcd1f40ddc@mail.gmail.com>

On Fri, 2009-10-16 at 09:12 +0800, wilbur.chan wrote:

> static inline unsigned long local_irq_disable(void)
> {
> 	unsigned long flags, zero;
> 
> 	__asm__ __volatile__("li %1,0; lbz %0,%2(13); stb %1,%2(13)"
> 	: "=r" (flags), "=&r" (zero)
> 	: "i" (offsetof(struct paca_struct, soft_enabled))
> 	: "memory");
> 
> 	return flags;
> }

This is not the variant of local_irq_disable() used on that machine :-)

The above is the 64-bit version.

Ben.

  reply	other threads:[~2009-10-16  4:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-16  1:12 Problem when disabled interrupt in system call (ppc8270) wilbur.chan
2009-10-16  4:43 ` Benjamin Herrenschmidt [this message]
2009-10-16  5:14   ` wilbur.chan
2009-10-16  7:25 ` Gabriel Paubert

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=1255668219.19032.12.camel@pasglop \
    --to=benh@kernel$(echo .)crashing.org \
    --cc=linuxppc-dev@ozlabs$(echo .)org \
    --cc=wilbur512@gmail$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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