Date: Sat, 21 Sep 2002 17:49:15 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 17894 for review Message-ID: <200209220049.g8M0nFia036991@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=17894 Change 17894 by peter@peter_overcee on 2002/09/21 17:49:03 update lgdt,lidt,lldt,ltr. Remind me again why lldt, lidt and ltr are not inlines? Affected files ... .. //depot/projects/hammer/sys/x86_64/x86_64/support.s#4 edit Differences ... ==== //depot/projects/hammer/sys/x86_64/x86_64/support.s#4 (text+ko) ==== @@ -638,8 +638,7 @@ /* void lgdt(struct region_descriptor *rdp); */ ENTRY(lgdt) /* reload the descriptor table */ - movl 4(%esp),%eax - lgdt (%eax) + lgdt (%rdi) /* flush the prefetch q */ jmp 1f @@ -649,37 +648,33 @@ movl $KDSEL,%eax mov %ax,%ds mov %ax,%es - mov %ax,%gs mov %ax,%ss - movl $KPSEL,%eax - mov %ax,%fs /* reload code selector by turning return into intersegmental return */ - movl (%esp),%eax - pushl %eax - movl $KCSEL,4(%esp) - lret + popq %rax + pushq $KCSEL + pushq %rax + lretq /* * void lidt(struct region_descriptor *rdp); */ ENTRY(lidt) - movl 4(%esp),%eax - lidt (%eax) + lidt (%rdi) ret /* * void lldt(u_short sel) */ ENTRY(lldt) - lldt 4(%esp) + lldt %di ret /* * void ltr(u_short sel) */ ENTRY(ltr) - ltr 4(%esp) + ltr %di ret /* void reset_dbregs() */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209220049.g8M0nFia036991>