9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] bitsy bootldr
@ 2002-10-30 11:47 Fco.J.Ballesteros
  2002-10-30 12:42 ` Axel Belinfante
  0 siblings, 1 reply; 5+ messages in thread
From: Fco.J.Ballesteros @ 2002-10-30 11:47 UTC (permalink / raw)
  To: 9fans

> I added the offset of the fields in the comment.
> Shouldn't there be a ``hole /* 0x0c */'' between trim and status?

Hmm. Not sure, but if there's a hole there, then that's the bug that
prevents me from sending RTC interrupts, ugh.

> I added a ``ulong hole;'' in between, set rtar to 0x05
> in clockinit() (next to setting of rttr and rcnr fields)
> and saw the debug print statement of clockintr many many times.


thanks a lot. I'm an idiot. We can probably wake up the bitsy while
suspended with your fix.


> 2) I'm trying to understand (a bit) mapspecial.
> is its parameter the register size in bytes?

Yes. Unless I'm very mistaken.

> Reason I'm asking is that I noticed that this parameter
> is hardcoded in many places (which seems potentially dangerous?)
> (see example below, isn't sizeof(MemConfRegs) > 32?)

The map is done in mmu.c by _map(). Probably it's being mapped
anyway. But I think that's just another bug you've found.

> Just wondering: is there a stylistic or other reason to use
> the numbers, instead of e.g. using sizeof?

I think it'd be better to use sizeof.

Now that you've found the stupid reason why I didn't get rtc interrupts
I'll try to build a new kernel soon and fix those things to see what
happens.

If you do it before I could, it'd be great to merge our versions.
I wouldn't like to end up with three different versions of the bitsy
kernel.

thanks a lot.



^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [9fans] bitsy bootldr
@ 2002-10-30 13:40 Fco.J.Ballesteros
  0 siblings, 0 replies; 5+ messages in thread
From: Fco.J.Ballesteros @ 2002-10-30 13:40 UTC (permalink / raw)
  To: 9fans

I already did a grep for mapspecial and changed those that
map a struct to use sizeof struct.

I'll drop a line to the list if I make any progress other than
that (get the rtc working, for example). You could then test that
kernel to see if the bug for suspend went away.


^ permalink raw reply	[flat|nested] 5+ messages in thread
* [9fans] bitsy bootldr
@ 2002-10-30  8:20 Fco.J.Ballesteros
  2002-10-30 11:10 ` Axel Belinfante
  0 siblings, 1 reply; 5+ messages in thread
From: Fco.J.Ballesteros @ 2002-10-30  8:20 UTC (permalink / raw)
  To: 9fans

:  One things that has changed that could cause a problem based on the
:  amount of time that went by: the bootldr is resetting RTTR to 0x8000
:  for non-windows operating systems to avoid huge time drift.
:
:  Jamey

I think that's not the problem. In fact, our clockpower routine
sets rttr to 0x8000 after power resume.

There has to be something else in the bootldr.  Perhaps the part that
turns on dram is doing it in a different way, or something else permits
our bugs to show up.

If I get some time, I could diff the 2.18.x with my 2.14.y to see what
changed.  But don't hold your breath.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-10-30 13:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-30 11:47 [9fans] bitsy bootldr Fco.J.Ballesteros
2002-10-30 12:42 ` Axel Belinfante
  -- strict thread matches above, loose matches on Subject: below --
2002-10-30 13:40 Fco.J.Ballesteros
2002-10-30  8:20 Fco.J.Ballesteros
2002-10-30 11:10 ` Axel Belinfante

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).