K 10 svn:author V 6 cognet K 8 svn:date V 27 2014-02-02T20:58:23.061973Z K 7 svn:log V 404 Change the way pcpu and curthread are stored per-core: the old way was to store pcpu in a register, and get curthread from pcpu, which is not very atomic, and led to issues if the thread was migrated to another core between the time we got the pcpu address and the time we got curthread. Instead, we now store curthread where pcpu used to be store, and we calculate the pcpu address based on the cpu id. END