Subject: Re: Experimental port of FreeBSD ACPI stuffs
To: None <thorpej@zembu.com>
From: T.SHIOZAKI <tshiozak@netbsd.org>
List: tech-kern
Date: 09/27/2000 06:52:40
> On Tue, Sep 26, 2000 at 04:49:12PM +0900, T.SHIOZAKI wrote:
>
> > vps->avail_end -= atop(sz);
> > vps->end -= atop(sz);
> > - msgbuf_paddr = vps->avail_end;
> > + msgbuf_paddr = ptoa(vps->avail_end)
> >
> > But, I feel that this is not cause of the problems reported in the
> > source-changes list.
>
> Actually, this bug may very well have been the cause of the problems. The
> symptoms were very much like a page of memory was being used twice, in
> particular, the IDT page.
Sure.
> I'll work up a new patch for just MEMMAP and have the people who were
> seeing problems test it.
Here is the patch I extracted and made from my ACPI repository:
begin 644 memmap.diff.gz
M'XL("'08T3D``VUE;6UA<"YD:69F`,5;>W?BQI+_&W^*&N<D`^9A!/@=SPVV
MF1E.C.UCF,?=)(<CH#&Z%I(B"6QG-]]]JZJ[I98`VTDV69\98_I97?VK9W?_
M"\;^/'!<L?NA<]6Y[9YO=;V)>#S&8F^:E)W^]9^MV_,^3'&B8]@=+Z/0]^/=
MZ"F*PC%][-KA>+;K-`_W=\V)*\NM4,2A(Y:.=P<A?D2.[X%5:QXTMB;.=`K5
M!?\+N0@TO=5J-;.`0J->K^_6CW8;^V!9QWO6L=4JR%'*Y?+&I@WKN'ET7&]N
M_?`#5/</*OM0QM]'\,,/6_"-'\1(2P2%[1\_7)P-+SJ?K]J]SNG/V\C0G[>W
M*U3:OKBX/:T_-J>'_/6V/>B<'NW7Z]A];M\+-43AHG/VZ</I=O5NN_"-W@^8
M+EP7HJ?YR'<AMD>NV(*M\C?0/K_IPES,_?`)YG8`T2((_#`&-=96.:&KU^GU
MVC<5^3'\W+D]N^YWMLHX-YSC'';LC!S7B9^2KI!T/;_NW;0'PZOK7O="D90V
M?W#B&>!.G?4O*H"_NA6X$C'^`?7:865UE/H1#I&T.*ID$$:(B&JT\?\\R-*Y
M-^+,VC_(XPR+P*`Z@5I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