Re: PowerBook 5xx instability fix.

Taylor R Campbell <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
> Date: Sun, 30 Mar 2025 11:29:38 +1100
> From: Nat Sloss <[email protected]>
> 
> The attached patch fixes it and I'd like to commit it if there are no 
> objections.
> 
>  	maxaddr = high[numranges - 1] - m68k_ptob(1);
> -	high[numranges - 1] -= (m68k_round_page(MSGBUFSIZE) + m68k_ptob(1));
> +	high[numranges - 1] -= (m68k_round_page(MSGBUFSIZE) + m68k_ptob(8));

Please put a comment here explaining what's going on.

Is maxaddr still correct?  Should you apply the same substitution on
that line too?  If not, the comment must explain why maxaddr has
m68k_ptob(1) subtracted while high[numranges - 1] has m68k_ptob(8)
subtracted.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.