Mr Johnson Paul | 3 Jun 2009 13:32
Picon

(NOTICE OF ATM CARD)

An Atm card containing  $2.8 m,contract/inheritance have been awarded to you send your details to
atmdelivery009 <at> sify.com 
Telephone number:+2347036427331
Mr.Johnson Paul.
Sincerely,Atm Card Award Team.

Masao Uebayashi | 28 Jun 2009 07:44
Picon
Gravatar

pmap - PV_MODIFIED / PV_REFERENCED bits in pv_flags?

pmap_remove_pv() copies PV_MODIFIED | PV_REFERENCED bits set in
pv_flags.  I don't think that this happens now that PV_MODIFIED and
PV_REFERENCED bits are only set in pvh_attrs because these are per
physical page property, not per virtual map (pv_entry).  This coded
was added in 1.75, at that time pvh_attrs didn't exist.  I guess that
pv_flags in the first pv_entry was used as what pvh_attrs does (== per
physical page property).

I think that the following lines could be removed safely.

1.75      mhitch   2047:                        /*
                   2048:                         * Copy current
modified and referenced status to
                   2049:                         * the following entry
before copying.
                   2050:                         */
1.130     chs      2051:
1.75      mhitch   2052:                        npv->pv_flags |=
                   2053:                            pv->pv_flags &
(PV_MODIFIED | PV_REFERENCED);

I have not tested at all. :)))

Masao

Izumi Tsutsui | 28 Jun 2009 09:01
Picon
Gravatar

Re: pmap - PV_MODIFIED / PV_REFERENCED bits in pv_flags?

uebayasi <at> gmail.com wrote:

> pmap_remove_pv() copies PV_MODIFIED | PV_REFERENCED bits set in
> pv_flags.  I don't think that this happens now that PV_MODIFIED and
> PV_REFERENCED bits are only set in pvh_attrs because these are per
> physical page property, not per virtual map (pv_entry).  This coded
> was added in 1.75, at that time pvh_attrs didn't exist.  I guess that
> pv_flags in the first pv_entry was used as what pvh_attrs does (== per
> physical page property).
> 
> I think that the following lines could be removed safely.
> 
> 1.75      mhitch   2047:                        /*
>                    2048:                         * Copy current
> modified and referenced status to
>                    2049:                         * the following entry
> before copying.
>                    2050:                         */
> 1.130     chs      2051:
> 1.75      mhitch   2052:                        npv->pv_flags |=
>                    2053:                            pv->pv_flags &
> (PV_MODIFIED | PV_REFERENCED);
> 
> I have not tested at all. :)))

I'm not sure what's your point and how exactly you tracked the logs,
but are you asking that code block should have been removed in rev 1.163?
---
Izumi Tsutsui

(Continue reading)

Masao Uebayashi | 28 Jun 2009 09:08
Picon
Gravatar

Re: pmap - PV_MODIFIED / PV_REFERENCED bits in pv_flags?

> I'm not sure what's your point and how exactly you tracked the logs,
> but are you asking that code block should have been removed in rev 1.163?

I have not tracked all the changes.  My question is just "when
PV_MODIFIED and/or PV_REFERENCED are set in pv_flags"?

Masao

Masao Uebayashi | 28 Jun 2009 09:37
Picon
Gravatar

pmap - "Flash the TLB"?

I think that the word "Flash the TLB" used in comments is a little
confusing.  "Invalidate the TLB" would be more appropriate.

Masao

Masao Uebayashi | 28 Jun 2009 09:34
Picon
Gravatar

Re: pmap - PV_MODIFIED / PV_REFERENCED bits in pv_flags?

After re-reading logs, I think that 1.163 was the right timing to
remove the code fragment, yes.  PV_MODIFIED / PV_REFERENCED are never
set in pv_flags now.  Probably it'd be better to rename these to
PVH_*?

Masao

Izumi Tsutsui | 28 Jun 2009 09:52
Picon
Gravatar

Re: pmap - "Flash the TLB"?

> I think that the word "Flash the TLB" used in comments is a little
> confusing.  "Invalidate the TLB" would be more appropriate.

It is not flash but flush, and the latter has almost
the same meaning with invalidate, I think.
("grep -i flush src/sys/arch/*/*/pmap.c" gets many lines)

Sometimes "flush" implicitly means "invalidate and writeback"
(against "purge" which is invalidate only) for memory cache ops,
but there is no writeback ops on TLB, I guess.
---
Izumi Tsutsui

Izumi Tsutsui | 28 Jun 2009 09:41
Picon
Gravatar

Re: pmap - PV_MODIFIED / PV_REFERENCED bits in pv_flags?

> > I'm not sure what's your point and how exactly you tracked the logs,
> > but are you asking that code block should have been removed in rev 1.163?
> 
> I have not tracked all the changes.  My question is just "when
> PV_MODIFIED and/or PV_REFERENCED are set in pv_flags"?

The answer is:
"Those page attributes have been moved from pv_flags in pv_entry
 (which belonged to pmap_physseg) to pvh_attr in vm_page_md in rev 1.163."
(we could track it by checking when pvh_attr was in vmparam.h)

In that revision my intention was to just remove gcc extention
(it was suggetted by Jason to move stuff from physseg to vm_page),
but anyway I'll remove that code block and rename those page attributes
to PGA_FOO like alpha for future readers.
---
Izumi Tsutsui

Masao Uebayashi | 28 Jun 2009 10:14
Picon
Gravatar

Re: pmap - PV_MODIFIED / PV_REFERENCED bits in pv_flags?

> The answer is:
> "Those page attributes have been moved from pv_flags in pv_entry
>  (which belonged to pmap_physseg) to pvh_attr in vm_page_md in rev 1.163."
> (we could track it by checking when pvh_attr was in vmparam.h)
>
> In that revision my intention was to just remove gcc extention
> (it was suggetted by Jason to move stuff from physseg to vm_page),
> but anyway I'll remove that code block and rename those page attributes
> to PGA_FOO like alpha for future readers.

Thanks!

Masao

David Holland | 1 Jul 2009 11:16
Picon

Re: NetBSD for Sicortex

Back on Mon, Mar 16, 2009 at 07:54:56PM +0900, Toru Nishimura wrote:
> Does anyone out here have connection w/ Sicortex and have
> ambition to port NetBSD for it?  The company looks ex-Digital
> found at the historic site.  Use NetBSD instead ...

Sicortex has since collapsed :(

I suspect that people who own the h/w will be wanting to keep it for a
while yet, and thus perhaps wanting a maintained OS; however, I have
no idea how to translate that into rescuing hardware docs from the
corporate implosion.

--

-- 
David A. Holland
dholland <at> netbsd.org


Gmane