From owner-p4-projects@FreeBSD.ORG Tue Oct 31 14:34:25 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 171BB16A54E; Tue, 31 Oct 2006 14:34:25 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBAE816A515 for ; Tue, 31 Oct 2006 14:34:24 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5731043D7B for ; Tue, 31 Oct 2006 14:33:53 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k9VEXqSg018816 for ; Tue, 31 Oct 2006 14:33:52 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k9VEXomR018790 for perforce@freebsd.org; Tue, 31 Oct 2006 14:33:50 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Tue, 31 Oct 2006 14:33:50 GMT Message-Id: <200610311433.k9VEXomR018790@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 108826 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Oct 2006 14:34:25 -0000 http://perforce.freebsd.org/chv.cgi?CH=108826 Change 108826 by rwatson@rwatson_zoo on 2006/10/31 14:32:49 Integrate TrustedBSD priv branch from TrustedBSD base branch; see @108821 for a description of changes. Affected files ... .. //depot/projects/trustedbsd/priv/sys/amd64/amd64/machdep.c#4 integrate .. //depot/projects/trustedbsd/priv/sys/amd64/amd64/prof_machdep.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/amd64/amd64/trap.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/amd64/conf/DEFAULTS#2 integrate .. //depot/projects/trustedbsd/priv/sys/amd64/conf/GENERIC#3 integrate .. //depot/projects/trustedbsd/priv/sys/amd64/include/asmacros.h#2 integrate .. //depot/projects/trustedbsd/priv/sys/amd64/include/profile.h#2 integrate .. //depot/projects/trustedbsd/priv/sys/amd64/linux32/linux.h#3 integrate .. //depot/projects/trustedbsd/priv/sys/amd64/linux32/linux32_dummy.c#3 integrate .. //depot/projects/trustedbsd/priv/sys/amd64/linux32/linux32_proto.h#4 integrate .. //depot/projects/trustedbsd/priv/sys/amd64/linux32/linux32_syscall.h#4 integrate .. //depot/projects/trustedbsd/priv/sys/amd64/linux32/linux32_sysent.c#4 integrate .. //depot/projects/trustedbsd/priv/sys/amd64/linux32/syscalls.master#4 integrate .. //depot/projects/trustedbsd/priv/sys/arm/arm/elf_trampoline.c#3 integrate .. //depot/projects/trustedbsd/priv/sys/arm/arm/trap.c#3 integrate .. //depot/projects/trustedbsd/priv/sys/arm/at91/kb920x_machdep.c#4 integrate .. //depot/projects/trustedbsd/priv/sys/arm/conf/EP80219#2 integrate .. //depot/projects/trustedbsd/priv/sys/arm/conf/IQ31244#2 integrate .. //depot/projects/trustedbsd/priv/sys/arm/conf/KB920X#2 integrate .. //depot/projects/trustedbsd/priv/sys/arm/conf/SIMICS#2 integrate .. //depot/projects/trustedbsd/priv/sys/arm/conf/SKYEYE#2 integrate .. //depot/projects/trustedbsd/priv/sys/arm/sa11x0/assabet_machdep.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/arm/xscale/i80321/ep80219_machdep.c#3 integrate .. //depot/projects/trustedbsd/priv/sys/arm/xscale/i80321/iq31244_machdep.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/boot/common/load_elf.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/boot/i386/boot2/boot2.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/boot/i386/libi386/elf32_freebsd.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/boot/i386/libi386/elf64_freebsd.c#3 integrate .. //depot/projects/trustedbsd/priv/sys/boot/pc98/boot2/boot.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/cam/scsi/scsi_low.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/compat/linprocfs/linprocfs.c#3 integrate .. //depot/projects/trustedbsd/priv/sys/compat/linux/linux_aio.c#2 delete .. //depot/projects/trustedbsd/priv/sys/compat/linux/linux_aio.h#2 delete .. //depot/projects/trustedbsd/priv/sys/compat/linux/linux_emul.c#5 integrate .. //depot/projects/trustedbsd/priv/sys/compat/linux/linux_emul.h#2 integrate .. //depot/projects/trustedbsd/priv/sys/compat/linux/linux_misc.c#8 integrate .. //depot/projects/trustedbsd/priv/sys/compat/linux/linux_misc.h#1 branch .. //depot/projects/trustedbsd/priv/sys/conf/files#7 integrate .. //depot/projects/trustedbsd/priv/sys/conf/files.amd64#6 integrate .. //depot/projects/trustedbsd/priv/sys/conf/files.i386#5 integrate .. //depot/projects/trustedbsd/priv/sys/conf/files.pc98#4 integrate .. //depot/projects/trustedbsd/priv/sys/conf/kern.post.mk#3 integrate .. //depot/projects/trustedbsd/priv/sys/conf/kern.pre.mk#4 integrate .. //depot/projects/trustedbsd/priv/sys/ddb/db_ps.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/aac/aac_cam.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/acpi_support/acpi_aiboost.c#1 branch .. //depot/projects/trustedbsd/priv/sys/dev/advansys/advansys.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/advansys/advlib.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/advansys/adwcam.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/aha/aha.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/ahb/ahb.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/aic/aic.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/amd/amd.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/amr/amr_cam.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/arcmsr/arcmsr.c#3 integrate .. //depot/projects/trustedbsd/priv/sys/dev/asr/asr.c#3 integrate .. //depot/projects/trustedbsd/priv/sys/dev/ata/atapi-cam.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/bce/if_bce.c#6 integrate .. //depot/projects/trustedbsd/priv/sys/dev/ciss/ciss.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/dc/if_dc.c#3 integrate .. //depot/projects/trustedbsd/priv/sys/dev/dpt/dpt_scsi.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/em/if_em.c#6 integrate .. //depot/projects/trustedbsd/priv/sys/dev/em/if_em.h#4 integrate .. //depot/projects/trustedbsd/priv/sys/dev/em/if_em_hw.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/em/if_em_hw.h#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/em/if_em_osdep.h#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/esp/ncr53c9x.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/firewire/sbp.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/iir/iir.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/isp/isp_freebsd.c#4 integrate .. //depot/projects/trustedbsd/priv/sys/dev/mly/mly.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/mpt/mpt_cam.c#4 integrate .. //depot/projects/trustedbsd/priv/sys/dev/pci/pci.c#4 integrate .. //depot/projects/trustedbsd/priv/sys/dev/pci/pci_pci.c#3 integrate .. //depot/projects/trustedbsd/priv/sys/dev/pci/pcivar.h#3 integrate .. //depot/projects/trustedbsd/priv/sys/dev/sound/pcm/dsp.c#3 integrate .. //depot/projects/trustedbsd/priv/sys/dev/trm/trm.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/twa/tw_osl_cam.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/dev/usb/ubsa.c#3 integrate .. //depot/projects/trustedbsd/priv/sys/dev/usb/umass.c#4 integrate .. //depot/projects/trustedbsd/priv/sys/dev/usb/usbdevs#3 integrate .. //depot/projects/trustedbsd/priv/sys/fs/procfs/procfs_status.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/i386/conf/DEFAULTS#2 integrate .. //depot/projects/trustedbsd/priv/sys/i386/conf/GENERIC#3 integrate .. //depot/projects/trustedbsd/priv/sys/i386/conf/NOTES#6 integrate .. //depot/projects/trustedbsd/priv/sys/i386/i386/machdep.c#4 integrate .. //depot/projects/trustedbsd/priv/sys/i386/i386/trap.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/i386/include/asmacros.h#2 integrate .. //depot/projects/trustedbsd/priv/sys/i386/include/profile.h#2 integrate .. //depot/projects/trustedbsd/priv/sys/i386/isa/prof_machdep.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/i386/linux/linux.h#3 integrate .. //depot/projects/trustedbsd/priv/sys/i386/linux/linux_dummy.c#3 integrate .. //depot/projects/trustedbsd/priv/sys/i386/linux/linux_proto.h#5 integrate .. //depot/projects/trustedbsd/priv/sys/i386/linux/linux_syscall.h#5 integrate .. //depot/projects/trustedbsd/priv/sys/i386/linux/linux_sysent.c#5 integrate .. //depot/projects/trustedbsd/priv/sys/i386/linux/syscalls.master#5 integrate .. //depot/projects/trustedbsd/priv/sys/ia64/conf/DEFAULTS#2 integrate .. //depot/projects/trustedbsd/priv/sys/ia64/conf/GENERIC#3 integrate .. //depot/projects/trustedbsd/priv/sys/ia64/ia64/machdep.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/ia64/ia64/trap.c#3 integrate .. //depot/projects/trustedbsd/priv/sys/kern/init_main.c#4 integrate .. //depot/projects/trustedbsd/priv/sys/kern/kern_clock.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/kern/kern_fork.c#4 integrate .. //depot/projects/trustedbsd/priv/sys/kern/kern_idle.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/kern/kern_intr.c#3 integrate .. //depot/projects/trustedbsd/priv/sys/kern/kern_kse.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/kern/kern_poll.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/kern/kern_proc.c#3 integrate .. //depot/projects/trustedbsd/priv/sys/kern/kern_resource.c#4 integrate .. //depot/projects/trustedbsd/priv/sys/kern/kern_sig.c#4 integrate .. //depot/projects/trustedbsd/priv/sys/kern/kern_subr.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/kern/kern_switch.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/kern/kern_synch.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/kern/kern_thr.c#4 integrate .. //depot/projects/trustedbsd/priv/sys/kern/kern_thread.c#3 integrate .. //depot/projects/trustedbsd/priv/sys/kern/kern_umtx.c#8 integrate .. //depot/projects/trustedbsd/priv/sys/kern/sched_4bsd.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/kern/sched_ule.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/kern/subr_trap.c#4 integrate .. //depot/projects/trustedbsd/priv/sys/kern/sys_process.c#4 integrate .. //depot/projects/trustedbsd/priv/sys/kern/tty.c#5 integrate .. //depot/projects/trustedbsd/priv/sys/kern/vfs_bio.c#4 integrate .. //depot/projects/trustedbsd/priv/sys/modules/acpi/Makefile#2 integrate .. //depot/projects/trustedbsd/priv/sys/modules/acpi/acpi_aiboost/Makefile#1 branch .. //depot/projects/trustedbsd/priv/sys/modules/linux/Makefile#3 integrate .. //depot/projects/trustedbsd/priv/sys/modules/powermac_nvram/Makefile#2 integrate .. //depot/projects/trustedbsd/priv/sys/netinet/ip_dummynet.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/pc98/conf/DEFAULTS#2 integrate .. //depot/projects/trustedbsd/priv/sys/pc98/conf/GENERIC#3 integrate .. //depot/projects/trustedbsd/priv/sys/pc98/pc98/machdep.c#3 integrate .. //depot/projects/trustedbsd/priv/sys/pci/if_sis.c#3 integrate .. //depot/projects/trustedbsd/priv/sys/pci/ncr.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/posix4/ksched.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/powerpc/conf/DEFAULTS#2 integrate .. //depot/projects/trustedbsd/priv/sys/powerpc/conf/GENERIC#3 integrate .. //depot/projects/trustedbsd/priv/sys/powerpc/powerpc/machdep.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/powerpc/powerpc/trap.c#3 integrate .. //depot/projects/trustedbsd/priv/sys/sparc64/conf/DEFAULTS#2 integrate .. //depot/projects/trustedbsd/priv/sys/sparc64/conf/GENERIC#3 integrate .. //depot/projects/trustedbsd/priv/sys/sparc64/include/endian.h#2 integrate .. //depot/projects/trustedbsd/priv/sys/sparc64/sparc64/machdep.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/sparc64/sparc64/trap.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/sun4v/conf/DEFAULTS#2 integrate .. //depot/projects/trustedbsd/priv/sys/sun4v/include/endian.h#2 integrate .. //depot/projects/trustedbsd/priv/sys/sun4v/sun4v/machdep.c#2 integrate .. //depot/projects/trustedbsd/priv/sys/sys/mac_policy.h#6 integrate .. //depot/projects/trustedbsd/priv/sys/sys/param.h#5 integrate .. //depot/projects/trustedbsd/priv/sys/sys/proc.h#3 integrate .. //depot/projects/trustedbsd/priv/sys/sys/rtprio.h#3 integrate .. //depot/projects/trustedbsd/priv/sys/sys/sched.h#2 integrate .. //depot/projects/trustedbsd/priv/sys/sys/soundcard.h#3 integrate .. //depot/projects/trustedbsd/priv/sys/vm/vm_glue.c#3 integrate .. //depot/projects/trustedbsd/priv/sys/vm/vm_zeroidle.c#2 integrate Differences ... ==== //depot/projects/trustedbsd/priv/sys/amd64/amd64/machdep.c#4 (text+ko) ==== @@ -39,7 +39,7 @@ */ #include -__FBSDID("$FreeBSD: src/sys/amd64/amd64/machdep.c,v 1.656 2006/10/12 12:48:21 jhb Exp $"); +__FBSDID("$FreeBSD: src/sys/amd64/amd64/machdep.c,v 1.657 2006/10/26 21:42:16 jb Exp $"); #include "opt_atalk.h" #include "opt_atpic.h" @@ -1120,7 +1120,11 @@ * This may be done better later if it gets more high level * components in it. If so just link td->td_proc here. */ +#ifdef KSE proc_linkup(&proc0, &ksegrp0, &thread0); +#else + proc_linkup(&proc0, &thread0); +#endif preload_metadata = (caddr_t)(uintptr_t)(modulep + KERNBASE); preload_bootstrap_relocate(KERNBASE); ==== //depot/projects/trustedbsd/priv/sys/amd64/amd64/prof_machdep.c#2 (text+ko) ==== @@ -25,7 +25,7 @@ */ #include -__FBSDID("$FreeBSD: src/sys/amd64/amd64/prof_machdep.c,v 1.24 2005/05/14 09:10:00 nyan Exp $"); +__FBSDID("$FreeBSD: src/sys/amd64/amd64/prof_machdep.c,v 1.28 2006/10/29 09:48:44 bde Exp $"); #ifdef GUPROF #if 0 @@ -37,20 +37,15 @@ #include #include #include +#include #include #include #if 0 #include #endif -#include -#undef MCOUNT -#endif - -#include #include -#ifdef GUPROF #define CPUTIME_CLOCK_UNINITIALIZED 0 #define CPUTIME_CLOCK_I8254 1 #define CPUTIME_CLOCK_TSC 2 @@ -60,7 +55,7 @@ int cputime_bias = 1; /* initialize for locality of reference */ static int cputime_clock = CPUTIME_CLOCK_UNINITIALIZED; -#ifdef I586_PMC_GUPROF +#if defined(PERFMON) && defined(I586_PMC_GUPROF) static u_int cputime_clock_pmc_conf = I586_PMC_GUPROF; static int cputime_clock_pmc_init; static struct gmonparam saved_gmp; @@ -80,7 +75,7 @@ # \n\ # Check that we are profiling. Do it early for speed. \n\ # \n\ - cmpl $GMON_PROF_OFF," __XSTRING(CNAME(_gmonparam)) "+GM_STATE \n\ + cmpl $GMON_PROF_OFF,_gmonparam+GM_STATE \n\ je .mcount_exit \n\ # \n\ # __mcount is the same as [.]mcount except the caller \n\ @@ -98,11 +93,11 @@ jmp .got_frompc \n\ \n\ .p2align 4,0x90 \n\ - .globl " __XSTRING(HIDENAME(mcount)) " \n\ -" __XSTRING(HIDENAME(mcount)) ": \n\ + .globl .mcount \n\ +.mcount: \n\ .globl __cyg_profile_func_enter \n\ __cyg_profile_func_enter: \n\ - cmpl $GMON_PROF_OFF," __XSTRING(CNAME(_gmonparam)) "+GM_STATE \n\ + cmpl $GMON_PROF_OFF,_gmonparam+GM_STATE \n\ je .mcount_exit \n\ # \n\ # The caller's stack frame has already been built, so \n\ @@ -126,7 +121,7 @@ \n\ pushfq \n\ cli \n\ - call " __XSTRING(CNAME(mcount)) " \n\ + call mcount \n\ popfq \n\ popq %r9 \n\ popq %r8 \n\ @@ -139,7 +134,7 @@ ret \n\ "); #else /* !__GNUCLIKE_ASM */ -#error this file needs to be ported to your compiler +#error "this file needs to be ported to your compiler" #endif /* __GNUCLIKE_ASM */ #ifdef GUPROF @@ -164,11 +159,11 @@ GMON_PROF_HIRES = 4 \n\ \n\ .p2align 4,0x90 \n\ - .globl " __XSTRING(HIDENAME(mexitcount)) " \n\ -" __XSTRING(HIDENAME(mexitcount)) ": \n\ + .globl .mexitcount \n\ +.mexitcount: \n\ .globl __cyg_profile_func_exit \n\ __cyg_profile_func_exit: \n\ - cmpl $GMON_PROF_HIRES," __XSTRING(CNAME(_gmonparam)) "+GM_STATE \n\ + cmpl $GMON_PROF_HIRES,_gmonparam+GM_STATE \n\ jne .mexitcount_exit \n\ pushq %rax \n\ pushq %rdx \n\ @@ -180,7 +175,7 @@ movq 7*8(%rsp),%rdi \n\ pushfq \n\ cli \n\ - call " __XSTRING(CNAME(mexitcount)) " \n\ + call mexitcount \n\ popfq \n\ popq %r9 \n\ popq %r8 \n\ @@ -192,8 +187,6 @@ .mexitcount_exit: \n\ ret \n\ "); -#else /* !__GNUCLIKE_ASM */ -#error this file needs to be ported to your compiler #endif /* __GNUCLIKE_ASM */ /* @@ -212,7 +205,6 @@ u_char high, low; static u_int prev_count; -#ifndef SMP if (cputime_clock == CPUTIME_CLOCK_TSC) { /* * Scale the TSC a little to make cputime()'s frequency @@ -226,7 +218,7 @@ prev_count = count; return (delta); } -#if defined(PERFMON) && defined(I586_PMC_GUPROF) +#if defined(PERFMON) && defined(I586_PMC_GUPROF) && !defined(SMP) if (cputime_clock == CPUTIME_CLOCK_I586_PMC) { /* * XXX permon_read() should be inlined so that the @@ -240,8 +232,7 @@ prev_count = count; return (delta); } -#endif /* PERFMON && I586_PMC_GUPROF */ -#endif /* !SMP */ +#endif /* PERFMON && I586_PMC_GUPROF && !SMP */ /* * Read the current value of the 8254 timer counter 0. @@ -323,13 +314,10 @@ { if (cputime_clock == CPUTIME_CLOCK_UNINITIALIZED) { cputime_clock = CPUTIME_CLOCK_I8254; -#ifndef SMP - if (tsc_freq != 0) + if (tsc_freq != 0 && !tsc_is_broken && mp_ncpus < 2) cputime_clock = CPUTIME_CLOCK_TSC; -#endif } gp->profrate = timer_freq << CPUTIME_CLOCK_I8254_SHIFT; -#ifndef SMP if (cputime_clock == CPUTIME_CLOCK_TSC) gp->profrate = tsc_freq >> 1; #if defined(PERFMON) && defined(I586_PMC_GUPROF) @@ -358,7 +346,6 @@ } } #endif /* PERFMON && I586_PMC_GUPROF */ -#endif /* !SMP */ cputime_bias = 0; cputime(); } @@ -375,17 +362,4 @@ } #endif } - -#else /* !GUPROF */ -#ifdef __GNUCLIKE_ASM -__asm(" \n\ - .text \n\ - .p2align 4,0x90 \n\ - .globl " __XSTRING(HIDENAME(mexitcount)) " \n\ -" __XSTRING(HIDENAME(mexitcount)) ": \n\ - ret \n\ -"); -#else /* !__GNUCLIKE_ASM */ -#error this file needs to be ported to your compiler -#endif /* __GNUCLIKE_ASM */ #endif /* GUPROF */ ==== //depot/projects/trustedbsd/priv/sys/amd64/amd64/trap.c#2 (text+ko) ==== @@ -38,7 +38,7 @@ */ #include -__FBSDID("$FreeBSD: src/sys/amd64/amd64/trap.c,v 1.310 2006/08/14 19:53:53 alc Exp $"); +__FBSDID("$FreeBSD: src/sys/amd64/amd64/trap.c,v 1.311 2006/10/26 21:42:16 jb Exp $"); /* * AMD64 Trap and System call handling @@ -299,8 +299,10 @@ case T_PAGEFLT: /* page fault */ addr = frame.tf_addr; +#ifdef KSE if (td->td_pflags & TDP_SA) thread_user_enter(td); +#endif i = trap_pfault(&frame, TRUE); if (i == -1) goto userout; @@ -757,8 +759,10 @@ td->td_frame = &frame; if (td->td_ucred != p->p_ucred) cred_update_thread(td); +#ifdef KSE if (p->p_flag & P_SA) thread_user_enter(td); +#endif params = (caddr_t)frame.tf_rsp + sizeof(register_t); code = frame.tf_rax; orig_tf_rflags = frame.tf_rflags; ==== //depot/projects/trustedbsd/priv/sys/amd64/conf/DEFAULTS#2 (text+ko) ==== @@ -1,7 +1,7 @@ # # DEFAULTS -- Default kernel configuration file for FreeBSD/amd64 # -# $FreeBSD: src/sys/amd64/conf/DEFAULTS,v 1.6 2006/06/12 04:21:49 imp Exp $ +# $FreeBSD: src/sys/amd64/conf/DEFAULTS,v 1.7 2006/10/26 22:05:24 jb Exp $ machine amd64 @@ -14,3 +14,6 @@ # UART chips on this platform device uart_ns8250 + +# KSE support went from being default to a kernel option +options KSE ==== //depot/projects/trustedbsd/priv/sys/amd64/conf/GENERIC#3 (text+ko) ==== @@ -16,7 +16,7 @@ # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD: src/sys/amd64/conf/GENERIC,v 1.466 2006/10/05 20:31:57 simon Exp $ +# $FreeBSD: src/sys/amd64/conf/GENERIC,v 1.468 2006/10/26 22:11:34 jb Exp $ cpu HAMMER ident GENERIC ==== //depot/projects/trustedbsd/priv/sys/amd64/include/asmacros.h#2 (text+ko) ==== @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $FreeBSD: src/sys/amd64/include/asmacros.h,v 1.30 2006/03/14 00:01:56 peter Exp $ + * $FreeBSD: src/sys/amd64/include/asmacros.h,v 1.32 2006/10/28 06:04:29 bde Exp $ */ #ifndef _MACHINE_ASMACROS_H_ @@ -37,14 +37,12 @@ /* XXX too much duplication in various asm*.h's. */ /* - * CNAME and HIDENAME manage the relationship between symbol names in C + * CNAME is used to manage the relationship between symbol names in C * and the equivalent assembly language names. CNAME is given a name as * it would be used in a C program. It expands to the equivalent assembly - * language name. HIDENAME is given an assembly-language name, and expands - * to a possibly-modified form that will be invisible to C programs. + * language name. */ #define CNAME(csym) csym -#define HIDENAME(asmsym) .asmsym #define ALIGN_DATA .p2align 3 /* 8 byte alignment, zero filled */ #ifdef GPROF @@ -108,8 +106,12 @@ #define FAKE_MCOUNT(caller) pushq caller ; call __mcount ; popq %rcx #define MCOUNT call __mcount #define MCOUNT_LABEL(name) GEN_ENTRY(name) ; nop ; ALIGN_TEXT -#define MEXITCOUNT call HIDENAME(mexitcount) +#ifdef GUPROF +#define MEXITCOUNT call .mexitcount #define ret MEXITCOUNT ; NON_GPROF_RET +#else +#define MEXITCOUNT +#endif #else /* !GPROF */ /* ==== //depot/projects/trustedbsd/priv/sys/amd64/include/profile.h#2 (text+ko) ==== @@ -27,7 +27,7 @@ * SUCH DAMAGE. * * @(#)profile.h 8.1 (Berkeley) 6/11/93 - * $FreeBSD: src/sys/amd64/include/profile.h,v 1.45 2005/03/11 22:16:09 peter Exp $ + * $FreeBSD: src/sys/amd64/include/profile.h,v 1.48 2006/10/28 13:12:06 bde Exp $ */ #ifndef _MACHINE_PROFILE_H_ @@ -61,7 +61,7 @@ #define MCOUNT_OVERHEAD(label) \ __asm __volatile("pushq %0; call __mcount; popq %%rcx" \ : \ - : "i" (profil) \ + : "i" (label) \ : "ax", "dx", "cx", "di", "si", "r8", "r9", "memory") #define MEXITCOUNT_OVERHEAD() \ __asm __volatile("call .mexitcount; 1:" \ @@ -114,11 +114,11 @@ #ifdef __GNUCLIKE_ASM #define MCOUNT __asm(" \n\ + .text \n\ + .p2align 4,0x90 \n\ .globl .mcount \n\ - .type .mcount @function \n\ + .type .mcount,@function \n\ .mcount: \n\ - pushq %rbp \n\ - movq %rsp,%rbp \n\ pushq %rdi \n\ pushq %rsi \n\ pushq %rdx \n\ @@ -126,9 +126,8 @@ pushq %r8 \n\ pushq %r9 \n\ pushq %rax \n\ - movq 8(%rbp),%rsi \n\ - movq (%rbp),%rdi \n\ - movq 8(%rdi),%rdi \n\ + movq 8(%rbp),%rdi \n\ + movq 7*8(%rsp),%rsi \n\ call _mcount \n\ popq %rax \n\ popq %r9 \n\ @@ -137,7 +136,6 @@ popq %rdx \n\ popq %rsi \n\ popq %rdi \n\ - leave \n\ ret \n\ .size .mcount, . - .mcount"); #if 0 @@ -171,11 +169,7 @@ } #endif #else /* !__GNUCLIKE_ASM */ -#define MCOUNT \ -void \ -mcount() \ -{ \ -} +#define MCOUNT #endif /* __GNUCLIKE_ASM */ typedef u_long uintfptr_t; ==== //depot/projects/trustedbsd/priv/sys/amd64/linux32/linux.h#3 (text+ko) ==== @@ -27,7 +27,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. * - * $FreeBSD: src/sys/amd64/linux32/linux.h,v 1.7 2006/10/15 14:22:12 netchild Exp $ + * $FreeBSD: src/sys/amd64/linux32/linux.h,v 1.8 2006/10/29 14:02:38 netchild Exp $ */ #ifndef _AMD64_LINUX_LINUX_H_ @@ -840,6 +840,4 @@ #define THREADING_FLAGS (CLONE_VM | CLONE_FS | CLONE_FILES | CLONE_SIGHAND) -#include - #endif /* !_AMD64_LINUX_LINUX_H_ */ ==== //depot/projects/trustedbsd/priv/sys/amd64/linux32/linux32_dummy.c#3 (text+ko) ==== @@ -27,7 +27,7 @@ */ #include -__FBSDID("$FreeBSD: src/sys/amd64/linux32/linux32_dummy.c,v 1.5 2006/08/27 08:56:53 netchild Exp $"); +__FBSDID("$FreeBSD: src/sys/amd64/linux32/linux32_dummy.c,v 1.6 2006/10/28 10:59:59 netchild Exp $"); #include #include @@ -53,7 +53,6 @@ DUMMY(sysfs); DUMMY(query_module); DUMMY(nfsservctl); -DUMMY(prctl); DUMMY(rt_sigtimedwait); DUMMY(rt_sigqueueinfo); DUMMY(capget); ==== //depot/projects/trustedbsd/priv/sys/amd64/linux32/linux32_proto.h#4 (text+ko) ==== @@ -2,8 +2,8 @@ * System call prototypes. * * DO NOT EDIT-- this file is automatically generated. - * $FreeBSD: src/sys/amd64/linux32/linux32_proto.h,v 1.23 2006/10/15 14:24:09 netchild Exp $ - * created from FreeBSD: src/sys/amd64/linux32/syscalls.master,v 1.21 2006/10/15 14:22:12 netchild Exp + * $FreeBSD: src/sys/amd64/linux32/linux32_proto.h,v 1.25 2006/10/29 14:12:44 netchild Exp $ + * created from FreeBSD: src/sys/amd64/linux32/syscalls.master,v 1.23 2006/10/29 14:02:38 netchild Exp */ #ifndef _LINUX_SYSPROTO_H_ @@ -521,7 +521,11 @@ char sgid_l_[PADL_(l_gid16_t *)]; l_gid16_t * sgid; char sgid_r_[PADR_(l_gid16_t *)]; }; struct linux_prctl_args { - register_t dummy; + char option_l_[PADL_(l_int)]; l_int option; char option_r_[PADR_(l_int)]; + char arg2_l_[PADL_(l_int)]; l_int arg2; char arg2_r_[PADR_(l_int)]; + char arg3_l_[PADL_(l_int)]; l_int arg3; char arg3_r_[PADR_(l_int)]; + char arg4_l_[PADL_(l_int)]; l_int arg4; char arg4_r_[PADR_(l_int)]; + char arg5_l_[PADL_(l_int)]; l_int arg5; char arg5_r_[PADR_(l_int)]; }; struct linux_rt_sigreturn_args { char ucp_l_[PADL_(struct l_ucontext *)]; struct l_ucontext * ucp; char ucp_r_[PADR_(struct l_ucontext *)]; @@ -724,30 +728,6 @@ char uaddr2_l_[PADL_(void *)]; void * uaddr2; char uaddr2_r_[PADR_(void *)]; char val3_l_[PADL_(int)]; int val3; char val3_r_[PADR_(int)]; }; -struct linux_io_setup_args { - char nr_reqs_l_[PADL_(l_uint)]; l_uint nr_reqs; char nr_reqs_r_[PADR_(l_uint)]; - char ctxp_l_[PADL_(linux_aio_context_t *)]; linux_aio_context_t * ctxp; char ctxp_r_[PADR_(linux_aio_context_t *)]; -}; -struct linux_io_destroy_args { - char ctx_l_[PADL_(linux_aio_context_t)]; linux_aio_context_t ctx; char ctx_r_[PADR_(linux_aio_context_t)]; -}; -struct linux_io_getevents_args { - char ctx_id_l_[PADL_(linux_aio_context_t)]; linux_aio_context_t ctx_id; char ctx_id_r_[PADR_(linux_aio_context_t)]; - char min_nr_l_[PADL_(l_long)]; l_long min_nr; char min_nr_r_[PADR_(l_long)]; - char nr_l_[PADL_(l_long)]; l_long nr; char nr_r_[PADR_(l_long)]; - char events_l_[PADL_(struct linux_io_event *)]; struct linux_io_event * events; char events_r_[PADR_(struct linux_io_event *)]; - char timeout_l_[PADL_(struct l_timespec *)]; struct l_timespec * timeout; char timeout_r_[PADR_(struct l_timespec *)]; -}; -struct linux_io_submit_args { - char ctx_id_l_[PADL_(linux_aio_context_t)]; linux_aio_context_t ctx_id; char ctx_id_r_[PADR_(linux_aio_context_t)]; - char nr_l_[PADL_(l_long)]; l_long nr; char nr_r_[PADR_(l_long)]; - char iocbpp_l_[PADL_(struct linux_iocb **)]; struct linux_iocb ** iocbpp; char iocbpp_r_[PADR_(struct linux_iocb **)]; -}; -struct linux_io_cancel_args { - char ctx_id_l_[PADL_(linux_aio_context_t)]; linux_aio_context_t ctx_id; char ctx_id_r_[PADR_(linux_aio_context_t)]; - char iocb_l_[PADL_(struct linux_iocb *)]; struct linux_iocb * iocb; char iocb_r_[PADR_(struct linux_iocb *)]; - char result_l_[PADL_(struct linux_io_event *)]; struct linux_io_event * result; char result_r_[PADR_(struct linux_io_event *)]; -}; struct linux_fadvise64_args { register_t dummy; }; @@ -1105,11 +1085,6 @@ int linux_fremovexattr(struct thread *, struct linux_fremovexattr_args *); int linux_tkill(struct thread *, struct linux_tkill_args *); int linux_sys_futex(struct thread *, struct linux_sys_futex_args *); -int linux_io_setup(struct thread *, struct linux_io_setup_args *); -int linux_io_destroy(struct thread *, struct linux_io_destroy_args *); -int linux_io_getevents(struct thread *, struct linux_io_getevents_args *); -int linux_io_submit(struct thread *, struct linux_io_submit_args *); -int linux_io_cancel(struct thread *, struct linux_io_cancel_args *); int linux_fadvise64(struct thread *, struct linux_fadvise64_args *); int linux_exit_group(struct thread *, struct linux_exit_group_args *); int linux_lookup_dcookie(struct thread *, struct linux_lookup_dcookie_args *); @@ -1355,11 +1330,6 @@ #define LINUX_SYS_AUE_linux_fremovexattr AUE_NULL #define LINUX_SYS_AUE_linux_tkill AUE_NULL #define LINUX_SYS_AUE_linux_sys_futex AUE_NULL -#define LINUX_SYS_AUE_linux_io_setup AUE_NULL -#define LINUX_SYS_AUE_linux_io_destroy AUE_NULL -#define LINUX_SYS_AUE_linux_io_getevents AUE_NULL -#define LINUX_SYS_AUE_linux_io_submit AUE_NULL -#define LINUX_SYS_AUE_linux_io_cancel AUE_NULL #define LINUX_SYS_AUE_linux_fadvise64 AUE_NULL #define LINUX_SYS_AUE_linux_exit_group AUE_EXIT #define LINUX_SYS_AUE_linux_lookup_dcookie AUE_NULL ==== //depot/projects/trustedbsd/priv/sys/amd64/linux32/linux32_syscall.h#4 (text+ko) ==== @@ -2,8 +2,8 @@ * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * $FreeBSD: src/sys/amd64/linux32/linux32_syscall.h,v 1.23 2006/10/15 14:24:09 netchild Exp $ - * created from FreeBSD: src/sys/amd64/linux32/syscalls.master,v 1.21 2006/10/15 14:22:12 netchild Exp + * $FreeBSD: src/sys/amd64/linux32/linux32_syscall.h,v 1.25 2006/10/29 14:12:44 netchild Exp $ + * created from FreeBSD: src/sys/amd64/linux32/syscalls.master,v 1.23 2006/10/29 14:02:38 netchild Exp */ #define LINUX_SYS_exit 1 @@ -221,11 +221,6 @@ #define LINUX_SYS_linux_fremovexattr 237 #define LINUX_SYS_linux_tkill 238 #define LINUX_SYS_linux_sys_futex 240 -#define LINUX_SYS_linux_io_setup 245 -#define LINUX_SYS_linux_io_destroy 246 -#define LINUX_SYS_linux_io_getevents 247 -#define LINUX_SYS_linux_io_submit 248 -#define LINUX_SYS_linux_io_cancel 249 #define LINUX_SYS_linux_fadvise64 250 #define LINUX_SYS_linux_exit_group 252 #define LINUX_SYS_linux_lookup_dcookie 253 ==== //depot/projects/trustedbsd/priv/sys/amd64/linux32/linux32_sysent.c#4 (text+ko) ==== @@ -2,8 +2,8 @@ * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * $FreeBSD: src/sys/amd64/linux32/linux32_sysent.c,v 1.23 2006/10/15 14:24:09 netchild Exp $ - * created from FreeBSD: src/sys/amd64/linux32/syscalls.master,v 1.21 2006/10/15 14:22:12 netchild Exp + * $FreeBSD: src/sys/amd64/linux32/linux32_sysent.c,v 1.25 2006/10/29 14:12:44 netchild Exp $ + * created from FreeBSD: src/sys/amd64/linux32/syscalls.master,v 1.23 2006/10/29 14:02:38 netchild Exp */ #include @@ -192,7 +192,7 @@ { 0, (sy_call_t *)linux_nfsservctl, AUE_NULL, NULL, 0, 0 }, /* 169 = linux_nfsservctl */ { AS(linux_setresgid16_args), (sy_call_t *)linux_setresgid16, AUE_SETRESGID, NULL, 0, 0 }, /* 170 = linux_setresgid16 */ { AS(linux_getresgid16_args), (sy_call_t *)linux_getresgid16, AUE_GETRESGID, NULL, 0, 0 }, /* 171 = linux_getresgid16 */ - { 0, (sy_call_t *)linux_prctl, AUE_PRCTL, NULL, 0, 0 }, /* 172 = linux_prctl */ + { AS(linux_prctl_args), (sy_call_t *)linux_prctl, AUE_PRCTL, NULL, 0, 0 }, /* 172 = linux_prctl */ { AS(linux_rt_sigreturn_args), (sy_call_t *)linux_rt_sigreturn, AUE_NULL, NULL, 0, 0 }, /* 173 = linux_rt_sigreturn */ { AS(linux_rt_sigaction_args), (sy_call_t *)linux_rt_sigaction, AUE_NULL, NULL, 0, 0 }, /* 174 = linux_rt_sigaction */ { AS(linux_rt_sigprocmask_args), (sy_call_t *)linux_rt_sigprocmask, AUE_NULL, NULL, 0, 0 }, /* 175 = linux_rt_sigprocmask */ @@ -265,11 +265,11 @@ { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 242 = linux_sched_getaffinity */ { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 243 = linux_set_thread_area */ { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 244 = linux_get_thread_area */ - { AS(linux_io_setup_args), (sy_call_t *)linux_io_setup, AUE_NULL, NULL, 0, 0 }, /* 245 = linux_io_setup */ - { AS(linux_io_destroy_args), (sy_call_t *)linux_io_destroy, AUE_NULL, NULL, 0, 0 }, /* 246 = linux_io_destroy */ - { AS(linux_io_getevents_args), (sy_call_t *)linux_io_getevents, AUE_NULL, NULL, 0, 0 }, /* 247 = linux_io_getevents */ - { AS(linux_io_submit_args), (sy_call_t *)linux_io_submit, AUE_NULL, NULL, 0, 0 }, /* 248 = linux_io_submit */ - { AS(linux_io_cancel_args), (sy_call_t *)linux_io_cancel, AUE_NULL, NULL, 0, 0 }, /* 249 = linux_io_cancel */ + { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 245 = linux_io_setup */ + { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 246 = linux_io_destroy */ + { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 247 = linux_io_getevents */ + { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 248 = inux_io_submit */ + { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 249 = linux_io_cancel */ { 0, (sy_call_t *)linux_fadvise64, AUE_NULL, NULL, 0, 0 }, /* 250 = linux_fadvise64 */ { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 251 = */ { AS(linux_exit_group_args), (sy_call_t *)linux_exit_group, AUE_EXIT, NULL, 0, 0 }, /* 252 = linux_exit_group */ ==== //depot/projects/trustedbsd/priv/sys/amd64/linux32/syscalls.master#4 (text+ko) ==== @@ -1,4 +1,4 @@ - $FreeBSD: src/sys/amd64/linux32/syscalls.master,v 1.21 2006/10/15 14:22:12 netchild Exp $ + $FreeBSD: src/sys/amd64/linux32/syscalls.master,v 1.23 2006/10/29 14:02:38 netchild Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 ; System call name/number master file (or rather, slave, from LINUX). @@ -298,7 +298,8 @@ l_gid16_t egid, l_gid16_t sgid); } 171 AUE_GETRESGID STD { int linux_getresgid16(l_gid16_t *rgid, \ l_gid16_t *egid, l_gid16_t *sgid); } -172 AUE_PRCTL STD { int linux_prctl(void); } +172 AUE_PRCTL STD { int linux_prctl(l_int option, l_int arg2, l_int arg3, \ + l_int arg4, l_int arg5); } 173 AUE_NULL STD { int linux_rt_sigreturn( \ struct l_ucontext *ucp); } 174 AUE_NULL STD { int linux_rt_sigaction(l_int sig, \ @@ -406,11 +407,11 @@ 242 AUE_NULL UNIMPL linux_sched_getaffinity 243 AUE_NULL UNIMPL linux_set_thread_area 244 AUE_NULL UNIMPL linux_get_thread_area -245 AUE_NULL STD { int linux_io_setup(l_uint nr_reqs, linux_aio_context_t *ctxp); } -246 AUE_NULL STD { int linux_io_destroy(linux_aio_context_t ctx); } -247 AUE_NULL STD { int linux_io_getevents(linux_aio_context_t ctx_id, l_long min_nr, l_long nr, struct linux_io_event *events, struct l_timespec *timeout); } -248 AUE_NULL STD { int linux_io_submit(linux_aio_context_t ctx_id, l_long nr, struct linux_iocb **iocbpp); } -249 AUE_NULL STD { int linux_io_cancel(linux_aio_context_t ctx_id, struct linux_iocb *iocb, struct linux_io_event *result); } +245 AUE_NULL UNIMPL linux_io_setup +246 AUE_NULL UNIMPL linux_io_destroy +247 AUE_NULL UNIMPL linux_io_getevents +248 AUE_NULL UNIMPL inux_io_submit +249 AUE_NULL UNIMPL linux_io_cancel 250 AUE_NULL STD { int linux_fadvise64(void); } 251 AUE_NULL UNIMPL 252 AUE_EXIT STD { int linux_exit_group(int error_code); } ==== //depot/projects/trustedbsd/priv/sys/arm/arm/elf_trampoline.c#3 (text+ko) ==== @@ -23,8 +23,9 @@ */ #include -__FBSDID("$FreeBSD: src/sys/arm/arm/elf_trampoline.c,v 1.14 2006/10/21 04:25:00 kevlo Exp $"); +__FBSDID("$FreeBSD: src/sys/arm/arm/elf_trampoline.c,v 1.15 2006/10/30 23:23:00 cognet Exp $"); #include +#include #include #include #include ==== //depot/projects/trustedbsd/priv/sys/arm/arm/trap.c#3 (text+ko) ==== @@ -82,7 +82,7 @@ #include "opt_ktrace.h" #include -__FBSDID("$FreeBSD: src/sys/arm/arm/trap.c,v 1.31 2006/10/21 04:25:00 kevlo Exp $"); +__FBSDID("$FreeBSD: src/sys/arm/arm/trap.c,v 1.32 2006/10/26 21:42:16 jb Exp $"); #include #include @@ -263,8 +263,10 @@ td->td_frame = tf; if (td->td_ucred != td->td_proc->p_ucred) cred_update_thread(td); +#ifdef KSE if (td->td_pflags & TDP_SA) thread_user_enter(td); +#endif } /* Grab the current pcb */ @@ -730,8 +732,10 @@ td->td_frame = tf; if (td->td_ucred != td->td_proc->p_ucred) cred_update_thread(td); +#ifdef KSE if (td->td_proc->p_flag & P_SA) thread_user_enter(td); +#endif } fault_pc = tf->tf_pc; if (td->td_md.md_spinlock_count == 0) { @@ -1005,8 +1009,10 @@ td->td_frame = frame; td->td_pticks = 0; +#ifdef KSE if (td->td_proc->p_flag & P_SA) thread_user_enter(td); +#endif /* * Make sure the program counter is correctly aligned so we * don't take an alignment fault trying to read the opcode. ==== //depot/projects/trustedbsd/priv/sys/arm/at91/kb920x_machdep.c#4 (text) ==== @@ -48,7 +48,7 @@ #include "opt_at91.h" #include -__FBSDID("$FreeBSD: src/sys/arm/at91/kb920x_machdep.c,v 1.17 2006/10/20 07:03:57 imp Exp $"); +__FBSDID("$FreeBSD: src/sys/arm/at91/kb920x_machdep.c,v 1.18 2006/10/26 21:42:17 jb Exp $"); #define _ARM32_BUS_DMA_PRIVATE #include @@ -456,7 +456,11 @@ undefined_handler_address = (u_int)undefinedinstruction_bounce; undefined_init(); +#ifdef KSE proc_linkup(&proc0, &ksegrp0, &thread0); +#else + proc_linkup(&proc0, &thread0); +#endif thread0.td_kstack = kernelstack.pv_va; thread0.td_pcb = (struct pcb *) (thread0.td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1; ==== //depot/projects/trustedbsd/priv/sys/arm/conf/EP80219#2 (text+ko) ==== @@ -15,7 +15,7 @@ # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD: src/sys/arm/conf/EP80219,v 1.1 2006/08/24 23:51:27 cognet Exp $ +# $FreeBSD: src/sys/arm/conf/EP80219,v 1.3 2006/10/26 22:11:35 jb Exp $ machine arm ident EP80219 ==== //depot/projects/trustedbsd/priv/sys/arm/conf/IQ31244#2 (text+ko) ==== @@ -15,7 +15,7 @@ # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD: src/sys/arm/conf/IQ31244,v 1.15 2006/06/15 19:58:52 netchild Exp $ +# $FreeBSD: src/sys/arm/conf/IQ31244,v 1.17 2006/10/26 22:11:35 jb Exp $ machine arm ident IQ31244 ==== //depot/projects/trustedbsd/priv/sys/arm/conf/KB920X#2 (text) ==== @@ -16,7 +16,7 @@ # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD: src/sys/arm/conf/KB920X,v 1.9 2006/07/17 21:17:20 cognet Exp $ +# $FreeBSD: src/sys/arm/conf/KB920X,v 1.11 2006/10/26 22:11:35 jb Exp $ machine arm ident KB920X ==== //depot/projects/trustedbsd/priv/sys/arm/conf/SIMICS#2 (text+ko) ==== @@ -15,7 +15,7 @@ # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD: src/sys/arm/conf/SIMICS,v 1.10 2006/06/15 19:58:52 netchild Exp $ +# $FreeBSD: src/sys/arm/conf/SIMICS,v 1.12 2006/10/26 22:11:35 jb Exp $ machine arm ident SIMICS ==== //depot/projects/trustedbsd/priv/sys/arm/conf/SKYEYE#2 (text) ==== @@ -16,7 +16,7 @@ # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # -# $FreeBSD: src/sys/arm/conf/SKYEYE,v 1.5 2006/06/15 19:58:52 netchild Exp $ +# $FreeBSD: src/sys/arm/conf/SKYEYE,v 1.7 2006/10/26 22:11:35 jb Exp $ machine arm ident KB920X ==== //depot/projects/trustedbsd/priv/sys/arm/sa11x0/assabet_machdep.c#2 (text+ko) ==== @@ -47,7 +47,7 @@ #include -__FBSDID("$FreeBSD: src/sys/arm/sa11x0/assabet_machdep.c,v 1.18 2006/08/08 20:59:38 cognet Exp $"); +__FBSDID("$FreeBSD: src/sys/arm/sa11x0/assabet_machdep.c,v 1.19 2006/10/26 21:42:17 jb Exp $"); #include "opt_md.h" @@ -423,7 +423,11 @@ /* Set stack for exception handlers */ +#ifdef KSE proc_linkup(&proc0, &ksegrp0, &thread0); +#else + proc_linkup(&proc0, &thread0); +#endif thread0.td_kstack = kernelstack.pv_va; thread0.td_pcb = (struct pcb *) (thread0.td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1; ==== //depot/projects/trustedbsd/priv/sys/arm/xscale/i80321/ep80219_machdep.c#3 (text+ko) ==== @@ -49,7 +49,7 @@ #include "opt_ddb.h" #include -__FBSDID("$FreeBSD: src/sys/arm/xscale/i80321/ep80219_machdep.c,v 1.2 2006/08/27 13:23:51 cognet Exp $"); +__FBSDID("$FreeBSD: src/sys/arm/xscale/i80321/ep80219_machdep.c,v 1.3 2006/10/26 21:42:17 jb Exp $"); #define _ARM32_BUS_DMA_PRIVATE #include @@ -429,7 +429,11 @@ undefined_handler_address = (u_int)undefinedinstruction_bounce; undefined_init(); +#ifdef KSE proc_linkup(&proc0, &ksegrp0, &thread0); +#else + proc_linkup(&proc0, &thread0); +#endif thread0.td_kstack = kernelstack.pv_va; thread0.td_pcb = (struct pcb *) (thread0.td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1; ==== //depot/projects/trustedbsd/priv/sys/arm/xscale/i80321/iq31244_machdep.c#2 (text+ko) ==== @@ -49,7 +49,7 @@ #include "opt_ddb.h" #include -__FBSDID("$FreeBSD: src/sys/arm/xscale/i80321/iq31244_machdep.c,v 1.23 2006/08/24 23:51:28 cognet Exp $"); +__FBSDID("$FreeBSD: src/sys/arm/xscale/i80321/iq31244_machdep.c,v 1.24 2006/10/26 21:42:17 jb Exp $"); #define _ARM32_BUS_DMA_PRIVATE #include @@ -427,7 +427,11 @@ undefined_handler_address = (u_int)undefinedinstruction_bounce; undefined_init(); +#ifdef KSE proc_linkup(&proc0, &ksegrp0, &thread0); +#else + proc_linkup(&proc0, &thread0); +#endif thread0.td_kstack = kernelstack.pv_va; thread0.td_pcb = (struct pcb *) (thread0.td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1; ==== //depot/projects/trustedbsd/priv/sys/boot/common/load_elf.c#2 (text+ko) ==== @@ -26,7 +26,7 @@ */ #include -__FBSDID("$FreeBSD: src/sys/boot/common/load_elf.c,v 1.34 2006/05/12 04:09:52 jhb Exp $"); +__FBSDID("$FreeBSD: src/sys/boot/common/load_elf.c,v 1.35 2006/10/29 14:50:57 ru Exp $"); #include #include @@ -263,7 +263,7 @@ >>> TRUNCATED FOR MAIL (1000 lines) <<<