Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jul 2002 15:12:43 +0800
From:      "David Xu" <davidx@viasoft.com.cn>
To:        <current@FreeBSD.ORG>, "Peter Wemm" <peter@wemm.org>
Subject:   Re: Remember my ill-fated i386 smp pmap optimizations?
Message-ID:  <01d801c2264e$db1b4fe0$ef01a8c0@davidwnt>
References:  <20020708062855.02DE03808@overcee.wemm.org>

next in thread | previous in thread | raw e-mail | index | archive | help

Gartner: Apache is vulnerable, we recommend switching back to IIS to =
protect yourselves
----- Original Message -----=20
From: "Peter Wemm" <peter@wemm.org>
To: <current@FreeBSD.ORG>
Sent: Monday, July 08, 2002 2:28 PM
Subject: Remember my ill-fated i386 smp pmap optimizations?


> A few months ago, I had a bit of a disaster with some pmap =
optimizations.
> After committing, all hell broke loose.  It was backed out completely.
>=20
> I finally found the problem (diff cleaned up to highlight the =
problem):
>=20
> pmap_mapdev()
> ...
>         for (tmpva =3D va; size > 0; ) {
>                 pte =3D vtopte(tmpva);
>                 *pte =3D pa | PG_RW | PG_V | pgeflag;
>                 size -=3D PAGE_SIZE;
>                 tmpva +=3D PAGE_SIZE;
> -               pa +=3D PAGE_SIZE;

:(

>         }
>         invltlb();
>=20
> Excuse me while I go outside and shoot myself.
>=20
> Cheers,
> -Peter
> --
> Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com
> "All of this is for nothing if we don't go to the stars" - JMS/B5

sorry for a bit OT, but why are pmap_mapdev and pmap_unmapdev still =
using
old C language parameter style? I saw other functions in pmap using ANSI
C style.

David Xu



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01d801c2264e$db1b4fe0$ef01a8c0>