freebsd-dev/sys/alpha
Marcel Moolenaar 11e0f8e16d Change the second (and last) argument of cpu_set_upcall(). Previously
we were passing in a void* representing the PCB of the parent thread.
Now we pass a pointer to the parent thread itself.
The prime reason for this change is to allow cpu_set_upcall() to copy
(parts of) the trapframe instead of having it done in MI code in each
caller of cpu_set_upcall(). Copying the trapframe cannot always be
done with a simply bcopy() or may not always be optimal that way. On
ia64 specifically the trapframe contains information that is specific
to an entry into the kernel and can only be used by the corresponding
exit from the kernel. A trapframe copied verbatim from another frame
is in most cases useless without some additional normalization.

Note that this change removes the assignment to td->td_frame in some
implementations of cpu_set_upcall(). The assignment is redundant.
A previous call to cpu_thread_setup() already did the exact same
assignment. An added benefit of removing the redundant assignment is
that we can now change td_pcb without nasty side-effects.

This change officially marks the ability on ia64 for 1:1 threading.

Not tested on: amd64, powerpc
Compile & boot tested on: alpha, sparc64
Functionally tested on: i386, ia64
2003-06-04 21:13:21 +00:00
..
alpha Change the second (and last) argument of cpu_set_upcall(). Previously 2003-06-04 21:13:21 +00:00
compile Don't need the .keep_me files. Obrien and I committed past each other. 2001-07-01 23:35:44 +00:00
conf There's just no reason to not have these in GENERIC. 2003-05-18 20:39:15 +00:00
include Rename BUS_DMAMEM_NOSYNC to BUS_DMA_COHERENT. 2003-05-30 20:40:33 +00:00
isa Style(9) a comment added in previous commit. 2003-04-11 13:30:32 +00:00
linux - Replace inline implementations of sigprocmask() with calls to 2003-04-22 18:23:49 +00:00
mcbus Change the console interface to pass a "struct consdev *" instead of a 2003-02-20 20:54:45 +00:00
osf1 - Merge struct procsig with struct sigacts. 2003-05-13 20:36:02 +00:00
pci At great personal risk, add a __packed and __aligned(x) define that 2002-09-23 05:55:10 +00:00
tlsb Gigacommit to improve device-driver source compatibility between 2003-03-03 12:15:54 +00:00
Makefile