gcc-3 has objections about the bluetrap6 and bluetrap13 inline asm
functions. Apparently multi-line string asm arguments are deprecated.
This commit is contained in:
parent
22c1cd205e
commit
e11e07928b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83275
@ -693,15 +693,15 @@ static volatile u_int trap_by_rdmsr;
|
||||
*/
|
||||
inthand_t bluetrap6;
|
||||
__asm
|
||||
("
|
||||
.text
|
||||
.p2align 2,0x90
|
||||
.type " __XSTRING(CNAME(bluetrap6)) ",@function
|
||||
" __XSTRING(CNAME(bluetrap6)) ":
|
||||
ss
|
||||
movl $0xa8c1d," __XSTRING(CNAME(trap_by_rdmsr)) "
|
||||
addl $2, (%esp) # I know rdmsr is a 2-bytes instruction.
|
||||
iret
|
||||
(" \
|
||||
.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 \
|
||||
");
|
||||
|
||||
/*
|
||||
@ -710,16 +710,16 @@ __asm
|
||||
*/
|
||||
inthand_t bluetrap13;
|
||||
__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) # I know rdmsr is a 2-bytes instruction.
|
||||
iret
|
||||
(" \
|
||||
.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; \
|
||||
");
|
||||
|
||||
/*
|
||||
|
@ -693,15 +693,15 @@ static volatile u_int trap_by_rdmsr;
|
||||
*/
|
||||
inthand_t bluetrap6;
|
||||
__asm
|
||||
("
|
||||
.text
|
||||
.p2align 2,0x90
|
||||
.type " __XSTRING(CNAME(bluetrap6)) ",@function
|
||||
" __XSTRING(CNAME(bluetrap6)) ":
|
||||
ss
|
||||
movl $0xa8c1d," __XSTRING(CNAME(trap_by_rdmsr)) "
|
||||
addl $2, (%esp) # I know rdmsr is a 2-bytes instruction.
|
||||
iret
|
||||
(" \
|
||||
.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 \
|
||||
");
|
||||
|
||||
/*
|
||||
@ -710,16 +710,16 @@ __asm
|
||||
*/
|
||||
inthand_t bluetrap13;
|
||||
__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) # I know rdmsr is a 2-bytes instruction.
|
||||
iret
|
||||
(" \
|
||||
.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; \
|
||||
");
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user