Move trapn and calln as last args, as though they are named they are counted with other args numbers.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23537 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2008-01-15 16:31:04 +00:00
parent e79fe38f8e
commit dba557e4e7

View File

@ -56,8 +56,8 @@ extern "C" {
trap %[trapn]\n \
add.l #4,%%sp \n " \
: "=r"(retvalue) /* output */ \
: [trapn]"i"(trapnr),[calln]"i"(callnr), \
"r"(_p1) /* input */ \
: "r"(_p1), /* input */ \
[trapn]"i"(trapnr),[calln]"i"(callnr) \
: TOS_CLOBBER_LIST /* clobbered regs */ \
); \
retvalue; \
@ -75,8 +75,8 @@ extern "C" {
trap %[trapn]\n \
add.l #6,%%sp \n " \
: "=r"(retvalue) /* output */ \
: [trapn]"i"(trapnr),[calln]"i"(callnr), \
"r"(_p1) /* input */ \
: "r"(_p1), /* input */ \
[trapn]"i"(trapnr),[calln]"i"(callnr) \
: TOS_CLOBBER_LIST /* clobbered regs */ \
); \
retvalue; \
@ -96,8 +96,8 @@ extern "C" {
trap %[trapn]\n \
add.l #6,%%sp \n " \
: "=r"(retvalue) /* output */ \
: [trapn]"i"(trapnr),[calln]"i"(callnr), \
"r"(_p1), "r"(_p2) /* input */ \
: "r"(_p1), "r"(_p2), /* input */ \
[trapn]"i"(trapnr),[calln]"i"(callnr) \
: TOS_CLOBBER_LIST /* clobbered regs */ \
); \
retvalue; \
@ -123,12 +123,12 @@ extern "C" {
move.w %1,-(%%sp) \n \
move.w %[calln],-(%%sp)\n \
trap %[trapn]\n \
add.l #6,%%sp \n " \
add.l #18,%%sp \n " \
: "=r"(retvalue) /* output */ \
: [trapn]"i"(trapnr),[calln]"i"(callnr), \
"r"(_p1), "r"(_p2), \
: "r"(_p1), "r"(_p2), \
"r"(_p3), "r"(_p4), \
"r"(_p5), "r"(_p6) /* input */ \
"r"(_p5), "r"(_p6), /* input */ \
[trapn]"i"(trapnr),[calln]"i"(callnr) \
: TOS_CLOBBER_LIST /* clobbered regs */ \
); \
retvalue; \