Clear the direction flag on entry to the kernel.
This commit is contained in:
parent
1c679832ee
commit
88697952bb
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: frameasm.h,v 1.6 2007/10/18 15:28:34 yamt Exp $ */
|
||||
/* $NetBSD: frameasm.h,v 1.7 2007/11/14 11:09:49 ad Exp $ */
|
||||
|
||||
#ifndef _AMD64_MACHINE_FRAMEASM_H
|
||||
#define _AMD64_MACHINE_FRAMEASM_H
|
||||
@ -27,7 +27,8 @@
|
||||
movq %rbx,TF_RBX(%rsp) ; \
|
||||
movq %rdx,TF_RDX(%rsp) ; \
|
||||
movq %rcx,TF_RCX(%rsp) ; \
|
||||
movq %rax,TF_RAX(%rsp)
|
||||
movq %rax,TF_RAX(%rsp) ; \
|
||||
cld
|
||||
|
||||
#define INTR_RESTORE_GPRS \
|
||||
movq TF_R15(%rsp),%r15 ; \
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: frameasm.h,v 1.8 2007/10/18 15:28:37 yamt Exp $ */
|
||||
/* $NetBSD: frameasm.h,v 1.9 2007/11/14 11:09:49 ad Exp $ */
|
||||
|
||||
#ifndef _I386_FRAMEASM_H_
|
||||
#define _I386_FRAMEASM_H_
|
||||
@ -63,6 +63,7 @@
|
||||
movl $GSEL(GCPU_SEL, SEL_KPL),%eax ; \
|
||||
movl %ecx,TF_ECX(%esp) ; \
|
||||
movl %eax,%fs ; \
|
||||
cld ; \
|
||||
TLOG
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user