From owner-p4-projects@FreeBSD.ORG Fri Apr 16 10:04:03 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 1024316A4CF; Fri, 16 Apr 2004 10:04:03 -0700 (PDT) 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 D565E16A4D1 for ; Fri, 16 Apr 2004 10:04:02 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8F8E43D5F for ; Fri, 16 Apr 2004 10:04:02 -0700 (PDT) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i3GH42Ge093859 for ; Fri, 16 Apr 2004 10:04:02 -0700 (PDT) (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i3GH40Et093852 for perforce@freebsd.org; Fri, 16 Apr 2004 10:04:00 -0700 (PDT) (envelope-from imp@freebsd.org) Date: Fri, 16 Apr 2004 10:04:00 -0700 (PDT) Message-Id: <200404161704.i3GH40Et093852@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to imp@freebsd.org using -f From: Warner Losh To: Perforce Change Reviews Subject: PERFORCE change 51168 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2004 17:04:03 -0000 http://perforce.freebsd.org/chv.cgi?CH=51168 Change 51168 by imp@imp_pacopaco on 2004/04/16 10:03:11 IFC @51164 Affected files ... .. //depot/projects/power/sys/alpha/alpha/pmap.c#5 integrate .. //depot/projects/power/sys/alpha/include/pmap.h#5 integrate .. //depot/projects/power/sys/amd64/amd64/pmap.c#9 integrate .. //depot/projects/power/sys/amd64/amd64/vm_machdep.c#8 integrate .. //depot/projects/power/sys/amd64/include/md_var.h#6 integrate .. //depot/projects/power/sys/amd64/include/pmap.h#6 integrate .. //depot/projects/power/sys/boot/forth/loader.conf#3 integrate .. //depot/projects/power/sys/compat/freebsd32/freebsd32.h#3 integrate .. //depot/projects/power/sys/compat/freebsd32/freebsd32_misc.c#5 integrate .. //depot/projects/power/sys/compat/freebsd32/freebsd32_proto.h#6 integrate .. //depot/projects/power/sys/compat/freebsd32/freebsd32_syscall.h#6 integrate .. //depot/projects/power/sys/compat/freebsd32/freebsd32_syscalls.c#6 integrate .. //depot/projects/power/sys/compat/freebsd32/freebsd32_sysent.c#6 integrate .. //depot/projects/power/sys/compat/freebsd32/syscalls.master#5 integrate .. //depot/projects/power/sys/compat/ia32/ia32_signal.h#4 integrate .. //depot/projects/power/sys/compat/ndis/hal_var.h#3 integrate .. //depot/projects/power/sys/compat/ndis/kern_ndis.c#8 integrate .. //depot/projects/power/sys/compat/ndis/ndis_var.h#7 integrate .. //depot/projects/power/sys/compat/ndis/ntoskrnl_var.h#3 integrate .. //depot/projects/power/sys/compat/ndis/pe_var.h#4 integrate .. //depot/projects/power/sys/compat/ndis/subr_hal.c#4 integrate .. //depot/projects/power/sys/compat/ndis/subr_ndis.c#7 integrate .. //depot/projects/power/sys/compat/ndis/subr_ntoskrnl.c#5 integrate .. //depot/projects/power/sys/conf/NOTES#11 integrate .. //depot/projects/power/sys/conf/files#10 integrate .. //depot/projects/power/sys/conf/files.i386#8 integrate .. //depot/projects/power/sys/conf/options#11 integrate .. //depot/projects/power/sys/contrib/dev/acpica/CHANGES.txt#3 integrate .. //depot/projects/power/sys/contrib/dev/acpica/acconfig.h#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/acdisasm.h#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/acglobal.h#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/achware.h#3 integrate .. //depot/projects/power/sys/contrib/dev/acpica/acinterp.h#3 integrate .. //depot/projects/power/sys/contrib/dev/acpica/aclocal.h#3 integrate .. //depot/projects/power/sys/contrib/dev/acpica/acpica_prep.sh#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/actypes.h#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/acutils.h#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/common/adisasm.c#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/compiler/aslload.c#3 integrate .. //depot/projects/power/sys/contrib/dev/acpica/dbexec.c#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/dmopcode.c#3 integrate .. //depot/projects/power/sys/contrib/dev/acpica/dmutils.c#3 integrate .. //depot/projects/power/sys/contrib/dev/acpica/dmwalk.c#3 integrate .. //depot/projects/power/sys/contrib/dev/acpica/dsmthdat.c#6 integrate .. //depot/projects/power/sys/contrib/dev/acpica/dswload.c#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/evgpe.c#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/evgpeblk.c#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/evmisc.c#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/evxfevnt.c#3 integrate .. //depot/projects/power/sys/contrib/dev/acpica/excreate.c#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/exdump.c#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/exfldio.c#6 integrate .. //depot/projects/power/sys/contrib/dev/acpica/exresnte.c#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/exstore.c#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/exstoren.c#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/hwgpe.c#3 integrate .. //depot/projects/power/sys/contrib/dev/acpica/hwregs.c#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/hwsleep.c#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/nsaccess.c#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/nsdump.c#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/nseval.c#3 integrate .. //depot/projects/power/sys/contrib/dev/acpica/nssearch.c#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/nsutils.c#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/nsxfeval.c#3 integrate .. //depot/projects/power/sys/contrib/dev/acpica/rsaddr.c#5 integrate .. //depot/projects/power/sys/contrib/dev/acpica/uteval.c#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/utglobal.c#4 integrate .. //depot/projects/power/sys/contrib/dev/acpica/utmisc.c#3 integrate .. //depot/projects/power/sys/contrib/pf/net/if_pflog.c#2 integrate .. //depot/projects/power/sys/contrib/pf/net/if_pfsync.c#2 integrate .. //depot/projects/power/sys/contrib/pf/net/pf.c#3 integrate .. //depot/projects/power/sys/dev/aac/aac.c#5 integrate .. //depot/projects/power/sys/dev/acpica/Osd/OsdDebug.c#2 integrate .. //depot/projects/power/sys/dev/acpica/Osd/OsdHardware.c#3 integrate .. //depot/projects/power/sys/dev/acpica/Osd/OsdInterrupt.c#4 integrate .. //depot/projects/power/sys/dev/acpica/Osd/OsdMemory.c#2 integrate .. //depot/projects/power/sys/dev/acpica/Osd/OsdSchedule.c#3 integrate .. //depot/projects/power/sys/dev/acpica/Osd/OsdStream.c#2 integrate .. //depot/projects/power/sys/dev/acpica/Osd/OsdSynch.c#3 integrate .. //depot/projects/power/sys/dev/acpica/acpi.c#18 integrate .. //depot/projects/power/sys/dev/acpica/acpi_ec.c#6 integrate .. //depot/projects/power/sys/dev/acpica/acpi_pci.c#13 integrate .. //depot/projects/power/sys/dev/acpica/acpi_pci_link.c#5 integrate .. //depot/projects/power/sys/dev/acpica/acpi_powerres.c#4 integrate .. //depot/projects/power/sys/dev/acpica/acpi_thermal.c#8 integrate .. //depot/projects/power/sys/dev/acpica/acpivar.h#11 integrate .. //depot/projects/power/sys/dev/arl/if_arl.c#2 integrate .. //depot/projects/power/sys/dev/arl/if_arl_isa.c#2 integrate .. //depot/projects/power/sys/dev/arl/if_arlreg.h#2 integrate .. //depot/projects/power/sys/dev/ata/ata-all.c#7 integrate .. //depot/projects/power/sys/dev/ata/ata-all.h#7 integrate .. //depot/projects/power/sys/dev/ata/ata-card.c#6 integrate .. //depot/projects/power/sys/dev/ata/ata-cbus.c#4 integrate .. //depot/projects/power/sys/dev/ata/ata-chipset.c#9 integrate .. //depot/projects/power/sys/dev/ata/ata-disk.c#6 integrate .. //depot/projects/power/sys/dev/ata/ata-dma.c#6 integrate .. //depot/projects/power/sys/dev/ata/ata-isa.c#5 integrate .. //depot/projects/power/sys/dev/ata/ata-lowlevel.c#7 integrate .. //depot/projects/power/sys/dev/ata/ata-pci.c#7 integrate .. //depot/projects/power/sys/dev/ata/ata-pci.h#6 integrate .. //depot/projects/power/sys/dev/ata/ata-queue.c#6 integrate .. //depot/projects/power/sys/dev/cardbus/cardbus_cis.c#4 integrate .. //depot/projects/power/sys/dev/ciss/ciss.c#6 integrate .. //depot/projects/power/sys/dev/cs/if_cs.c#4 integrate .. //depot/projects/power/sys/dev/ed/if_ed.c#6 integrate .. //depot/projects/power/sys/dev/em/if_em.c#6 integrate .. //depot/projects/power/sys/dev/ex/if_ex.c#4 integrate .. //depot/projects/power/sys/dev/fe/if_fe.c#5 integrate .. //depot/projects/power/sys/dev/fxp/if_fxp.c#8 integrate .. //depot/projects/power/sys/dev/if_ndis/if_ndis.c#7 integrate .. //depot/projects/power/sys/dev/if_ndis/if_ndisvar.h#5 integrate .. //depot/projects/power/sys/dev/lnc/if_lnc.c#5 integrate .. //depot/projects/power/sys/dev/nge/if_nge.c#7 integrate .. //depot/projects/power/sys/dev/pccard/pccard_cis.c#3 integrate .. //depot/projects/power/sys/dev/pccbb/pccbb.c#10 integrate .. //depot/projects/power/sys/dev/pci/pci.c#12 integrate .. //depot/projects/power/sys/dev/random/probe.c#2 integrate .. //depot/projects/power/sys/dev/random/randomdev.c#5 integrate .. //depot/projects/power/sys/dev/re/if_re.c#7 integrate .. //depot/projects/power/sys/dev/sbni/if_sbni.c#4 integrate .. //depot/projects/power/sys/dev/sn/if_sn.c#6 integrate .. //depot/projects/power/sys/dev/sound/isa/ad1816.c#3 integrate .. //depot/projects/power/sys/dev/sound/isa/ess.c#3 integrate .. //depot/projects/power/sys/dev/sound/isa/mss.c#3 integrate .. //depot/projects/power/sys/dev/sound/isa/sb16.c#3 integrate .. //depot/projects/power/sys/dev/sound/isa/sb8.c#3 integrate .. //depot/projects/power/sys/dev/sound/isa/sbc.c#3 integrate .. //depot/projects/power/sys/dev/sound/pci/cmi.c#4 integrate .. //depot/projects/power/sys/dev/sound/pci/csa.c#3 integrate .. //depot/projects/power/sys/dev/sound/pci/csapcm.c#3 integrate .. //depot/projects/power/sys/dev/sound/pci/ds1.c#3 integrate .. //depot/projects/power/sys/dev/sound/pci/emu10k1.c#4 integrate .. //depot/projects/power/sys/dev/sound/pci/ich.c#5 integrate .. //depot/projects/power/sys/dev/sound/pci/t4dwave.c#3 integrate .. //depot/projects/power/sys/dev/sound/pcm/sound.h#3 integrate .. //depot/projects/power/sys/dev/sx/cd1865.h#1 branch .. //depot/projects/power/sys/dev/sx/sx.c#1 branch .. //depot/projects/power/sys/dev/sx/sx.h#1 branch .. //depot/projects/power/sys/dev/sx/sx_pci.c#1 branch .. //depot/projects/power/sys/dev/sx/sx_util.c#1 branch .. //depot/projects/power/sys/dev/sx/sx_util.h#1 branch .. //depot/projects/power/sys/dev/sx/sxvar.h#1 branch .. //depot/projects/power/sys/dev/trm/trm.c#4 integrate .. //depot/projects/power/sys/dev/usb/devlist2h.awk#2 integrate .. //depot/projects/power/sys/dev/usb/if_aue.c#6 integrate .. //depot/projects/power/sys/dev/usb/usbdevs#8 integrate .. //depot/projects/power/sys/dev/usb/usbdevs.h#8 integrate .. //depot/projects/power/sys/dev/usb/usbdevs_data.h#8 integrate .. //depot/projects/power/sys/dev/wl/if_wl.c#4 integrate .. //depot/projects/power/sys/dev/xe/if_xe.c#6 integrate .. //depot/projects/power/sys/dev/xe/if_xe_pccard.c#6 integrate .. //depot/projects/power/sys/fs/specfs/spec_vnops.c#6 integrate .. //depot/projects/power/sys/i386/acpica/Makefile#4 integrate .. //depot/projects/power/sys/i386/acpica/acpi_toshiba.c#4 integrate .. //depot/projects/power/sys/i386/conf/GENERIC#7 integrate .. //depot/projects/power/sys/i386/conf/NOTES#11 integrate .. //depot/projects/power/sys/i386/i386/pmap.c#9 integrate .. //depot/projects/power/sys/i386/i386/vm_machdep.c#9 integrate .. //depot/projects/power/sys/i386/include/md_var.h#5 integrate .. //depot/projects/power/sys/i386/include/pmap.h#7 integrate .. //depot/projects/power/sys/ia64/ia64/pmap.c#5 integrate .. //depot/projects/power/sys/kern/kern_exec.c#7 integrate .. //depot/projects/power/sys/kern/kern_poll.c#5 integrate .. //depot/projects/power/sys/kern/kern_resource.c#5 integrate .. //depot/projects/power/sys/kern/kern_sig.c#11 integrate .. //depot/projects/power/sys/kern/subr_mbuf.c#4 integrate .. //depot/projects/power/sys/kern/subr_rman.c#2 integrate .. //depot/projects/power/sys/kern/vfs_subr.c#12 integrate .. //depot/projects/power/sys/modules/random/Makefile#3 integrate .. //depot/projects/power/sys/modules/twa/Makefile#2 integrate .. //depot/projects/power/sys/modules/wlan/Makefile#2 integrate .. //depot/projects/power/sys/net/if.c#8 integrate .. //depot/projects/power/sys/net/if.h#5 integrate .. //depot/projects/power/sys/net/if_faith.c#7 integrate .. //depot/projects/power/sys/net/if_gif.c#6 integrate .. //depot/projects/power/sys/net/if_loop.c#8 integrate .. //depot/projects/power/sys/net/if_media.h#3 integrate .. //depot/projects/power/sys/net/if_ppp.c#4 integrate .. //depot/projects/power/sys/net/if_stf.c#6 integrate .. //depot/projects/power/sys/net/if_var.h#9 integrate .. //depot/projects/power/sys/net/route.c#8 integrate .. //depot/projects/power/sys/net/route.h#6 integrate .. //depot/projects/power/sys/net/rtsock.c#5 integrate .. //depot/projects/power/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c#4 integrate .. //depot/projects/power/sys/netgraph/bluetooth/hci/ng_hci_evnt.c#3 integrate .. //depot/projects/power/sys/netgraph/bluetooth/hci/ng_hci_misc.c#3 integrate .. //depot/projects/power/sys/netgraph/bluetooth/hci/ng_hci_ulpi.c#3 integrate .. //depot/projects/power/sys/netgraph/bluetooth/hci/ng_hci_var.h#3 integrate .. //depot/projects/power/sys/netgraph/bluetooth/l2cap/ng_l2cap_evnt.c#3 integrate .. //depot/projects/power/sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c#3 integrate .. //depot/projects/power/sys/netgraph/bluetooth/l2cap/ng_l2cap_misc.c#3 integrate .. //depot/projects/power/sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c#2 integrate .. //depot/projects/power/sys/netgraph/bluetooth/l2cap/ng_l2cap_var.h#3 integrate .. //depot/projects/power/sys/netgraph/ng_fec.c#3 integrate .. //depot/projects/power/sys/netinet/in_gif.c#4 integrate .. //depot/projects/power/sys/netinet/ip_output.c#7 integrate .. //depot/projects/power/sys/nfsclient/nfs.h#6 integrate .. //depot/projects/power/sys/nfsclient/nfs_bio.c#7 integrate .. //depot/projects/power/sys/nfsclient/nfs_nfsiod.c#4 integrate .. //depot/projects/power/sys/nfsclient/nfs_node.c#5 integrate .. //depot/projects/power/sys/nfsclient/nfs_subs.c#7 integrate .. //depot/projects/power/sys/nfsclient/nfsnode.h#5 integrate .. //depot/projects/power/sys/nfsserver/nfs.h#5 integrate .. //depot/projects/power/sys/nfsserver/nfs_serv.c#5 integrate .. //depot/projects/power/sys/nfsserver/nfs_srvsubs.c#5 integrate .. //depot/projects/power/sys/nfsserver/nfs_syscalls.c#6 integrate .. //depot/projects/power/sys/pc98/conf/NOTES#8 integrate .. //depot/projects/power/sys/pci/if_dc.c#11 integrate .. //depot/projects/power/sys/pci/if_rl.c#9 integrate .. //depot/projects/power/sys/pci/if_sis.c#8 integrate .. //depot/projects/power/sys/pci/if_ste.c#11 integrate .. //depot/projects/power/sys/pci/if_vr.c#7 integrate .. //depot/projects/power/sys/pci/if_xl.c#8 integrate .. //depot/projects/power/sys/powerpc/include/pmap.h#5 integrate .. //depot/projects/power/sys/powerpc/powerpc/pmap.c#6 integrate .. //depot/projects/power/sys/sparc64/include/pmap.h#5 integrate .. //depot/projects/power/sys/sparc64/sparc64/pmap.c#5 integrate .. //depot/projects/power/sys/sys/mount.h#6 integrate .. //depot/projects/power/sys/sys/param.h#7 integrate .. //depot/projects/power/sys/vm/pmap.h#6 integrate Differences ... ==== //depot/projects/power/sys/alpha/alpha/pmap.c#5 (text+ko) ==== @@ -148,7 +148,7 @@ */ #include -__FBSDID("$FreeBSD: src/sys/alpha/alpha/pmap.c,v 1.142 2004/04/05 04:07:58 alc Exp $"); +__FBSDID("$FreeBSD: src/sys/alpha/alpha/pmap.c,v 1.143 2004/04/11 05:08:26 alc Exp $"); #include #include @@ -301,7 +301,6 @@ */ struct pmap kernel_pmap_store; -vm_offset_t avail_end; /* PA of last available physical page */ vm_offset_t virtual_avail; /* VA of first avail page (after kernel bss) */ vm_offset_t virtual_end; /* VA of last avail page (end of kernel AS) */ static boolean_t pmap_initialized = FALSE; /* Has pmap_init completed? */ @@ -511,9 +510,6 @@ Lev2map[i] = newpte; } - for (i = 0; phys_avail[i+2]; i+= 2) ; - avail_end = phys_avail[i+1]; - virtual_avail = VM_MIN_KERNEL_ADDRESS; virtual_end = VPTBASE; ==== //depot/projects/power/sys/alpha/include/pmap.h#5 (text+ko) ==== @@ -39,7 +39,7 @@ * from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90 * from: @(#)pmap.h 7.4 (Berkeley) 5/12/91 * from: i386 pmap.h,v 1.54 1997/11/20 19:30:35 bde Exp - * $FreeBSD: src/sys/alpha/include/pmap.h,v 1.28 2004/04/05 21:00:50 imp Exp $ + * $FreeBSD: src/sys/alpha/include/pmap.h,v 1.30 2004/04/11 05:08:26 alc Exp $ */ #ifndef _MACHINE_PMAP_H_ @@ -204,7 +204,6 @@ #ifdef _KERNEL -extern vm_offset_t avail_end; extern vm_offset_t phys_avail[]; extern vm_offset_t virtual_avail; extern vm_offset_t virtual_end; @@ -214,6 +213,7 @@ vm_offset_t pmap_steal_memory(vm_size_t); void pmap_bootstrap(vm_offset_t, u_int); void pmap_kenter(vm_offset_t va, vm_offset_t pa); +void *pmap_kenter_temporary(vm_offset_t pa, int i); void pmap_kremove(vm_offset_t); void pmap_setdevram(unsigned long long basea, vm_offset_t sizea); int pmap_uses_prom_console(void); ==== //depot/projects/power/sys/amd64/amd64/pmap.c#9 (text+ko) ==== @@ -75,7 +75,7 @@ */ #include -__FBSDID("$FreeBSD: src/sys/amd64/amd64/pmap.c,v 1.456 2004/04/05 00:37:47 alc Exp $"); +__FBSDID("$FreeBSD: src/sys/amd64/amd64/pmap.c,v 1.457 2004/04/16 03:45:28 alc Exp $"); /* * Manages physical address maps. @@ -384,7 +384,7 @@ /* XXX not fully used, underneath 2M pages */ for (i = 0; (i << PAGE_SHIFT) < avail_start; i++) { ((pt_entry_t *)KPTphys)[i] = i << PAGE_SHIFT; - ((pt_entry_t *)KPTphys)[i] |= PG_RW | PG_V; + ((pt_entry_t *)KPTphys)[i] |= PG_RW | PG_V | PG_G; } /* Now map the page tables at their location within PTmap */ @@ -397,7 +397,7 @@ /* This replaces some of the KPTphys entries above */ for (i = 0; (i << PDRSHIFT) < avail_start; i++) { ((pd_entry_t *)KPDphys)[i] = i << PDRSHIFT; - ((pd_entry_t *)KPDphys)[i] |= PG_RW | PG_V | PG_PS; + ((pd_entry_t *)KPDphys)[i] |= PG_RW | PG_V | PG_PS | PG_G; } /* And connect up the PD to the PDP */ @@ -410,7 +410,7 @@ /* Now set up the direct map space using 2MB pages */ for (i = 0; i < NPDEPG * ndmpdp; i++) { ((pd_entry_t *)DMPDphys)[i] = (vm_paddr_t)i << PDRSHIFT; - ((pd_entry_t *)DMPDphys)[i] |= PG_RW | PG_V | PG_PS; + ((pd_entry_t *)DMPDphys)[i] |= PG_RW | PG_V | PG_PS | PG_G; } /* And the direct map space's PDP */ ==== //depot/projects/power/sys/amd64/amd64/vm_machdep.c#8 (text+ko) ==== @@ -41,7 +41,7 @@ */ #include -__FBSDID("$FreeBSD: src/sys/amd64/amd64/vm_machdep.c,v 1.232 2004/04/03 09:16:25 alc Exp $"); +__FBSDID("$FreeBSD: src/sys/amd64/amd64/vm_machdep.c,v 1.233 2004/04/11 04:26:58 alc Exp $"); #include "opt_isa.h" #include "opt_cpu.h" @@ -522,8 +522,7 @@ */ int -is_physical_memory(addr) - vm_offset_t addr; +is_physical_memory(vm_paddr_t addr) { #ifdef DEV_ISA ==== //depot/projects/power/sys/amd64/include/md_var.h#6 (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/md_var.h,v 1.72 2004/03/31 02:03:49 alc Exp $ + * $FreeBSD: src/sys/amd64/include/md_var.h,v 1.73 2004/04/11 04:26:58 alc Exp $ */ #ifndef _MACHINE_MD_VAR_H_ @@ -66,7 +66,7 @@ void enable_sse(void); void fillw(int /*u_short*/ pat, void *base, size_t cnt); void fpstate_drop(struct thread *td); -int is_physical_memory(vm_offset_t addr); +int is_physical_memory(vm_paddr_t addr); int isa_nmi(int cd); void pagecopy(void *from, void *to); void pagezero(void *addr); ==== //depot/projects/power/sys/amd64/include/pmap.h#6 (text+ko) ==== @@ -39,7 +39,7 @@ * * from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90 * from: @(#)pmap.h 7.4 (Berkeley) 5/12/91 - * $FreeBSD: src/sys/amd64/include/pmap.h,v 1.112 2004/04/05 23:55:14 imp Exp $ + * $FreeBSD: src/sys/amd64/include/pmap.h,v 1.113 2004/04/10 22:41:45 alc Exp $ */ #ifndef _MACHINE_PMAP_H_ @@ -264,6 +264,7 @@ void pmap_bootstrap(vm_paddr_t *); void pmap_kenter(vm_offset_t va, vm_paddr_t pa); +void *pmap_kenter_temporary(vm_offset_t pa, int i); void pmap_kremove(vm_offset_t); void *pmap_mapdev(vm_paddr_t, vm_size_t); void pmap_unmapdev(vm_offset_t, vm_size_t); ==== //depot/projects/power/sys/boot/forth/loader.conf#3 (text+ko) ==== @@ -6,7 +6,7 @@ # # All arguments must be in double quotes. # -# $FreeBSD: src/sys/boot/forth/loader.conf,v 1.76 2004/03/01 18:42:16 des Exp $ +# $FreeBSD: src/sys/boot/forth/loader.conf,v 1.77 2004/04/15 12:12:15 cperciva Exp $ ############################################################## ### Basic configuration options ############################ @@ -311,7 +311,7 @@ accf_data_load="NO" # Wait for data accept filter accf_http_load="NO" # Wait for full HTTP request accept filter random_load="NO" # Random device -atspeaker_load="NO" # AT speaker module +speaker_load="NO" # AT speaker module ############################################################## ### ACPI settings ########################################## ==== //depot/projects/power/sys/compat/freebsd32/freebsd32.h#3 (text+ko) ==== @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $FreeBSD: src/sys/compat/freebsd32/freebsd32.h,v 1.3 2003/10/30 02:40:30 peter Exp $ + * $FreeBSD: src/sys/compat/freebsd32/freebsd32.h,v 1.4 2004/04/14 23:17:37 peter Exp $ */ #ifndef _COMPAT_FREEBSD32_FREEBSD32_H_ @@ -75,8 +75,9 @@ int32_t ru_nivcsw; }; -#define FREEBSD32_MNAMELEN (88 - 2 * sizeof(int32_t)) /* size of on/from name bufs */ +#define FREEBSD4_MNAMELEN (88 - 2 * sizeof(int32_t)) /* size of on/from name bufs */ +/* 4.x version */ struct statfs32 { int32_t f_spare2; int32_t f_bsize; @@ -93,11 +94,11 @@ int32_t f_syncwrites; int32_t f_asyncwrites; char f_fstypename[MFSNAMELEN]; - char f_mntonname[FREEBSD32_MNAMELEN]; + char f_mntonname[FREEBSD4_MNAMELEN]; int32_t f_syncreads; int32_t f_asyncreads; int16_t f_spares1; - char f_mntfromname[FREEBSD32_MNAMELEN]; + char f_mntfromname[FREEBSD4_MNAMELEN]; int16_t f_spares2 __packed; int32_t f_spare[2]; }; ==== //depot/projects/power/sys/compat/freebsd32/freebsd32_misc.c#5 (text+ko) ==== @@ -25,7 +25,7 @@ */ #include -__FBSDID("$FreeBSD: src/sys/compat/freebsd32/freebsd32_misc.c,v 1.20 2004/03/17 19:59:59 jhb Exp $"); +__FBSDID("$FreeBSD: src/sys/compat/freebsd32/freebsd32_misc.c,v 1.21 2004/04/14 23:17:37 peter Exp $"); #include "opt_compat.h" @@ -140,15 +140,15 @@ bcopy(in->f_fstypename, out->f_fstypename, MFSNAMELEN); bcopy(in->f_mntonname, - out->f_mntonname, MNAMELEN); + out->f_mntonname, min(MNAMELEN, FREEBSD4_MNAMELEN)); CP(*in, *out, f_syncreads); CP(*in, *out, f_asyncreads); bcopy(in->f_mntfromname, - out->f_mntfromname, MNAMELEN); + out->f_mntfromname, min(MNAMELEN, FREEBSD4_MNAMELEN)); } int -freebsd32_getfsstat(struct thread *td, struct freebsd32_getfsstat_args *uap) +freebsd4_freebsd32_getfsstat(struct thread *td, struct freebsd4_freebsd32_getfsstat_args *uap) { int error; caddr_t sg; @@ -870,7 +870,7 @@ } int -freebsd32_statfs(struct thread *td, struct freebsd32_statfs_args *uap) +freebsd4_freebsd32_statfs(struct thread *td, struct freebsd4_freebsd32_statfs_args *uap) { int error; caddr_t sg; @@ -897,7 +897,7 @@ } int -freebsd32_fstatfs(struct thread *td, struct freebsd32_fstatfs_args *uap) +freebsd4_freebsd32_fstatfs(struct thread *td, struct freebsd4_freebsd32_fstatfs_args *uap) { int error; caddr_t sg; @@ -924,6 +924,33 @@ } int +freebsd4_freebsd32_fhstatfs(struct thread *td, struct freebsd4_freebsd32_fhstatfs_args *uap) +{ + int error; + caddr_t sg; + struct statfs32 *p32, s32; + struct statfs *p = NULL, s; + + p32 = uap->buf; + if (p32) { + sg = stackgap_init(); + p = stackgap_alloc(&sg, sizeof(struct statfs)); + uap->buf = (struct statfs32 *)p; + } + error = fhstatfs(td, (struct fhstatfs_args *) uap); + if (error) + return (error); + if (p32) { + error = copyin(p, &s, sizeof(s)); + if (error) + return (error); + copy_statfs(&s, &s32); + error = copyout(&s32, p32, sizeof(s32)); + } + return (error); +} + +int freebsd32_semsys(struct thread *td, struct freebsd32_semsys_args *uap) { /* ==== //depot/projects/power/sys/compat/freebsd32/freebsd32_proto.h#6 (text+ko) ==== @@ -2,8 +2,8 @@ * System call prototypes. * * DO NOT EDIT-- this file is automatically generated. - * $FreeBSD: src/sys/compat/freebsd32/freebsd32_proto.h,v 1.24 2004/04/05 10:17:23 dfr Exp $ - * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.36 2004/03/27 14:30:42 mtm Exp + * $FreeBSD: src/sys/compat/freebsd32/freebsd32_proto.h,v 1.25 2004/04/14 23:17:57 peter Exp $ + * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.37 2004/04/14 23:17:37 peter Exp */ #ifndef _FREEBSD32_SYSPROTO_H_ @@ -38,11 +38,6 @@ char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)]; char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)]; }; -struct freebsd32_getfsstat_args { - char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; - char bufsize_l_[PADL_(long)]; long bufsize; char bufsize_r_[PADR_(long)]; - char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; -}; struct freebsd32_sigaltstack_args { char ss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * ss; char ss_r_[PADR_(struct sigaltstack32 *)]; char oss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * oss; char oss_r_[PADR_(struct sigaltstack32 *)]; @@ -98,14 +93,6 @@ char delta_l_[PADL_(struct timeval32 *)]; struct timeval32 * delta; char delta_r_[PADR_(struct timeval32 *)]; char olddelta_l_[PADL_(struct timeval32 *)]; struct timeval32 * olddelta; char olddelta_r_[PADR_(struct timeval32 *)]; }; -struct freebsd32_statfs_args { - char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; - char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; -}; -struct freebsd32_fstatfs_args { - char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; - char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; -}; struct freebsd32_semsys_args { char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)]; char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; @@ -219,7 +206,6 @@ char sigcntxp_l_[PADL_(const struct freebsd32_ucontext *)]; const struct freebsd32_ucontext * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd32_ucontext *)]; }; int freebsd32_wait4(struct thread *, struct freebsd32_wait4_args *); -int freebsd32_getfsstat(struct thread *, struct freebsd32_getfsstat_args *); int freebsd32_sigaltstack(struct thread *, struct freebsd32_sigaltstack_args *); int freebsd32_execve(struct thread *, struct freebsd32_execve_args *); int freebsd32_setitimer(struct thread *, struct freebsd32_setitimer_args *); @@ -232,8 +218,6 @@ int freebsd32_settimeofday(struct thread *, struct freebsd32_settimeofday_args *); int freebsd32_utimes(struct thread *, struct freebsd32_utimes_args *); int freebsd32_adjtime(struct thread *, struct freebsd32_adjtime_args *); -int freebsd32_statfs(struct thread *, struct freebsd32_statfs_args *); -int freebsd32_fstatfs(struct thread *, struct freebsd32_fstatfs_args *); int freebsd32_semsys(struct thread *, struct freebsd32_semsys_args *); int freebsd32_msgsys(struct thread *, struct freebsd32_msgsys_args *); int freebsd32_shmsys(struct thread *, struct freebsd32_shmsys_args *); @@ -260,6 +244,23 @@ #ifdef COMPAT_FREEBSD4 +struct freebsd4_freebsd32_getfsstat_args { + char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; + char bufsize_l_[PADL_(long)]; long bufsize; char bufsize_r_[PADR_(long)]; + char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; +}; +struct freebsd4_freebsd32_statfs_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; +}; +struct freebsd4_freebsd32_fstatfs_args { + char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; + char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; +}; +struct freebsd4_freebsd32_fhstatfs_args { + char u_fhp_l_[PADL_(const struct fhandle *)]; const struct fhandle * u_fhp; char u_fhp_r_[PADR_(const struct fhandle *)]; + char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; +}; struct freebsd4_freebsd32_sendfile_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; @@ -278,6 +279,10 @@ struct freebsd4_freebsd32_sigreturn_args { char sigcntxp_l_[PADL_(const struct freebsd4_freebsd32_ucontext *)]; const struct freebsd4_freebsd32_ucontext * sigcntxp; char sigcntxp_r_[PADR_(const struct freebsd4_freebsd32_ucontext *)]; }; +int freebsd4_freebsd32_getfsstat(struct thread *, struct freebsd4_freebsd32_getfsstat_args *); +int freebsd4_freebsd32_statfs(struct thread *, struct freebsd4_freebsd32_statfs_args *); +int freebsd4_freebsd32_fstatfs(struct thread *, struct freebsd4_freebsd32_fstatfs_args *); +int freebsd4_freebsd32_fhstatfs(struct thread *, struct freebsd4_freebsd32_fhstatfs_args *); int freebsd4_freebsd32_sendfile(struct thread *, struct freebsd4_freebsd32_sendfile_args *); int freebsd4_freebsd32_sigaction(struct thread *, struct freebsd4_freebsd32_sigaction_args *); int freebsd4_freebsd32_sigreturn(struct thread *, struct freebsd4_freebsd32_sigreturn_args *); ==== //depot/projects/power/sys/compat/freebsd32/freebsd32_syscall.h#6 (text+ko) ==== @@ -2,8 +2,8 @@ * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * $FreeBSD: src/sys/compat/freebsd32/freebsd32_syscall.h,v 1.24 2004/04/05 10:17:23 dfr Exp $ - * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.36 2004/03/27 14:30:42 mtm Exp + * $FreeBSD: src/sys/compat/freebsd32/freebsd32_syscall.h,v 1.25 2004/04/14 23:17:57 peter Exp $ + * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.37 2004/04/14 23:17:37 peter Exp */ #define FREEBSD32_SYS_syscall 0 @@ -24,7 +24,7 @@ #define FREEBSD32_SYS_chmod 15 #define FREEBSD32_SYS_chown 16 #define FREEBSD32_SYS_break 17 -#define FREEBSD32_SYS_freebsd32_getfsstat 18 + /* 18 is old freebsd32_getfsstat */ /* 19 is obsolete olseek */ #define FREEBSD32_SYS_getpid 20 #define FREEBSD32_SYS_mount 21 @@ -150,8 +150,8 @@ /* 149 is obsolete oquota */ /* 150 is obsolete ogetsockname */ /* 156 is obsolete ogetdirentries */ -#define FREEBSD32_SYS_freebsd32_statfs 157 -#define FREEBSD32_SYS_freebsd32_fstatfs 158 + /* 157 is old freebsd32_statfs */ + /* 158 is old freebsd32_fstatfs */ #define FREEBSD32_SYS_getfh 161 #define FREEBSD32_SYS_getdomainname 162 #define FREEBSD32_SYS_setdomainname 163 @@ -215,7 +215,7 @@ #define FREEBSD32_SYS_nstat 278 #define FREEBSD32_SYS_nfstat 279 #define FREEBSD32_SYS_nlstat 280 -#define FREEBSD32_SYS_fhstatfs 297 + /* 297 is old freebsd32_fhstatfs */ #define FREEBSD32_SYS_fhopen 298 #define FREEBSD32_SYS_fhstat 299 #define FREEBSD32_SYS_modnext 300 @@ -286,6 +286,10 @@ #define FREEBSD32_SYS_lchflags 391 #define FREEBSD32_SYS_uuidgen 392 #define FREEBSD32_SYS_freebsd32_sendfile 393 +#define FREEBSD32_SYS_getfsstat 395 +#define FREEBSD32_SYS_statfs 396 +#define FREEBSD32_SYS_fstatfs 397 +#define FREEBSD32_SYS_fhstatfs 398 #define FREEBSD32_SYS_freebsd32_sigaction 416 #define FREEBSD32_SYS_freebsd32_sigreturn 417 #define FREEBSD32_SYS_thr_create 430 ==== //depot/projects/power/sys/compat/freebsd32/freebsd32_syscalls.c#6 (text+ko) ==== @@ -2,8 +2,8 @@ * System call names. * * DO NOT EDIT-- this file is automatically generated. - * $FreeBSD: src/sys/compat/freebsd32/freebsd32_syscalls.c,v 1.15 2004/04/05 10:17:23 dfr Exp $ - * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.36 2004/03/27 14:30:42 mtm Exp + * $FreeBSD: src/sys/compat/freebsd32/freebsd32_syscalls.c,v 1.16 2004/04/14 23:17:57 peter Exp $ + * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.37 2004/04/14 23:17:37 peter Exp */ const char *freebsd32_syscallnames[] = { @@ -25,7 +25,7 @@ "chmod", /* 15 = chmod */ "chown", /* 16 = chown */ "break", /* 17 = break */ - "freebsd32_getfsstat", /* 18 = freebsd32_getfsstat */ + "old.freebsd32_getfsstat", /* 18 = old freebsd32_getfsstat */ "obs_olseek", /* 19 = obsolete olseek */ "getpid", /* 20 = getpid */ "mount", /* 21 = mount */ @@ -164,8 +164,8 @@ "#154", /* 154 = nosys */ "#155", /* 155 = nfssvc */ "obs_ogetdirentries", /* 156 = obsolete ogetdirentries */ - "freebsd32_statfs", /* 157 = freebsd32_statfs */ - "freebsd32_fstatfs", /* 158 = freebsd32_fstatfs */ + "old.freebsd32_statfs", /* 157 = old freebsd32_statfs */ + "old.freebsd32_fstatfs", /* 158 = old freebsd32_fstatfs */ "#159", /* 159 = nosys */ "#160", /* 160 = nosys */ "getfh", /* 161 = getfh */ @@ -304,7 +304,7 @@ "#294", /* 294 = nosys */ "#295", /* 295 = nosys */ "#296", /* 296 = nosys */ - "fhstatfs", /* 297 = fhstatfs */ + "old.freebsd32_fhstatfs", /* 297 = old freebsd32_fhstatfs */ "fhopen", /* 298 = fhopen */ "fhstat", /* 299 = fhstat */ "modnext", /* 300 = modnext */ @@ -402,10 +402,10 @@ "uuidgen", /* 392 = uuidgen */ "freebsd32_sendfile", /* 393 = freebsd32_sendfile */ "#394", /* 394 = mac_syscall */ - "#395", /* 395 = nosys */ - "#396", /* 396 = nosys */ - "#397", /* 397 = nosys */ - "#398", /* 398 = nosys */ + "getfsstat", /* 395 = getfsstat */ + "statfs", /* 396 = statfs */ + "fstatfs", /* 397 = fstatfs */ + "fhstatfs", /* 398 = fhstatfs */ "#399", /* 399 = nosys */ "#400", /* 400 = ksem_close */ "#401", /* 401 = ksem_post */ ==== //depot/projects/power/sys/compat/freebsd32/freebsd32_sysent.c#6 (text+ko) ==== @@ -2,8 +2,8 @@ * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * $FreeBSD: src/sys/compat/freebsd32/freebsd32_sysent.c,v 1.25 2004/04/05 10:17:23 dfr Exp $ - * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.36 2004/03/27 14:30:42 mtm Exp + * $FreeBSD: src/sys/compat/freebsd32/freebsd32_sysent.c,v 1.26 2004/04/14 23:17:57 peter Exp $ + * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.37 2004/04/14 23:17:37 peter Exp */ #include "opt_compat.h" @@ -43,7 +43,7 @@ { AS(chmod_args), (sy_call_t *)chmod }, /* 15 = chmod */ { AS(chown_args), (sy_call_t *)chown }, /* 16 = chown */ { SYF_MPSAFE | AS(obreak_args), (sy_call_t *)obreak }, /* 17 = break */ - { AS(freebsd32_getfsstat_args), (sy_call_t *)freebsd32_getfsstat }, /* 18 = freebsd32_getfsstat */ + { compat4(AS(freebsd4_freebsd32_getfsstat_args),freebsd32_getfsstat) }, /* 18 = old freebsd32_getfsstat */ { 0, (sy_call_t *)nosys }, /* 19 = obsolete olseek */ { SYF_MPSAFE | 0, (sy_call_t *)getpid }, /* 20 = getpid */ { AS(mount_args), (sy_call_t *)mount }, /* 21 = mount */ @@ -182,8 +182,8 @@ { 0, (sy_call_t *)nosys }, /* 154 = nosys */ { 0, (sy_call_t *)nosys }, /* 155 = nfssvc */ { 0, (sy_call_t *)nosys }, /* 156 = obsolete ogetdirentries */ - { AS(freebsd32_statfs_args), (sy_call_t *)freebsd32_statfs }, /* 157 = freebsd32_statfs */ - { AS(freebsd32_fstatfs_args), (sy_call_t *)freebsd32_fstatfs }, /* 158 = freebsd32_fstatfs */ + { compat4(AS(freebsd4_freebsd32_statfs_args),freebsd32_statfs) }, /* 157 = old freebsd32_statfs */ + { compat4(AS(freebsd4_freebsd32_fstatfs_args),freebsd32_fstatfs) }, /* 158 = old freebsd32_fstatfs */ { 0, (sy_call_t *)nosys }, /* 159 = nosys */ { 0, (sy_call_t *)nosys }, /* 160 = nosys */ { AS(getfh_args), (sy_call_t *)getfh }, /* 161 = getfh */ @@ -322,7 +322,7 @@ { 0, (sy_call_t *)nosys }, /* 294 = nosys */ { 0, (sy_call_t *)nosys }, /* 295 = nosys */ { 0, (sy_call_t *)nosys }, /* 296 = nosys */ - { AS(fhstatfs_args), (sy_call_t *)fhstatfs }, /* 297 = fhstatfs */ + { compat4(AS(freebsd4_freebsd32_fhstatfs_args),freebsd32_fhstatfs) }, /* 297 = old freebsd32_fhstatfs */ { AS(fhopen_args), (sy_call_t *)fhopen }, /* 298 = fhopen */ { AS(fhstat_args), (sy_call_t *)fhstat }, /* 299 = fhstat */ { SYF_MPSAFE | AS(modnext_args), (sy_call_t *)modnext }, /* 300 = modnext */ @@ -420,10 +420,10 @@ { AS(uuidgen_args), (sy_call_t *)uuidgen }, /* 392 = uuidgen */ { SYF_MPSAFE | AS(freebsd32_sendfile_args), (sy_call_t *)freebsd32_sendfile }, /* 393 = freebsd32_sendfile */ { 0, (sy_call_t *)nosys }, /* 394 = mac_syscall */ - { 0, (sy_call_t *)nosys }, /* 395 = nosys */ - { 0, (sy_call_t *)nosys }, /* 396 = nosys */ - { 0, (sy_call_t *)nosys }, /* 397 = nosys */ - { 0, (sy_call_t *)nosys }, /* 398 = nosys */ + { AS(getfsstat_args), (sy_call_t *)getfsstat }, /* 395 = getfsstat */ + { AS(statfs_args), (sy_call_t *)statfs }, /* 396 = statfs */ + { AS(fstatfs_args), (sy_call_t *)fstatfs }, /* 397 = fstatfs */ + { AS(fhstatfs_args), (sy_call_t *)fhstatfs }, /* 398 = fhstatfs */ { 0, (sy_call_t *)nosys }, /* 399 = nosys */ { 0, (sy_call_t *)nosys }, /* 400 = ksem_close */ { 0, (sy_call_t *)nosys }, /* 401 = ksem_post */ ==== //depot/projects/power/sys/compat/freebsd32/syscalls.master#5 (text+ko) ==== @@ -1,4 +1,4 @@ - $FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.36 2004/03/27 14:30:42 mtm Exp $ + $FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.37 2004/04/14 23:17:37 peter Exp $ ; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94 ; from: src/sys/kern/syscalls.master 1.107 ; @@ -64,8 +64,8 @@ 15 NOPROTO { int chmod(char *path, int mode); } 16 NOPROTO { int chown(char *path, int uid, int gid); } 17 MNOPROTO { int obreak(char *nsize); } break obreak_args int -18 STD { int freebsd32_getfsstat(struct statfs32 *buf, long bufsize, \ - int flags); } +18 COMPAT4 { int freebsd32_getfsstat(struct statfs32 *buf, \ + long bufsize, int flags); } 19 OBSOL olseek 20 MNOPROTO { pid_t getpid(void); } 21 NOPROTO { int mount(char *type, char *path, int flags, \ @@ -232,8 +232,9 @@ ; XXX this is a problem!!! 155 UNIMPL nfssvc 156 OBSOL ogetdirentries -157 STD { int freebsd32_statfs(char *path, struct statfs32 *buf); } -158 STD { int freebsd32_fstatfs(int fd, struct statfs32 *buf); } +157 COMPAT4 { int freebsd32_statfs(char *path, \ + struct statfs32 *buf); } +158 COMPAT4 { int freebsd32_fstatfs(int fd, struct statfs32 *buf);} 159 UNIMPL nosys 160 UNIMPL nosys 161 NOPROTO { int getfh(char *fname, struct fhandle *fhp); } @@ -414,8 +415,8 @@ 295 UNIMPL nosys 296 UNIMPL nosys ; XXX 297 is 300 in NetBSD -297 NOPROTO { int fhstatfs(const struct fhandle *u_fhp, \ - struct statfs *buf); } +297 COMPAT4 { int freebsd32_fhstatfs(const struct fhandle *u_fhp, \ + struct statfs32 *buf); } 298 NOPROTO { int fhopen(const struct fhandle *u_fhp, int flags); } 299 NOPROTO { int fhstat(const struct fhandle *u_fhp, struct stat *sb); } ; syscall numbers for FreeBSD @@ -550,10 +551,12 @@ u_int32_t offsethi, size_t nbytes, struct sf_hdtr *hdtr, \ off_t *sbytes, int flags); } 394 UNIMPL mac_syscall -395 UNIMPL nosys -396 UNIMPL nosys -397 UNIMPL nosys -398 UNIMPL nosys +395 NOPROTO { int getfsstat(struct statfs *buf, long bufsize, \ + int flags); } +396 NOPROTO { int statfs(char *path, struct statfs *buf); } +397 NOPROTO { int fstatfs(int fd, struct statfs *buf); } +398 NOPROTO { int fhstatfs(const struct fhandle *u_fhp, \ + struct statfs *buf); } 399 UNIMPL nosys ; XXX implement these? 400 UNIMPL ksem_close ==== //depot/projects/power/sys/compat/ia32/ia32_signal.h#4 (text+ko) ==== @@ -26,7 +26,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/compat/ia32/ia32_signal.h,v 1.5 2004/02/21 23:36:31 peter Exp $ + * $FreeBSD: src/sys/compat/ia32/ia32_signal.h,v 1.6 2004/04/14 23:20:14 peter Exp $ */ struct ia32_sigaltstack { @@ -113,6 +113,32 @@ }; #endif +#ifdef COMPAT_FREEBSD3 +struct ia32_sigcontext3 { + int sc_onstack; + u_int32_t sc_mask; + int sc_esp; + int sc_ebp; + int sc_isp; + int sc_eip; + int sc_eflags; + int sc_es; + int sc_ds; + int sc_cs; + int sc_ss; + int sc_edi; + int sc_esi; + int sc_ebx; + int sc_edx; + int sc_ecx; + int sc_eax; + int sc_gs; + int sc_fs; + int sc_trapno; + int sc_err; +}; +#endif + /* * Signal frames, arguments passed to application signal handlers. */ @@ -156,6 +182,23 @@ struct ia32_siginfo sf_si; /* = *sf_siginfo (SA_SIGINFO case) */ }; +#ifdef COMPAT_FREEBSD3 +struct ia32_siginfo3 { + struct ia32_sigcontext3 si_sc; + int si_signo; + int si_code; + union ia32_sigval si_value; +}; +struct ia32_sigframe3 { + int sf_signum; + u_int32_t sf_arg2; /* int or siginfo_t */ + u_int32_t sf_scp; + u_int32_t sf_addr; + u_int32_t sf_ah; /* action/handler pointer */ + struct ia32_siginfo3 sf_siginfo; +}; +#endif + extern char ia32_sigcode[]; extern char freebsd4_ia32_sigcode[]; extern int sz_ia32_sigcode; ==== //depot/projects/power/sys/compat/ndis/hal_var.h#3 (text+ko) ==== @@ -29,7 +29,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * - * $FreeBSD: src/sys/compat/ndis/hal_var.h,v 1.2 2004/01/15 21:31:48 wpaul Exp $ + * $FreeBSD: src/sys/compat/ndis/hal_var.h,v 1.3 2004/04/14 07:48:02 wpaul Exp $ */ #ifndef _HAL_VAR_H_ @@ -45,4 +45,12 @@ extern image_patch_table hal_functbl[]; +__BEGIN_DECLS +__stdcall extern uint8_t hal_lock(/*kspin_lock * */void); +__stdcall extern void hal_unlock(/*kspin_lock *, uint8_t*/void); +__stdcall extern uint8_t hal_raise_irql(/*uint8_t*/ void); +__stdcall extern void hal_lower_irql(/*uint8_t*/ void); +__stdcall extern uint8_t hal_irql(void); +__END_DECLS + #endif /* _HAL_VAR_H_ */ ==== //depot/projects/power/sys/compat/ndis/kern_ndis.c#8 (text+ko) ==== @@ -31,7 +31,7 @@ */ #include -__FBSDID("$FreeBSD: src/sys/compat/ndis/kern_ndis.c,v 1.50 2004/04/07 17:02:55 wpaul Exp $"); +__FBSDID("$FreeBSD: src/sys/compat/ndis/kern_ndis.c,v 1.52 2004/04/16 00:04:28 wpaul Exp $"); #include #include @@ -106,9 +106,8 @@ static int ndis_shrink_thrqueue(int); static void ndis_runq(void *); -extern struct mtx_pool *ndis_mtxpool; static uma_zone_t ndis_packet_zone, ndis_buffer_zone; -struct mtx *ndis_thr_mtx; +struct mtx ndis_thr_mtx; static STAILQ_HEAD(ndisqhead, ndis_req) ndis_ttodo; struct ndisqhead ndis_itodo; struct ndisqhead ndis_free; @@ -207,23 +206,25 @@ p = arg; while (1) { - kthread_suspend(p->np_p, 0); + + /* Sleep, but preserve our original priority. */ + ndis_thsuspend(p->np_p, 0); /* Look for any jobs on the work queue. */ - mtx_pool_lock(ndis_mtxpool, ndis_thr_mtx); + mtx_lock(&ndis_thr_mtx); p->np_state = NDIS_PSTATE_RUNNING; while(STAILQ_FIRST(p->np_q) != NULL) { r = STAILQ_FIRST(p->np_q); STAILQ_REMOVE_HEAD(p->np_q, link); - mtx_pool_unlock(ndis_mtxpool, ndis_thr_mtx); + mtx_unlock(&ndis_thr_mtx); /* Do the work. */ if (r->nr_func != NULL) (*r->nr_func)(r->nr_arg); - mtx_pool_lock(ndis_mtxpool, ndis_thr_mtx); + mtx_lock(&ndis_thr_mtx); STAILQ_INSERT_HEAD(&ndis_free, r, link); /* Check for a shutdown request */ @@ -232,7 +233,7 @@ >>> TRUNCATED FOR MAIL (1000 lines) <<<