From: Cort Dougan <cort@fsmlabs.com>
To: Pavel Roskin <pavel_roskin@geocities.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: Disabling interrupts
Date: Thu, 23 Mar 2000 14:45:36 -0700 [thread overview]
Message-ID: <20000323144536.J11342@medea.fsmlabs.com> (raw)
In-Reply-To: <Pine.LNX.4.21.0003231641120.31824-100000@sunapee.transcept.com>; from Pavel Roskin on Thu, Mar 23, 2000 at 04:50:05PM -0500
Does it have to be a user mode piece of code? You're going to have real
trouble figuring that out if so. Could you put that small portion of code
into a kernel module and just load it from your user program to do what it
needs to?
What is it you're trying to do that shouldn't be interrupted?
} I need to disable interrupts for a short time from a user program on
} RPX/Lite. This needs to be done only once, but it's absolutely essential
} that the program is not interrupted during a certain period of time.
}
} Using the __cli() function from the kernel sources in a user-space program
} doesn't work. The first instruction "mfmsr %r0" (Get current interrupt
} state) causes SIGILL.
}
} Probably I could hack the kernel to make processes with very high priority
} uninterruptible.
}
} I'm quite sure that the problem is not new. Anybody has a better idea?
}
} Pavel Roskin
}
}
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2000-03-23 21:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-23 21:50 Disabling interrupts Pavel Roskin
2000-03-23 21:45 ` Cort Dougan [this message]
2000-03-23 21:58 ` Pavel Roskin
2000-03-23 22:31 ` Greg Johnson
2000-03-23 22:48 ` Cort Dougan
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=20000323144536.J11342@medea.fsmlabs.com \
--to=cort@fsmlabs.com \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=pavel_roskin@geocities.com \
/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;
as well as URLs for NNTP newsgroup(s).