Linux PARISC architecture development
 help / color / mirror / Atom feed
From: Joel Soete <joel.soete@freebel.net>
To: parisc-linux@lists.parisc-linux.org
Subject: [parisc-linux] Is this system_irqsave diff is correct?
Date: Sun, 15 Dec 2002 13:09:14 +0000	[thread overview]
Message-ID: <3DFC7EFA.9040708@freebel.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 538 bytes --]

Hi all,

is this  diff is right:
--- system_irqsave.h.orig       2002-12-15 13:02:50.000000000 +0000
+++ system_irqsave.h    2002-12-15 13:03:29.000000000 +0000
@@ -9,8 +9,7 @@

  #define local_irq_save(x) \
         __asm__ __volatile__("rsm %1,%0" : "=r" (x) :"i" (PSW_I) : 
"memory" )
-#define local_irq_restore(x) \
-       __asm__ __volatile__("mtsm %0" : : "r" (x) : "memory" )
+#define local_irq_restore(x) __restore_flags(x)
  #define local_irq_disable() __cli()
  #define local_irq_enable()  __sti()

Thanks for attention,
	Joel

[-- Attachment #2: system_irqsave.h.diff --]
[-- Type: text/plain, Size: 453 bytes --]

--- system_irqsave.h.orig	2002-12-15 13:02:50.000000000 +0000
+++ system_irqsave.h	2002-12-15 13:03:29.000000000 +0000
@@ -9,8 +9,7 @@
 
 #define local_irq_save(x) \
 	__asm__ __volatile__("rsm %1,%0" : "=r" (x) :"i" (PSW_I) : "memory" )
-#define local_irq_restore(x) \
-	__asm__ __volatile__("mtsm %0" : : "r" (x) : "memory" )
+#define local_irq_restore(x) __restore_flags(x)
 #define local_irq_disable() __cli()
 #define local_irq_enable()  __sti()
 

             reply	other threads:[~2002-12-15 12:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-15 13:09 Joel Soete [this message]
2002-12-16 23:47 ` [parisc-linux] Is this system_irqsave diff is correct? Grant Grundler

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=3DFC7EFA.9040708@freebel.net \
    --to=joel.soete@freebel.net \
    --cc=parisc-linux@lists.parisc-linux.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