Deleted Added
full compact
machdep.c (103600) machdep.c (105950)
1/*
2 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
3 * Copyright (C) 1995, 1996 TooLs GmbH.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 42 unchanged lines hidden (view full) ---

51 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
52 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
53 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 * $NetBSD: machdep.c,v 1.74.2.1 2000/11/01 16:13:48 tv Exp $
55 */
56
57#ifndef lint
58static const char rcsid[] =
1/*
2 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
3 * Copyright (C) 1995, 1996 TooLs GmbH.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 42 unchanged lines hidden (view full) ---

51 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
52 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
53 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 * $NetBSD: machdep.c,v 1.74.2.1 2000/11/01 16:13:48 tv Exp $
55 */
56
57#ifndef lint
58static const char rcsid[] =
59 "$FreeBSD: head/sys/powerpc/aim/machdep.c 103600 2002-09-19 04:30:43Z grehan $";
59 "$FreeBSD: head/sys/powerpc/aim/machdep.c 105950 2002-10-25 19:10:58Z peter $";
60#endif /* not lint */
61
62#include "opt_ddb.h"
63#include "opt_compat.h"
64#include "opt_msgbuf.h"
65
66#include <sys/param.h>
67#include <sys/systm.h>

--- 525 unchanged lines hidden (view full) ---

593 }
594
595 CTR3(KTR_SIG, "sendsig: return td=%p pc=%#x sp=%#x", td,
596 tf->srr0, tf->fixreg[1]);
597
598 PROC_LOCK(p);
599}
600
60#endif /* not lint */
61
62#include "opt_ddb.h"
63#include "opt_compat.h"
64#include "opt_msgbuf.h"
65
66#include <sys/param.h>
67#include <sys/systm.h>

--- 525 unchanged lines hidden (view full) ---

593 }
594
595 CTR3(KTR_SIG, "sendsig: return td=%p pc=%#x sp=%#x", td,
596 tf->srr0, tf->fixreg[1]);
597
598 PROC_LOCK(p);
599}
600
601/*
602 * Stub to satisfy the reference to osigreturn in the syscall table. This
603 * is needed even for newer arches that don't support old signals because
604 * the syscall table is machine-independent.
605 */
606int
601int
607osigreturn(struct thread *td, struct osigreturn_args *uap)
608{
609
610 return (nosys(td, (struct nosys_args *)uap));
611}
612
613int
614sigreturn(struct thread *td, struct sigreturn_args *uap)
615{
616 struct trapframe *tf;
617 struct proc *p;
618 ucontext_t uc;
619
620 CTR2(KTR_SIG, "sigreturn: td=%p ucp=%p", td, uap->sigcntxp);
621

--- 29 unchanged lines hidden (view full) ---

651 /* XXX */
652
653 CTR3(KTR_SIG, "sigreturn: return td=%p pc=%#x sp=%#x",
654 td, tf->srr0, tf->fixreg[1]);
655
656 return (EJUSTRETURN);
657}
658
602sigreturn(struct thread *td, struct sigreturn_args *uap)
603{
604 struct trapframe *tf;
605 struct proc *p;
606 ucontext_t uc;
607
608 CTR2(KTR_SIG, "sigreturn: td=%p ucp=%p", td, uap->sigcntxp);
609

--- 29 unchanged lines hidden (view full) ---

639 /* XXX */
640
641 CTR3(KTR_SIG, "sigreturn: return td=%p pc=%#x sp=%#x",
642 td, tf->srr0, tf->fixreg[1]);
643
644 return (EJUSTRETURN);
645}
646
647#ifdef COMPAT_FREEBSD4
648int
649freebsd4_sigreturn(struct thread *td, struct freebsd4_sigreturn_args *uap)
650{
651
652 return sigreturn(td, (struct sigreturn_args *)uap);
653}
654#endif
655
659void
660cpu_boot(int howto)
661{
662}
663
664/*
665 * Shutdown the CPU as much as possible.
666 */

--- 167 unchanged lines hidden ---
656void
657cpu_boot(int howto)
658{
659}
660
661/*
662 * Shutdown the CPU as much as possible.
663 */

--- 167 unchanged lines hidden ---