From: Samuel Rydh <samuel@ibrium.se>
To: Gabriel Paubert <paubert@iram.es>
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: [PATCH] gettimeofday stability
Date: Thu, 19 Apr 2001 22:43:32 +0200 [thread overview]
Message-ID: <20010419224332.A1021@ibrium.se> (raw)
In-Reply-To: <Pine.HPX.4.10.10104161316490.1891-100000@gra-ux1.iram.es>; from paubert@iram.es on Mon, Apr 16, 2001 at 01:25:56PM +0200
On Mon, Apr 16, 2001 at 01:25:56PM +0200, Gabriel Paubert wrote:
> > Ideally, TB should not be touched. Indeed, MOL can run without
> > touching TB (but DEC is essential). However, TB needs to be
> > modified for 'save session' feature to work. Basically, the RAM
> > and cpu state of MacOS is flushed to disk. At a later time,
> > MacOS can be restarted instantly. The problem is that MacOS can't
> > deal with the TB skip that occurs if the timebase is not restored
> > (no big surprise there).
>
> By touching the TB, you'll also break all other Linux applications which
> may have a valid use for the TB.
The only noticeable effect is a small clock drift originating from
the loading and restoring of the timebase (and of course, only when
MOL is running). Whatever MOL puts into TB/DEC is completely
invisible to other processes.
Anyway, I'll see if I can locate and patch away the use of
the timebase register in MacOS - that would allow the
save-session feature to work without having to touch the TB.
> BTW: how do you handle multiple MOL sessions ?
Mutli-session support was actually added a few days ago -
a matter of making sure the MOL kernel module keeps session
specific data in a single struct, passed as a parameter.
> > Anyway, the negative offset check is desirable even if it is
> > only the DEC that is touched.
>
> No, it is not, is is a textbook case of curing the symptom instead of the
> cause.
Well, what I was looking for was a change to remove the assumption
that the timer code was the sole user of the DEC register. Pauls
change seems fix that neatly.
Regards,
/Samuel
----------------------------------------------------------
E-mail <samuel@ibrium.se> WWW: <http://www.ibrium.se>
Phone/fax: (home) +46 8 4418431, (work) +46 8 7908470
----------------------------------------------------------
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2001-04-19 20:43 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-11 19:00 [PATCH] gettimeofday stability Samuel Rydh
2001-04-11 19:42 ` Gabriel Paubert
2001-04-11 20:09 ` Karim Yaghmour
2001-04-11 21:31 ` Benjamin Herrenschmidt
2001-04-12 18:09 ` Gabriel Paubert
2001-04-14 6:49 ` Karim Yaghmour
2001-04-16 11:56 ` Gabriel Paubert
2001-04-16 13:25 ` Benjamin Herrenschmidt
2001-04-16 12:53 ` Gabriel Paubert
2001-04-17 11:22 ` Gabriel Paubert
2001-04-11 23:07 ` Samuel Rydh
2001-04-16 11:25 ` Gabriel Paubert
2001-04-19 20:43 ` Samuel Rydh [this message]
2001-04-21 15:21 ` Gabriel Paubert
2001-04-21 18:16 ` Samuel Rydh
2001-04-21 19:37 ` Gabriel Paubert
-- strict thread matches above, loose matches on Subject: below --
2001-04-16 16:00 Iain Sandoe
2001-04-16 22:19 ` Dan Malek
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=20010419224332.A1021@ibrium.se \
--to=samuel@ibrium.se \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=paubert@iram.es \
/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).