Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Apr 1996 18:52:32 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, phk@critter.tfs.com
Cc:        CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sys@freefall.freebsd.org, davidg@Root.COM, phk@freefall.freebsd.org
Subject:   Re: cvs commit: src/sys/i386/i386 swtch.s vm_machdep.c src/sys/i386/include pcb.h src/sys/i386/isa wd.c
Message-ID:  <199604190852.SAA10195@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> It should save only 1 cycle on a 486 and 0.5 or 1 cycles on a Pentium :-).
>> Even if the value has to be loaded from memory, it should be in a cache

>Remeber that you will have to save it as well...

No, you only need to save it in savectx(), or always return 1 in cpu_switch()
to disambiguate the return of savectx() via cpu_switch().

>No matter how many, you would have wasted those cycles anyway..

Actually not on a pentium if it takes 0.5 cycles, because 0.5 really means
0 :-).  (It means that the load uses a spare slot in one of the pipelines.
`should' means that the code should be optimized for the pipelines and in
particular that the extra load should be ordered carefully.)

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604190852.SAA10195>