Ignore:
Timestamp:
2008-02-27T11:49:17Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
56976a17
Parents:
fdb7795
Message:

code cleanup (mostly signed/unsigned)
allow extra compiler warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/arch/ppc64/src/syscall.c

    rfdb7795 r6c441cf8  
    3737#include <libc.h>
    3838
    39 sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2, const sysarg_t p3, const sysarg_t p4, const syscall_t id)
     39sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2, const sysarg_t p3,
     40    const sysarg_t p4, const sysarg_t p5, const sysarg_t p6, const syscall_t id)
    4041{
    4142        register sysarg_t __ppc32_reg_r3 asm("3") = p1;
     
    4344        register sysarg_t __ppc32_reg_r5 asm("5") = p3;
    4445        register sysarg_t __ppc32_reg_r6 asm("6") = p4;
    45         register sysarg_t __ppc32_reg_r7 asm("7") = id;
     46        register sysarg_t __ppc32_reg_r7 asm("7") = p5;
     47        register sysarg_t __ppc32_reg_r8 asm("8") = p6;
     48        register sysarg_t __ppc32_reg_r9 asm("9") = id;
    4649       
    4750        asm volatile (
     
    5255                  "r" (__ppc32_reg_r5),
    5356                  "r" (__ppc32_reg_r6),
    54                   "r" (__ppc32_reg_r7)
     57                  "r" (__ppc32_reg_r7),
     58                  "r" (__ppc32_reg_r8),
     59                  "r" (__ppc32_reg_r9)
    5560        );
    5661       
Note: See TracChangeset for help on using the changeset viewer.