Ignore:
Timestamp:
2007-11-16T16:24:05Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9cc0d7c
Parents:
454889c
Message:

Support for six syscall arguments for sparc64.
There is a minor stability issue which needs to be fixed (kernel panics upon entering kconsole from the
console task).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/arch/sparc64/include/syscall.h

    r454889c r05ae7081  
    4040
    4141static inline sysarg_t
    42 __syscall(const sysarg_t p1, const sysarg_t p2, const sysarg_t p3, const sysarg_t p4, const syscall_t id)
     42__syscall(const sysarg_t p1, const sysarg_t p2, const sysarg_t p3,
     43    const sysarg_t p4, const sysarg_t p5, const sysarg_t p6, const syscall_t id)
    4344{
    4445        register uint64_t a1 asm("o0") = p1;
     
    4647        register uint64_t a3 asm("o2") = p3;
    4748        register uint64_t a4 asm("o3") = p4;
     49        register uint64_t a5 asm("o4") = p5;
     50        register uint64_t a6 asm("o5") = p6;
    4851
    4952        asm volatile (
    50                 "ta %5\n"
     53                "ta %7\n"
    5154                : "=r" (a1)
    52                 : "r" (a1), "r" (a2), "r" (a3), "r" (a4), "i" (id)
     55                : "r" (a1), "r" (a2), "r" (a3), "r" (a4), "r" (a5), "r" (a6),
     56                  "i" (id)
    5357                : "memory"
    5458        );
Note: See TracChangeset for help on using the changeset viewer.