/trunk/kernel/generic/include/syscall/syscall.h |
---|
32,8 → 32,8 |
/** @file |
*/ |
#ifndef KERN_SYSCALL_H_ |
#define KERN_SYSCALL_H_ |
#ifndef __SYSCALL_H__ |
#define __SYSCALL_H__ |
typedef enum { |
SYS_IO = 0, |
80,6 → 80,7 |
unative_t a4, unative_t id); |
extern unative_t sys_tls_set(unative_t addr); |
#endif |
#endif |
/trunk/kernel/arch/sparc64/include/trap/syscall.h |
---|
49,6 → 49,7 |
sethi %hi(syscall), %g1 |
ba trap_instruction_handler |
or %g1, %lo(syscall), %g1 |
.endm |
#endif /* __ASM__ */ |
/trunk/kernel/arch/sparc64/src/trap/trap_table.S |
---|
513,7 → 513,7 |
* |
* Input registers: |
* %g1 Address of function to call. |
* %g2 First argument for the function. |
* %g2 Argument for the function. |
* %g6 Pre-set as kernel stack base if trap from userspace. |
* %g7 Pre-set as address of the userspace window buffer. |
*/ |
/trunk/uspace/libc/arch/mips32eb/include/syscall.h |
---|
File deleted |
\ No newline at end of file |
Property changes: |
Deleted: svn:special |
-* |
\ No newline at end of property |
/trunk/uspace/libc/arch/ppc64/include/syscall.h |
---|
File deleted |
/trunk/uspace/libc/arch/sparc64/include/syscall.h |
---|
File deleted |
/trunk/uspace/libc/arch/sparc64/Makefile.inc |
---|
32,7 → 32,8 |
TARGET = sparc64-linux-gnu |
TOOLCHAIN_DIR = /usr/local/sparc64/bin |
ARCH_SOURCES += arch/$(ARCH)/src/psthread.S \ |
ARCH_SOURCES += arch/$(ARCH)/src/syscall.c \ |
arch/$(ARCH)/src/psthread.S \ |
arch/$(ARCH)/src/thread.c |
CFLAGS += -mcpu=ultrasparc -m64 |
/trunk/uspace/libc/arch/sparc64/src/syscall.c |
---|
0,0 → 1,45 |
/* |
* Copyright (C) 2006 Martin Decky |
* All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
* are met: |
* |
* - Redistributions of source code must retain the above copyright |
* notice, this list of conditions and the following disclaimer. |
* - Redistributions in binary form must reproduce the above copyright |
* notice, this list of conditions and the following disclaimer in the |
* documentation and/or other materials provided with the distribution. |
* - The name of the author may not be used to endorse or promote products |
* derived from this software without specific prior written permission. |
* |
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libcsparc64 sparc64 |
* @brief sparc64 architecture dependent parts of libc |
* @ingroup lc |
* @{ |
*/ |
/** @file |
*/ |
#include <libc.h> |
sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2, const sysarg_t p3, const sysarg_t p4, const syscall_t id) |
{ |
return 0; |
} |
/** @} |
*/ |
/trunk/uspace/libc/arch/ia64/include/syscall.h |
---|
File deleted |
/trunk/uspace/libc/arch/ppc32/include/syscall.h |
---|
File deleted |
/trunk/uspace/libc/arch/amd64/include/syscall.h |
---|
File deleted |
/trunk/uspace/libc/arch/mips32/include/syscall.h |
---|
File deleted |
/trunk/uspace/libc/arch/ia32/include/syscall.h |
---|
File deleted |
/trunk/uspace/libc/include/syscall.h |
---|
File deleted |
/trunk/uspace/libc/include/libc.h |
---|
37,7 → 37,6 |
#include <types.h> |
#include <kernel/syscall/syscall.h> |
#include <libarch/syscall.h> |
#define __SYSCALL0(id) __syscall(0, 0, 0, 0, id) |
#define __SYSCALL1(id, p1) __syscall(p1, 0, 0, 0, id) |
48,7 → 47,9 |
extern void __main(void); |
extern void __io_init(void); |
extern void __exit(void); |
extern sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2, const sysarg_t p3, const sysarg_t p4, const syscall_t id); |
#endif |
/** @} |
/trunk/uspace/libc/include/sys/types.h |
---|
26,20 → 26,22 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef LIBC_SYS_TYPES_H_ |
#define LIBC_SYS_TYPES_H_ |
#ifndef __LIBC__SYS_TYPES_H__ |
#define __LIBC__SYS_TYPES_H__ |
#include <types.h> |
#endif |
/** @} |
/** @} |
*/ |
/trunk/uspace/libc/generic/ddi.c |
---|
52,7 → 52,7 |
*/ |
int map_physmem(void *pf, void *vp, unsigned long pages, int flags) |
{ |
return __SYSCALL4(SYS_MAP_PHYSMEM, (sysarg_t) pf, (sysarg_t) vp, pages, flags); |
return __SYSCALL4(SYS_MAP_PHYSMEM, (sysarg_t) pf, (sysarg_t)vp, pages, flags); |
} |
/** Enable I/O space range to task. |