Changeset f2ef7fd in mainline for uspace/lib/libc/include


Ignore:
Timestamp:
2008-10-05T21:20:13Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6198611
Parents:
1d132ae
Message:

Support for SYSENTER on ia32.

Location:
uspace/lib/libc/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/libc.h

    r1d132ae rf2ef7fd  
    4040#include <libarch/syscall.h>
    4141
    42 #define __SYSCALL0(id) __syscall(0, 0, 0, 0, 0, 0, id)
    43 #define __SYSCALL1(id, p1) __syscall(p1, 0, 0, 0, 0, 0, id)
    44 #define __SYSCALL2(id, p1, p2) __syscall(p1, p2, 0, 0, 0, 0, id)
    45 #define __SYSCALL3(id, p1, p2, p3) __syscall(p1, p2, p3, 0, 0, 0, id)
    46 #define __SYSCALL4(id, p1, p2, p3, p4) __syscall(p1, p2, p3, p4, 0, 0, id)
    47 #define __SYSCALL5(id, p1, p2, p3, p4, p5) __syscall(p1, p2, p3, p4, p5, 0, id)
     42#define __SYSCALL0(id) __syscall0(0, 0, 0, 0, 0, 0, id)
     43#define __SYSCALL1(id, p1) __syscall1(p1, 0, 0, 0, 0, 0, id)
     44#define __SYSCALL2(id, p1, p2) __syscall2(p1, p2, 0, 0, 0, 0, id)
     45#define __SYSCALL3(id, p1, p2, p3) __syscall3(p1, p2, p3, 0, 0, 0, id)
     46#define __SYSCALL4(id, p1, p2, p3, p4) __syscall4(p1, p2, p3, p4, 0, 0, id)
     47#define __SYSCALL5(id, p1, p2, p3, p4, p5) __syscall5(p1, p2, p3, p4, p5, 0, id)
    4848#define __SYSCALL6(id, p1, p2, p3, p4, p5, p6) \
    49     __syscall(p1, p2, p3, p4, p5, p6,id)
     49    __syscall6(p1, p2, p3, p4, p5, p6, id)
    5050
    5151extern void __main(void *pcb_ptr);
  • uspace/lib/libc/include/syscall.h

    r1d132ae rf2ef7fd  
    3333 * @file
    3434 * @brief       Syscall function declaration for architectures that don't
    35  *              inline syscalls.
     35 *              inline syscalls or architectures that handle syscalls
     36 *              according to the number of arguments.
    3637 */
    3738
     
    3940#define LIBC_SYSCALL_H_
    4041
     42#ifndef LIBARCH_SYSCALL_GENERIC
     43#error "You can't include this file directly."
     44#endif
     45
    4146#include <sys/types.h>
    4247#include <kernel/syscall/syscall.h>
     48
     49#define __syscall0      __syscall
     50#define __syscall1      __syscall
     51#define __syscall2      __syscall
     52#define __syscall3      __syscall
     53#define __syscall4      __syscall
     54#define __syscall5      __syscall
     55#define __syscall6      __syscall
    4356
    4457extern sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2,
Note: See TracChangeset for help on using the changeset viewer.