From: Robin Getz <rgetz@blackfin.uclinux.org>
To: fundu_1999@yahoo.com
Cc: Mike Frysinger <vapier.adi@gmail.com>,
linux embedded <linux-embedded@vger.kernel.org>
Subject: Re: local_save_flags(flags)
Date: Sun, 28 Sep 2008 23:32:05 -0400 [thread overview]
Message-ID: <200809282332.05827.rgetz@blackfin.uclinux.org> (raw)
In-Reply-To: <77566.7174.qm@web63401.mail.re1.yahoo.com>
On Wed 24 Sep 2008 13:06, Fundu pondered:
> > >>> what about Non maskable interrupts ? disabling
> > >>> interrupt won't have any effect on that
> > right ?
> > >>
> > >> that really doesnt make sense by definition huh.
> > >> non-maskable means
> > >> they cant be masked.
> > >
> > > yeah thats the point. i should have elaborated more.
> > > then there's no guarantee that your code wont be
> > interrupted ?
Disabling interrupts does not normally mask NMI, reset, exceptions
and emulation. All can interrupt your code. Most do not return (except
exceptions) - so it is not a big deal.
exceptions - also depend heavily on your processor type/architecture - but can
range from TLB miss/dirty - to unaligned access fixups.
On Blackfin - we don't do unaligned access fixups - this has the upside of
when your code does this - it crashes - so you tend to find it early :) The
downside is that the code which functions (slowly) on other architectures
does not run on Blackfin...
> > design your system properly and it wont be an issue
>
> could you elaborate more on this, as to what you mean by good design in
> this context.
If you have something that is timing critical - make sure - by design - that
you will not cause exception events.
In most Blackfin systems that is done by ensuring that the TLB for the kernel
is covered and locked. You never get a ITLB miss in kernel code, and a DTLB
miss only occurs on kmalloced data. (which you shouldn't be acessing)
> > you about the Blackfin processor, but i doubt you're
> > using that.
>
> sure i would like to know. i also have a 537 which i would work on for
> the next project and don't mind more info on it.
It really depends on what you are trying to do.
If you are that timing critical - you want to put things into internal L1
memory - so you don't take the penalty of cache misses/flushes either...
next prev parent reply other threads:[~2008-09-29 3:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <556445368AFA1C438794ABDA8901891C098AABE6@USA0300MS03.na.xerox.net>
2008-09-18 21:09 ` local_save_flags(flags) Fundu
2008-09-18 21:15 ` local_save_flags(flags) Mike Frysinger
2008-09-18 22:05 ` local_save_flags(flags) Fundu
2008-09-18 22:07 ` local_save_flags(flags) Mike Frysinger
2008-09-18 22:45 ` local_save_flags(flags) Fundu
2008-09-18 22:51 ` local_save_flags(flags) Mike Frysinger
2008-09-23 20:01 ` local_save_flags(flags) Fundu
2008-09-23 23:11 ` local_save_flags(flags) Mike Frysinger
2008-09-24 1:15 ` local_save_flags(flags) Fundu
2008-09-24 1:31 ` local_save_flags(flags) Mike Frysinger
2008-09-24 17:06 ` local_save_flags(flags) Fundu
2008-09-29 3:32 ` Robin Getz [this message]
2008-09-19 9:52 ` local_save_flags(flags) Daniel THOMPSON
2008-09-18 18:48 local_save_flags(flags) Fundu
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=200809282332.05827.rgetz@blackfin.uclinux.org \
--to=rgetz@blackfin.uclinux.org \
--cc=fundu_1999@yahoo.com \
--cc=linux-embedded@vger.kernel.org \
--cc=vapier.adi@gmail.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).