marcel 6da471ce02 Eliminate the PC_CURTHREAD symbol and load the current thread's
thread structure pointer atomically from r13 (the pcpu pointer)
for the current CPU/core.
Add a CTASSERT in machdep.c to make sure that pc_curthread is in
fact the first field in struct pcpu.

The only non-atomic operations left were those related to process-
space operations, such as casuword, subyte, suword16, fubyte,
fuword16, copyin, copyout and their variations.

The casuword function has been re-structured more complete than
the others. This way we have an example of a better bundling
without introducing a lot of risk when we get it wrong. The
other functions can be rebundled in separate commits and with
the appropriate testing.
2013-02-12 17:38:35 +00:00
..
2013-02-11 23:14:54 +00:00
2012-10-10 08:36:38 +00:00
2012-11-01 04:07:08 +00:00
2013-02-09 06:31:22 +00:00
2012-12-28 09:19:49 +00:00
2013-01-17 19:03:24 +00:00
2013-02-09 04:13:45 +00:00
2012-10-10 08:36:38 +00:00
2013-02-11 22:54:23 +00:00