Deleted Added
full compact
aim_machdep.c (176222) aim_machdep.c (176742)
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:

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

50 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
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#include <sys/cdefs.h>
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:

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

50 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
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#include <sys/cdefs.h>
58__FBSDID("$FreeBSD: head/sys/powerpc/aim/machdep.c 176222 2008-02-12 20:55:51Z marcel $");
58__FBSDID("$FreeBSD: head/sys/powerpc/aim/machdep.c 176742 2008-03-02 17:05:57Z raj $");
59
60#include "opt_compat.h"
61#include "opt_ddb.h"
62#include "opt_kstack_pages.h"
63#include "opt_msgbuf.h"
64
65#include <sys/param.h>
66#include <sys/proc.h>

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

102#include <vm/vm_map.h>
103#include <vm/vm_object.h>
104#include <vm/vm_pager.h>
105
106#include <machine/bat.h>
107#include <machine/cpu.h>
108#include <machine/elf.h>
109#include <machine/fpu.h>
59
60#include "opt_compat.h"
61#include "opt_ddb.h"
62#include "opt_kstack_pages.h"
63#include "opt_msgbuf.h"
64
65#include <sys/param.h>
66#include <sys/proc.h>

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

102#include <vm/vm_map.h>
103#include <vm/vm_object.h>
104#include <vm/vm_pager.h>
105
106#include <machine/bat.h>
107#include <machine/cpu.h>
108#include <machine/elf.h>
109#include <machine/fpu.h>
110#include <machine/kdb.h>
110#include <machine/md_var.h>
111#include <machine/metadata.h>
112#include <machine/mmuvar.h>
113#include <machine/pcb.h>
114#include <machine/powerpc.h>
115#include <machine/reg.h>
116#include <machine/sigframe.h>
117#include <machine/trap.h>

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

514 */
515 tf->fixreg[FIRSTARG+1] = (register_t)&sfp->sf_si;
516
517 /*
518 * Fill siginfo structure.
519 */
520 sf.sf_si = ksi->ksi_info;
521 sf.sf_si.si_signo = sig;
111#include <machine/md_var.h>
112#include <machine/metadata.h>
113#include <machine/mmuvar.h>
114#include <machine/pcb.h>
115#include <machine/powerpc.h>
116#include <machine/reg.h>
117#include <machine/sigframe.h>
118#include <machine/trap.h>

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

515 */
516 tf->fixreg[FIRSTARG+1] = (register_t)&sfp->sf_si;
517
518 /*
519 * Fill siginfo structure.
520 */
521 sf.sf_si = ksi->ksi_info;
522 sf.sf_si.si_signo = sig;
522 sf.sf_si.si_addr = (void *) ((tf->exc == EXC_DSI) ?
523 tf->dar : tf->srr0);
523 sf.sf_si.si_addr = (void *)((tf->exc == EXC_DSI) ?
524 tf->cpu.aim.dar : tf->srr0);
524 } else {
525 /* Old FreeBSD-style arguments. */
526 tf->fixreg[FIRSTARG+1] = code;
527 tf->fixreg[FIRSTARG+3] = (tf->exc == EXC_DSI) ?
525 } else {
526 /* Old FreeBSD-style arguments. */
527 tf->fixreg[FIRSTARG+1] = code;
528 tf->fixreg[FIRSTARG+3] = (tf->exc == EXC_DSI) ?
528 tf->dar : tf->srr0;
529 tf->cpu.aim.dar : tf->srr0;
529 }
530 mtx_unlock(&psp->ps_mtx);
531 PROC_UNLOCK(p);
532
533 tf->srr0 = (register_t)(PS_STRINGS - *(p->p_sysent->sv_szsigcode));
534
535 /*
536 * copy the frame out to userland.

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

892 struct trapframe *tf;
893
894 tf = td->td_frame;
895 tf->srr1 &= ~PSL_SE;
896
897 return (0);
898}
899
530 }
531 mtx_unlock(&psp->ps_mtx);
532 PROC_UNLOCK(p);
533
534 tf->srr0 = (register_t)(PS_STRINGS - *(p->p_sysent->sv_szsigcode));
535
536 /*
537 * copy the frame out to userland.

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

893 struct trapframe *tf;
894
895 tf = td->td_frame;
896 tf->srr1 &= ~PSL_SE;
897
898 return (0);
899}
900
901void
902kdb_cpu_clear_singlestep(void)
903{
904
905 kdb_frame->srr1 &= ~PSL_SE;
906}
907
908void
909kdb_cpu_set_singlestep(void)
910{
911
912 kdb_frame->srr1 |= PSL_SE;
913}
914
900/*
901 * Initialise a struct pcpu.
902 */
903void
904cpu_pcpu_init(struct pcpu *pcpu, int cpuid, size_t sz)
905{
906
907}

--- 81 unchanged lines hidden ---
915/*
916 * Initialise a struct pcpu.
917 */
918void
919cpu_pcpu_init(struct pcpu *pcpu, int cpuid, size_t sz)
920{
921
922}

--- 81 unchanged lines hidden ---