Changeset View
Changeset View
Standalone View
Standalone View
lib/libsys/sparc64/sys/sigaction1.S
- This file was copied from lib/libc/aarch64/sys/syscall.S.
/*- | /*- | ||||
* Copyright (c) 2014 The FreeBSD Foundation | * Copyright (c) 2002 Jake Burkholder. | ||||
* All rights reserved. | * All rights reserved. | ||||
* | * | ||||
* This software was developed by Andrew Turner under | |||||
* sponsorship from the FreeBSD Foundation. | |||||
* | |||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
* modification, are permitted provided that the following conditions | * modification, are permitted provided that the following conditions | ||||
* are met: | * are met: | ||||
* 1. Redistributions of source code must retain the above copyright | * 1. Redistributions of source code must retain the above copyright | ||||
* notice, this list of conditions and the following disclaimer. | * notice, this list of conditions and the following disclaimer. | ||||
* 2. Redistributions in binary form must reproduce the above copyright | * 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | * notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | * documentation and/or other materials provided with the distribution. | ||||
Show All 11 Lines | |||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
*/ | */ | ||||
#include <machine/asm.h> | #include <machine/asm.h> | ||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
#include "SYS.h" | #include "SYS.h" | ||||
RSYSCALL(syscall) | WEAK_REFERENCE(__sys_sigaction, _sigaction) | ||||
ENTRY(__sys_sigaction) | |||||
PIC_PROLOGUE(%o3, %o4) | |||||
SET(sigcode_installed, %o4, %o3) | |||||
lduw [%o3], %o4 | |||||
brnz,a,pt %o4, 1f | |||||
nop | |||||
save %sp, -CCFSZ, %sp | |||||
call __sparc_sigtramp_setup | |||||
nop | |||||
restore | |||||
mov 1, %o4 | |||||
stw %o4, [%o3] | |||||
1: _SYSCALL(sigaction) | |||||
retl | |||||
nop | |||||
END(__sys_sigaction) | |||||
.comm sigcode_installed, 4, 4 |