summaryrefslogtreecommitdiffstats
path: root/sys/alpha/linux/linux_sysvec.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-12-16 16:28:58 +0000
committerbde <bde@FreeBSD.org>1998-12-16 16:28:58 +0000
commit7b9dc76b762c332efb38713c18c2d0a20a25d4d0 (patch)
tree03e1009a8b165fa0765493fb3ca3d0ecab2f762b /sys/alpha/linux/linux_sysvec.c
parent6e5fef184259ee17f628443ebdbac4fc70755766 (diff)
downloadFreeBSD-src-7b9dc76b762c332efb38713c18c2d0a20a25d4d0.zip
FreeBSD-src-7b9dc76b762c332efb38713c18c2d0a20a25d4d0.tar.gz
Removed the cast to a pointer in the definition of PS_STRINGS and
adjusted related casts to match (only in the kernel in this commit). The pointer was only wanted in one place in kern_exec.c. Applications should use the kern.ps_strings sysctl instead of PS_STRINGS, so they shouldn't notice this change.
Diffstat (limited to 'sys/alpha/linux/linux_sysvec.c')
-rw-r--r--sys/alpha/linux/linux_sysvec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/alpha/linux/linux_sysvec.c b/sys/alpha/linux/linux_sysvec.c
index 01362d3..188e3d5 100644
--- a/sys/alpha/linux/linux_sysvec.c
+++ b/sys/alpha/linux/linux_sysvec.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: linux_sysvec.c,v 1.38 1998/11/15 15:33:51 bde Exp $
+ * $Id: linux_sysvec.c,v 1.39 1998/12/14 18:54:01 dt Exp $
*/
/* XXX we use functions that might not exist. */
@@ -281,7 +281,7 @@ linux_sendsig(sig_t catcher, int sig, int mask, u_long code)
* Build context to run handler in.
*/
regs->tf_esp = (int)fp;
- regs->tf_eip = (int)(((char *)PS_STRINGS) - *(p->p_sysent->sv_szsigcode));
+ regs->tf_eip = PS_STRINGS - *(p->p_sysent->sv_szsigcode);
regs->tf_eflags &= ~PSL_VM;
regs->tf_cs = _ucodesel;
regs->tf_ds = _udatasel;
OpenPOWER on IntegriCloud