Fixed style bugs in rev.1.94 before MFCing it (for large C asm statements,

use "\n\" instead of "\" at the end of each source line, and don't use
semicolons).  Fixed some older style bugs on the same lines (mainly
English errors in comments).
This commit is contained in:
Bruce Evans 2003-07-30 20:16:04 +00:00
parent 4c672cfa18
commit 1734c95cec

View File

@ -754,15 +754,15 @@ static volatile u_int trap_by_rdmsr;
inthand_t bluetrap6; inthand_t bluetrap6;
#ifdef __GNUC__ #ifdef __GNUC__
__asm __asm
(" \ (" \n\
.text; \ .text \n\
.p2align 2,0x90; \ .p2align 2,0x90 \n\
.type " __XSTRING(CNAME(bluetrap6)) ",@function; \ .type " __XSTRING(CNAME(bluetrap6)) ",@function \n\
" __XSTRING(CNAME(bluetrap6)) ": \ " __XSTRING(CNAME(bluetrap6)) ": \n\
ss; \ ss \n\
movl $0xa8c1d," __XSTRING(CNAME(trap_by_rdmsr)) "; \ movl $0xa8c1d," __XSTRING(CNAME(trap_by_rdmsr)) " \n\
addl $2, (%esp); /* rdmsr is a 2-byte instruction */ \ addl $2, (%esp) /* rdmsr is a 2-byte instruction */ \n\
iret \ iret \n\
"); ");
#endif #endif
@ -773,16 +773,16 @@ __asm
inthand_t bluetrap13; inthand_t bluetrap13;
#ifdef __GNUC__ #ifdef __GNUC__
__asm __asm
(" \ (" \n\
.text; \ .text \n\
.p2align 2,0x90; \ .p2align 2,0x90 \n\
.type " __XSTRING(CNAME(bluetrap13)) ",@function; \ .type " __XSTRING(CNAME(bluetrap13)) ",@function \n\
" __XSTRING(CNAME(bluetrap13)) ": \ " __XSTRING(CNAME(bluetrap13)) ": \n\
ss; \ ss \n\
movl $0xa89c4," __XSTRING(CNAME(trap_by_rdmsr)) "; \ movl $0xa89c4," __XSTRING(CNAME(trap_by_rdmsr)) " \n\
popl %eax; /* discard errorcode. */ \ popl %eax /* discard error code */ \n\
addl $2, (%esp); /* rdmsr is a 2-bytes instruction. */ \ addl $2, (%esp) /* rdmsr is a 2-byte instruction */ \n\
iret; \ iret \n\
"); ");
#endif #endif