Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: M2 assertion with today's current



Matthias Drochner <M.Drochner%fz-juelich.de@localhost> wrote:
> OK, that one is solved: the address calculation in sched_cpuattach()
> of sched_m2 didn't work as expected. It uses the roundup()
> macro with a signed argument which leads to unexpected results
> for addresses >2G.
> Since CACHE_LINE_SIZE is a power-of-two roundup() is too expensive
> here anyway -- something doing simple bitmasks would be better,
> but for not this one fixes it:

Good catch! We have roundup2() which works with power of two values.
Commited.

-- 
Best regards,
Mindaugas
www.NetBSD.org




Home | Main Index | Thread Index | Old Index