Tyson D Sawyer wrote:
>
> This morning while in the shower it came to me what the +1 was for in
> Ollie's mtrr code. It is a rounding issue and my proposed changes will
> fail for anything that needs more than 1 mtrr.
>
> I think that the correct version is:
>
> range_wb = 1 << (fms(ramsizeK - 1) + 1);
> range_uc = range_wb - ramsizeK;
>
> if ((range_uc==0) || ((ramsizeK % range_uc) == 0)) {
>
Committed.
Ollie
- Re: Changes to mtrr code Ollie Lho
- Re: Changes to mtrr code Ronald G Minnich
- Re: Changes to mtrr code Ronald G Minnich
- Re: Changes to mtrr code tyson
- Ollie Lho
