aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1999-02-25 11:03:08 +0000
committerBruce Evans <bde@FreeBSD.org>1999-02-25 11:03:08 +0000
commit1b0b259ed2aac750b7ffd0d97386bb75293b5d37 (patch)
tree16c8b980b3143e44646fbaadeea31e773fcd1976 /sys/amd64
parent5c3d6cdb69d4af641ab7af500ef44f95aa875034 (diff)
Notes
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/exception.S6
-rw-r--r--sys/amd64/amd64/exception.s6
2 files changed, 8 insertions, 4 deletions
diff --git a/sys/amd64/amd64/exception.S b/sys/amd64/amd64/exception.S
index 60856e23053fa..1b4663cd78c24 100644
--- a/sys/amd64/amd64/exception.S
+++ b/sys/amd64/amd64/exception.S
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: exception.s,v 1.54 1998/07/28 17:55:37 bde Exp $
+ * $Id: exception.s,v 1.55 1998/08/10 19:41:07 bde Exp $
*/
#include "npx.h"
@@ -317,10 +317,12 @@ ENTRY(fork_trampoline)
movl _switchtime,%ecx
testl %ecx,%ecx
jne 1f
- /* XXX unreachable? */
+ /* XXX unreachable except in the SMP case? */
pushl %eax
call _microuptime
popl %eax
+ movl _ticks,%eax
+ movl %eax,_switchticks
jmp 2f
1:
movl %ecx,(%eax)
diff --git a/sys/amd64/amd64/exception.s b/sys/amd64/amd64/exception.s
index 60856e23053fa..1b4663cd78c24 100644
--- a/sys/amd64/amd64/exception.s
+++ b/sys/amd64/amd64/exception.s
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: exception.s,v 1.54 1998/07/28 17:55:37 bde Exp $
+ * $Id: exception.s,v 1.55 1998/08/10 19:41:07 bde Exp $
*/
#include "npx.h"
@@ -317,10 +317,12 @@ ENTRY(fork_trampoline)
movl _switchtime,%ecx
testl %ecx,%ecx
jne 1f
- /* XXX unreachable? */
+ /* XXX unreachable except in the SMP case? */
pushl %eax
call _microuptime
popl %eax
+ movl _ticks,%eax
+ movl %eax,_switchticks
jmp 2f
1:
movl %ecx,(%eax)