mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
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:
parent
4c672cfa18
commit
1734c95cec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118226
@ -754,15 +754,15 @@ static volatile u_int trap_by_rdmsr;
|
||||
inthand_t bluetrap6;
|
||||
#ifdef __GNUC__
|
||||
__asm
|
||||
(" \
|
||||
.text; \
|
||||
.p2align 2,0x90; \
|
||||
.type " __XSTRING(CNAME(bluetrap6)) ",@function; \
|
||||
" __XSTRING(CNAME(bluetrap6)) ": \
|
||||
ss; \
|
||||
movl $0xa8c1d," __XSTRING(CNAME(trap_by_rdmsr)) "; \
|
||||
addl $2, (%esp); /* rdmsr is a 2-byte instruction */ \
|
||||
iret \
|
||||
(" \n\
|
||||
.text \n\
|
||||
.p2align 2,0x90 \n\
|
||||
.type " __XSTRING(CNAME(bluetrap6)) ",@function \n\
|
||||
" __XSTRING(CNAME(bluetrap6)) ": \n\
|
||||
ss \n\
|
||||
movl $0xa8c1d," __XSTRING(CNAME(trap_by_rdmsr)) " \n\
|
||||
addl $2, (%esp) /* rdmsr is a 2-byte instruction */ \n\
|
||||
iret \n\
|
||||
");
|
||||
#endif
|
||||
|
||||
@ -773,16 +773,16 @@ __asm
|
||||
inthand_t bluetrap13;
|
||||
#ifdef __GNUC__
|
||||
__asm
|
||||
(" \
|
||||
.text; \
|
||||
.p2align 2,0x90; \
|
||||
.type " __XSTRING(CNAME(bluetrap13)) ",@function; \
|
||||
" __XSTRING(CNAME(bluetrap13)) ": \
|
||||
ss; \
|
||||
movl $0xa89c4," __XSTRING(CNAME(trap_by_rdmsr)) "; \
|
||||
popl %eax; /* discard errorcode. */ \
|
||||
addl $2, (%esp); /* rdmsr is a 2-bytes instruction. */ \
|
||||
iret; \
|
||||
(" \n\
|
||||
.text \n\
|
||||
.p2align 2,0x90 \n\
|
||||
.type " __XSTRING(CNAME(bluetrap13)) ",@function \n\
|
||||
" __XSTRING(CNAME(bluetrap13)) ": \n\
|
||||
ss \n\
|
||||
movl $0xa89c4," __XSTRING(CNAME(trap_by_rdmsr)) " \n\
|
||||
popl %eax /* discard error code */ \n\
|
||||
addl $2, (%esp) /* rdmsr is a 2-byte instruction */ \n\
|
||||
iret \n\
|
||||
");
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user