diff options
author | jkim <jkim@FreeBSD.org> | 2012-06-13 21:03:01 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2012-06-13 21:03:01 +0000 |
commit | d1d32ebbe590b2417e7c158f2cf2265006ea68bf (patch) | |
tree | 0452601b7184f9c8ae2440c7f2697d9835717e9d /sys/amd64 | |
parent | 2531f6420107e5e3ef5dbf077ad00baec45d02b3 (diff) | |
download | FreeBSD-src-d1d32ebbe590b2417e7c158f2cf2265006ea68bf.zip FreeBSD-src-d1d32ebbe590b2417e7c158f2cf2265006ea68bf.tar.gz |
- Fix resumectx() prototypes to reflect reality.
- For i386, simply jump to resumectx() with PCB in %ecx.
- Fix a style(9) nit while I am here.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/cpu_switch.S | 2 | ||||
-rw-r--r-- | sys/amd64/include/pcb.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/amd64/cpu_switch.S b/sys/amd64/amd64/cpu_switch.S index 240c955..12542d7 100644 --- a/sys/amd64/amd64/cpu_switch.S +++ b/sys/amd64/amd64/cpu_switch.S @@ -394,7 +394,7 @@ ENTRY(savectx) END(savectx) /* - * resumectx(pcb in %rdi, cr3 in %rsi) + * resumectx(pcb, cr3) * Resuming processor state from pcb. */ ENTRY(resumectx) diff --git a/sys/amd64/include/pcb.h b/sys/amd64/include/pcb.h index 619fba5..35665f1 100644 --- a/sys/amd64/include/pcb.h +++ b/sys/amd64/include/pcb.h @@ -100,7 +100,7 @@ struct pcb { register_t pcb_xsmask; /* fpu context for suspend/resume */ - void * pcb_fpususpend; + void *pcb_fpususpend; struct savefpu *pcb_save; @@ -142,7 +142,7 @@ clear_pcb_flags(struct pcb *pcb, const u_int flags) void makectx(struct trapframe *, struct pcb *); int savectx(struct pcb *) __returns_twice; -void resumectx(struct pcb *); +void resumectx(struct pcb *, register_t); #endif |