Date: Fri, 27 Jul 2007 20:27:38 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 124208 for review Message-ID: <200707272027.l6RKRce8061585@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=124208 Change 124208 by zec@zec_tca51 on 2007/07/27 20:27:25 IFC @ 124205 Affected files ... .. //depot/projects/vimage/src/sys/amd64/amd64/cpu_switch.S#5 integrate .. //depot/projects/vimage/src/sys/amd64/amd64/trap.c#5 integrate .. //depot/projects/vimage/src/sys/amd64/isa/clock.c#5 integrate .. //depot/projects/vimage/src/sys/arm/arm/busdma_machdep.c#6 integrate .. //depot/projects/vimage/src/sys/arm/arm/cpufunc.c#3 integrate .. //depot/projects/vimage/src/sys/arm/arm/cpufunc_asm_xscale_c3.S#1 branch .. //depot/projects/vimage/src/sys/arm/arm/elf_trampoline.c#3 integrate .. //depot/projects/vimage/src/sys/arm/arm/identcpu.c#2 integrate .. //depot/projects/vimage/src/sys/arm/arm/intr.c#4 integrate .. //depot/projects/vimage/src/sys/arm/arm/pmap.c#6 integrate .. //depot/projects/vimage/src/sys/arm/arm/vm_machdep.c#4 integrate .. //depot/projects/vimage/src/sys/arm/conf/CRB#1 branch .. //depot/projects/vimage/src/sys/arm/include/armreg.h#2 integrate .. //depot/projects/vimage/src/sys/arm/include/cpufunc.h#3 integrate .. //depot/projects/vimage/src/sys/arm/include/pmap.h#5 integrate .. //depot/projects/vimage/src/sys/arm/include/pte.h#3 integrate .. //depot/projects/vimage/src/sys/arm/xscale/i80321/i80321_pci.c#3 integrate .. //depot/projects/vimage/src/sys/arm/xscale/i80321/i80321_timer.c#3 integrate .. //depot/projects/vimage/src/sys/arm/xscale/i80321/i80321_wdog.c#4 integrate .. //depot/projects/vimage/src/sys/arm/xscale/i80321/i80321var.h#2 integrate .. //depot/projects/vimage/src/sys/arm/xscale/i80321/obio.c#2 integrate .. //depot/projects/vimage/src/sys/arm/xscale/i8134x/crb_machdep.c#1 branch .. //depot/projects/vimage/src/sys/arm/xscale/i8134x/files.crb#1 branch .. //depot/projects/vimage/src/sys/arm/xscale/i8134x/files.i81342#1 branch .. //depot/projects/vimage/src/sys/arm/xscale/i8134x/i81342.c#1 branch .. //depot/projects/vimage/src/sys/arm/xscale/i8134x/i81342_mcu.c#1 branch .. //depot/projects/vimage/src/sys/arm/xscale/i8134x/i81342_pci.c#1 branch .. //depot/projects/vimage/src/sys/arm/xscale/i8134x/i81342_space.c#1 branch .. //depot/projects/vimage/src/sys/arm/xscale/i8134x/i81342reg.h#1 branch .. //depot/projects/vimage/src/sys/arm/xscale/i8134x/i81342var.h#1 branch .. //depot/projects/vimage/src/sys/arm/xscale/i8134x/obio.c#1 branch .. //depot/projects/vimage/src/sys/arm/xscale/i8134x/obio_space.c#1 branch .. //depot/projects/vimage/src/sys/arm/xscale/i8134x/obiovar.h#1 branch .. //depot/projects/vimage/src/sys/arm/xscale/i8134x/std.crb#1 branch .. //depot/projects/vimage/src/sys/arm/xscale/i8134x/std.i81342#1 branch .. //depot/projects/vimage/src/sys/arm/xscale/i8134x/uart_bus_i81342.c#1 branch .. //depot/projects/vimage/src/sys/arm/xscale/i8134x/uart_cpu_i81342.c#1 branch .. //depot/projects/vimage/src/sys/bsm/audit.h#4 integrate .. //depot/projects/vimage/src/sys/bsm/audit_internal.h#4 integrate .. //depot/projects/vimage/src/sys/bsm/audit_kevents.h#4 integrate .. //depot/projects/vimage/src/sys/bsm/audit_record.h#4 integrate .. //depot/projects/vimage/src/sys/cam/scsi/scsi_cd.c#5 integrate .. //depot/projects/vimage/src/sys/compat/ndis/subr_ntoskrnl.c#4 integrate .. //depot/projects/vimage/src/sys/conf/Makefile.arm#3 integrate .. //depot/projects/vimage/src/sys/conf/NOTES#13 integrate .. //depot/projects/vimage/src/sys/conf/files#15 integrate .. //depot/projects/vimage/src/sys/conf/options#15 integrate .. //depot/projects/vimage/src/sys/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c#6 integrate .. //depot/projects/vimage/src/sys/dev/acpica/acpi_hpet.c#5 integrate .. //depot/projects/vimage/src/sys/dev/ath/ath_rate/amrr/amrr.c#4 integrate .. //depot/projects/vimage/src/sys/dev/ath/ath_rate/onoe/onoe.c#4 integrate .. //depot/projects/vimage/src/sys/dev/ce/if_ce.c#4 integrate .. //depot/projects/vimage/src/sys/dev/cp/if_cp.c#4 integrate .. //depot/projects/vimage/src/sys/dev/ctau/if_ct.c#4 integrate .. //depot/projects/vimage/src/sys/dev/cx/if_cx.c#4 integrate .. //depot/projects/vimage/src/sys/dev/cxgb/common/cxgb_common.h#3 integrate .. //depot/projects/vimage/src/sys/dev/cxgb/common/cxgb_ctl_defs.h#2 integrate .. //depot/projects/vimage/src/sys/dev/cxgb/common/cxgb_mc5.c#3 integrate .. //depot/projects/vimage/src/sys/dev/cxgb/common/cxgb_t3_cpl.h#3 integrate .. //depot/projects/vimage/src/sys/dev/cxgb/common/cxgb_t3_hw.c#3 integrate .. //depot/projects/vimage/src/sys/dev/cxgb/common/cxgb_vsc7323.c#2 integrate .. //depot/projects/vimage/src/sys/dev/cxgb/common/cxgb_xgmac.c#3 integrate .. //depot/projects/vimage/src/sys/dev/cxgb/cxgb_adapter.h#5 integrate .. //depot/projects/vimage/src/sys/dev/cxgb/cxgb_ioctl.h#3 integrate .. //depot/projects/vimage/src/sys/dev/cxgb/cxgb_main.c#6 integrate .. //depot/projects/vimage/src/sys/dev/cxgb/cxgb_offload.c#2 integrate .. //depot/projects/vimage/src/sys/dev/cxgb/cxgb_offload.h#2 integrate .. //depot/projects/vimage/src/sys/dev/cxgb/cxgb_osdep.h#4 integrate .. //depot/projects/vimage/src/sys/dev/cxgb/cxgb_sge.c#6 integrate .. //depot/projects/vimage/src/sys/dev/cxgb/sys/mvec.h#3 integrate .. //depot/projects/vimage/src/sys/dev/cxgb/t3b_protocol_sram-1.1.0.bin.gz.uu#1 branch .. //depot/projects/vimage/src/sys/dev/cxgb/t3b_tp_eeprom-1.1.0.bin.gz.uu#1 branch .. //depot/projects/vimage/src/sys/dev/cxgb/t3fw-4.1.0.bin.gz.uu#2 delete .. //depot/projects/vimage/src/sys/dev/cxgb/t3fw-4.5.0.bin.gz.uu#1 branch .. //depot/projects/vimage/src/sys/dev/em/if_em.c#6 integrate .. //depot/projects/vimage/src/sys/dev/firewire/firewire.c#7 integrate .. //depot/projects/vimage/src/sys/dev/firewire/firewirereg.h#6 integrate .. //depot/projects/vimage/src/sys/dev/if_ndis/if_ndis.c#6 integrate .. //depot/projects/vimage/src/sys/dev/ipmi/ipmi_isa.c#2 integrate .. //depot/projects/vimage/src/sys/dev/iscsi/initiator/isc_cam.c#1 branch .. //depot/projects/vimage/src/sys/dev/iscsi/initiator/isc_sm.c#1 branch .. //depot/projects/vimage/src/sys/dev/iscsi/initiator/isc_soc.c#1 branch .. //depot/projects/vimage/src/sys/dev/iscsi/initiator/isc_subr.c#1 branch .. //depot/projects/vimage/src/sys/dev/iscsi/initiator/iscsi.c#1 branch .. //depot/projects/vimage/src/sys/dev/iscsi/initiator/iscsi.h#1 branch .. //depot/projects/vimage/src/sys/dev/iscsi/initiator/iscsi_subr.c#1 branch .. //depot/projects/vimage/src/sys/dev/iscsi/initiator/iscsivar.h#1 branch .. //depot/projects/vimage/src/sys/dev/msk/if_msk.c#8 integrate .. //depot/projects/vimage/src/sys/dev/mxge/eth_z8e.dat.gz.uu#6 delete .. //depot/projects/vimage/src/sys/dev/mxge/eth_z8e.h#1 branch .. //depot/projects/vimage/src/sys/dev/mxge/ethp_z8e.dat.gz.uu#6 delete .. //depot/projects/vimage/src/sys/dev/mxge/ethp_z8e.h#1 branch .. //depot/projects/vimage/src/sys/dev/mxge/if_mxge.c#7 integrate .. //depot/projects/vimage/src/sys/dev/mxge/mxge_eth_z8e.c#1 branch .. //depot/projects/vimage/src/sys/dev/mxge/mxge_ethp_z8e.c#1 branch .. //depot/projects/vimage/src/sys/dev/nfe/if_nfe.c#4 integrate .. //depot/projects/vimage/src/sys/dev/nfe/if_nfevar.h#3 integrate .. //depot/projects/vimage/src/sys/dev/ral/rt2560.c#8 integrate .. //depot/projects/vimage/src/sys/dev/ral/rt2661.c#7 integrate .. //depot/projects/vimage/src/sys/dev/re/if_re.c#9 integrate .. //depot/projects/vimage/src/sys/dev/sym/sym_hipd.c#7 integrate .. //depot/projects/vimage/src/sys/dev/usb/if_udav.c#5 integrate .. //depot/projects/vimage/src/sys/dev/usb/if_ural.c#8 integrate .. //depot/projects/vimage/src/sys/dev/usb/ufoma.c#5 integrate .. //depot/projects/vimage/src/sys/dev/usb/ukbd.c#5 integrate .. //depot/projects/vimage/src/sys/dev/usb/ums.c#6 integrate .. //depot/projects/vimage/src/sys/dev/usb/usb_quirks.c#5 integrate .. //depot/projects/vimage/src/sys/dev/usb/usbdevs#10 integrate .. //depot/projects/vimage/src/sys/fs/coda/coda_vfsops.c#2 integrate .. //depot/projects/vimage/src/sys/fs/coda/coda_vnops.c#2 integrate .. //depot/projects/vimage/src/sys/fs/devfs/devfs_vnops.c#7 integrate .. //depot/projects/vimage/src/sys/fs/fifofs/fifo_vnops.c#5 integrate .. //depot/projects/vimage/src/sys/fs/msdosfs/msdosfs_fat.c#5 integrate .. //depot/projects/vimage/src/sys/fs/msdosfs/msdosfs_vfsops.c#7 integrate .. //depot/projects/vimage/src/sys/fs/msdosfs/msdosfs_vnops.c#5 integrate .. //depot/projects/vimage/src/sys/fs/tmpfs/tmpfs_vfsops.c#4 integrate .. //depot/projects/vimage/src/sys/fs/tmpfs/tmpfs_vnops.c#4 integrate .. //depot/projects/vimage/src/sys/i386/i386/genassym.c#4 integrate .. //depot/projects/vimage/src/sys/i386/i386/swtch.s#4 integrate .. //depot/projects/vimage/src/sys/i386/i386/trap.c#6 integrate .. //depot/projects/vimage/src/sys/i386/isa/clock.c#5 integrate .. //depot/projects/vimage/src/sys/i386/linux/linux_machdep.c#8 integrate .. //depot/projects/vimage/src/sys/ia64/ia64/clock.c#2 integrate .. //depot/projects/vimage/src/sys/ia64/ia64/syscall.S#2 integrate .. //depot/projects/vimage/src/sys/kern/kern_kse.c#8 integrate .. //depot/projects/vimage/src/sys/kern/kern_mutex.c#8 integrate .. //depot/projects/vimage/src/sys/kern/kern_resource.c#9 integrate .. //depot/projects/vimage/src/sys/kern/kern_rwlock.c#7 integrate .. //depot/projects/vimage/src/sys/kern/kern_sig.c#6 integrate .. //depot/projects/vimage/src/sys/kern/kern_switch.c#6 integrate .. //depot/projects/vimage/src/sys/kern/kern_thread.c#8 integrate .. //depot/projects/vimage/src/sys/kern/sched_4bsd.c#7 integrate .. //depot/projects/vimage/src/sys/kern/sched_ule.c#8 integrate .. //depot/projects/vimage/src/sys/kern/subr_bus.c#4 integrate .. //depot/projects/vimage/src/sys/kern/subr_clock.c#2 integrate .. //depot/projects/vimage/src/sys/kern/tty.c#9 integrate .. //depot/projects/vimage/src/sys/kern/uipc_domain.c#7 integrate .. //depot/projects/vimage/src/sys/kern/uipc_usrreq.c#10 integrate .. //depot/projects/vimage/src/sys/kern/vfs_mount.c#8 integrate .. //depot/projects/vimage/src/sys/kern/vfs_vnops.c#5 integrate .. //depot/projects/vimage/src/sys/modules/Makefile#10 integrate .. //depot/projects/vimage/src/sys/modules/cxgb/Makefile#4 integrate .. //depot/projects/vimage/src/sys/modules/iscsi/Makefile#1 branch .. //depot/projects/vimage/src/sys/modules/iscsi/initiator/Makefile#1 branch .. //depot/projects/vimage/src/sys/modules/mxge/mxge_eth_z8e/Makefile#2 integrate .. //depot/projects/vimage/src/sys/modules/mxge/mxge_ethp_z8e/Makefile#2 integrate .. //depot/projects/vimage/src/sys/net/if.c#16 integrate .. //depot/projects/vimage/src/sys/net/if_bridge.c#5 integrate .. //depot/projects/vimage/src/sys/net/if_bridgevar.h#4 integrate .. //depot/projects/vimage/src/sys/net/if_ethersubr.c#13 integrate .. //depot/projects/vimage/src/sys/net/if_lagg.c#7 integrate .. //depot/projects/vimage/src/sys/net/netisr.c#4 integrate .. //depot/projects/vimage/src/sys/net80211/ieee80211_scan_sta.c#4 integrate .. //depot/projects/vimage/src/sys/netgraph/ng_bpf.c#2 integrate .. //depot/projects/vimage/src/sys/netgraph/ng_eiface.c#5 integrate .. //depot/projects/vimage/src/sys/netinet/icmp_var.h#3 integrate .. //depot/projects/vimage/src/sys/netinet/ip_icmp.c#8 integrate .. //depot/projects/vimage/src/sys/netinet/sctp.h#8 integrate .. //depot/projects/vimage/src/sys/netinet/sctp_asconf.c#11 integrate .. //depot/projects/vimage/src/sys/netinet/sctp_asconf.h#7 integrate .. //depot/projects/vimage/src/sys/netinet/sctp_cc_functions.c#2 integrate .. //depot/projects/vimage/src/sys/netinet/sctp_constants.h#12 integrate .. //depot/projects/vimage/src/sys/netinet/sctp_indata.c#15 integrate .. //depot/projects/vimage/src/sys/netinet/sctp_input.c#15 integrate .. //depot/projects/vimage/src/sys/netinet/sctp_os_bsd.h#12 integrate .. //depot/projects/vimage/src/sys/netinet/sctp_output.c#15 integrate .. //depot/projects/vimage/src/sys/netinet/sctp_pcb.c#15 integrate .. //depot/projects/vimage/src/sys/netinet/sctp_pcb.h#11 integrate .. //depot/projects/vimage/src/sys/netinet/sctp_peeloff.c#9 integrate .. //depot/projects/vimage/src/sys/netinet/sctp_structs.h#12 integrate .. //depot/projects/vimage/src/sys/netinet/sctp_timer.c#11 integrate .. //depot/projects/vimage/src/sys/netinet/sctp_usrreq.c#15 integrate .. //depot/projects/vimage/src/sys/netinet/sctp_var.h#10 integrate .. //depot/projects/vimage/src/sys/netinet/sctputil.c#15 integrate .. //depot/projects/vimage/src/sys/netinet/sctputil.h#10 integrate .. //depot/projects/vimage/src/sys/netinet/tcp_input.c#19 integrate .. //depot/projects/vimage/src/sys/netinet/tcp_subr.c#22 integrate .. //depot/projects/vimage/src/sys/netinet/tcp_syncache.c#14 integrate .. //depot/projects/vimage/src/sys/netinet/tcp_var.h#13 integrate .. //depot/projects/vimage/src/sys/netinet6/in6.h#6 integrate .. //depot/projects/vimage/src/sys/netinet6/sctp6_usrreq.c#15 integrate .. //depot/projects/vimage/src/sys/netinet6/udp6_output.c#8 delete .. //depot/projects/vimage/src/sys/netinet6/udp6_usrreq.c#14 integrate .. //depot/projects/vimage/src/sys/netinet6/udp6_var.h#3 integrate .. //depot/projects/vimage/src/sys/netipsec/ipsec_input.c#8 integrate .. //depot/projects/vimage/src/sys/netipsec/ipsec_output.c#9 integrate .. //depot/projects/vimage/src/sys/netipsec/xform_ipip.c#8 integrate .. //depot/projects/vimage/src/sys/nfsserver/nfs_srvsubs.c#4 integrate .. //depot/projects/vimage/src/sys/nfsserver/nfs_syscalls.c#5 integrate .. //depot/projects/vimage/src/sys/pc98/cbus/clock.c#4 integrate .. //depot/projects/vimage/src/sys/pci/if_rl.c#6 integrate .. //depot/projects/vimage/src/sys/pci/if_rlreg.h#6 integrate .. //depot/projects/vimage/src/sys/security/mac_mls/mac_mls.c#5 integrate .. //depot/projects/vimage/src/sys/sparc64/sparc64/eeprom.c#3 integrate .. //depot/projects/vimage/src/sys/sparc64/sparc64/pmap.c#4 integrate .. //depot/projects/vimage/src/sys/sparc64/sparc64/rtc.c#3 integrate .. //depot/projects/vimage/src/sys/sys/kernel.h#7 integrate .. //depot/projects/vimage/src/sys/sys/mutex.h#6 integrate .. //depot/projects/vimage/src/sys/sys/proc.h#12 integrate .. //depot/projects/vimage/src/sys/sys/rwlock.h#5 integrate .. //depot/projects/vimage/src/sys/sys/vmmeter.h#4 integrate .. //depot/projects/vimage/src/sys/vm/vm_fault.c#7 integrate .. //depot/projects/vimage/src/sys/vm/vm_meter.c#5 integrate .. //depot/projects/vimage/src/sys/vm/vm_page.c#8 integrate .. //depot/projects/vimage/src/sys/vm/vnode_pager.c#4 integrate Differences ... ==== //depot/projects/vimage/src/sys/amd64/amd64/cpu_switch.S#5 (text+ko) ==== @@ -30,13 +30,14 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $FreeBSD: src/sys/amd64/amd64/cpu_switch.S,v 1.158 2007/06/06 07:35:07 davidxu Exp $ + * $FreeBSD: src/sys/amd64/amd64/cpu_switch.S,v 1.159 2007/07/17 22:36:56 jeff Exp $ */ #include <machine/asmacros.h> #include <machine/specialreg.h> #include "assym.s" +#include "opt_sched.h" /*****************************************************************************/ /* Scheduling */ @@ -50,6 +51,12 @@ #define LK #endif +#if defined(SCHED_ULE) && defined(SMP) +#define SETLK xchgq +#else +#define SETLK movq +#endif + /* * cpu_throw() * @@ -148,13 +155,7 @@ movq %cr3,%rax cmpq %rcx,%rax /* Same address space? */ jne swinact - movq %rdx, TD_LOCK(%rdi) /* Release the old thread */ - /* Wait for the new thread to become unblocked */ - movq $blocked_lock, %rdx -1: - movq TD_LOCK(%rsi),%rcx - cmpq %rcx, %rdx - je 1b + SETLK %rdx, TD_LOCK(%rdi) /* Release the old thread */ jmp sw1 swinact: movq %rcx,%cr3 /* new address space */ @@ -163,21 +164,24 @@ movq TD_PROC(%rdi), %rcx /* oldproc */ movq P_VMSPACE(%rcx), %rcx LK btrl %eax, VM_PMAP+PM_ACTIVE(%rcx) /* clear old */ - movq %rdx, TD_LOCK(%rdi) /* Release the old thread */ + SETLK %rdx, TD_LOCK(%rdi) /* Release the old thread */ swact: + /* Set bit in new pmap->pm_active */ + movq TD_PROC(%rsi),%rdx /* newproc */ + movq P_VMSPACE(%rdx), %rdx + LK btsl %eax, VM_PMAP+PM_ACTIVE(%rdx) /* set new */ + +sw1: +#if defined(SCHED_ULE) && defined(SMP) /* Wait for the new thread to become unblocked */ movq $blocked_lock, %rdx 1: movq TD_LOCK(%rsi),%rcx cmpq %rcx, %rdx + pause je 1b - - /* Set bit in new pmap->pm_active */ - movq TD_PROC(%rsi),%rdx /* newproc */ - movq P_VMSPACE(%rdx), %rdx - LK btsl %eax, VM_PMAP+PM_ACTIVE(%rdx) /* set new */ - -sw1: + lfence +#endif /* * At this point, we've switched address spaces and are ready * to load up the rest of the next context. ==== //depot/projects/vimage/src/sys/amd64/amd64/trap.c#5 (text+ko) ==== @@ -38,7 +38,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/amd64/amd64/trap.c,v 1.318 2007/06/10 21:59:12 attilio Exp $"); +__FBSDID("$FreeBSD: src/sys/amd64/amd64/trap.c,v 1.319 2007/07/26 15:32:54 jhb Exp $"); /* * AMD64 Trap and System call handling @@ -159,7 +159,8 @@ { struct thread *td = curthread; struct proc *p = td->td_proc; - int i = 0, ucode = 0, type, code; + int i = 0, ucode = 0, code; + u_int type; register_t addr = 0; ksiginfo_t ksi; @@ -622,7 +623,8 @@ struct trapframe *frame; vm_offset_t eva; { - int code, type, ss; + int code, ss; + u_int type; long esp; struct soft_segment_descriptor softseg; char *msg; ==== //depot/projects/vimage/src/sys/amd64/isa/clock.c#5 (text+ko) ==== @@ -33,7 +33,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/amd64/isa/clock.c,v 1.232 2007/06/15 22:58:14 peter Exp $"); +__FBSDID("$FreeBSD: src/sys/amd64/isa/clock.c,v 1.233 2007/07/23 09:42:30 dwmalone Exp $"); /* * Routines to handle clock hardware. @@ -686,8 +686,7 @@ return; wrong_time: - printf("Invalid time in real time clock.\n"); - printf("Check and reset the date immediately!\n"); + printf("Invalid time in clock: check and reset the date!\n"); } /* ==== //depot/projects/vimage/src/sys/arm/arm/busdma_machdep.c#6 (text+ko) ==== @@ -29,7 +29,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/arm/arm/busdma_machdep.c,v 1.33 2007/06/10 12:33:01 cognet Exp $"); +__FBSDID("$FreeBSD: src/sys/arm/arm/busdma_machdep.c,v 1.34 2007/07/27 14:46:43 cognet Exp $"); /* * ARM bus dma support routines @@ -763,8 +763,12 @@ if (__predict_true(pmap == pmap_kernel())) { (void) pmap_get_pde_pte(pmap, vaddr, &pde, &ptep); if (__predict_false(pmap_pde_section(pde))) { - curaddr = (*pde & L1_S_FRAME) | - (vaddr & L1_S_OFFSET); + if (*pde & L1_S_SUPERSEC) + curaddr = (*pde & L1_SUP_FRAME) | + (vaddr & L1_SUP_OFFSET); + else + curaddr = (*pde & L1_S_FRAME) | + (vaddr & L1_S_OFFSET); if (*pde & L1_S_CACHE_MASK) { map->flags &= ~DMAMAP_COHERENT; @@ -1087,36 +1091,36 @@ { char _tmp_cl[arm_dcache_align], _tmp_clend[arm_dcache_align]; - if (op & BUS_DMASYNC_PREWRITE) + if (op & BUS_DMASYNC_PREWRITE) { cpu_dcache_wb_range((vm_offset_t)buf, len); + cpu_l2cache_wb_range((vm_offset_t)buf, len); + } + if (op & BUS_DMASYNC_PREREAD) { + cpu_idcache_wbinv_range((vm_offset_t)buf, len); + cpu_l2cache_wbinv_range((vm_offset_t)buf, len); + } if (op & BUS_DMASYNC_POSTREAD) { - if ((vm_offset_t)buf & arm_dcache_align_mask) + if ((vm_offset_t)buf & arm_dcache_align_mask) { memcpy(_tmp_cl, (void *)((vm_offset_t)buf & ~ arm_dcache_align_mask), - (vm_offset_t)buf - ((vm_offset_t)buf &~ - arm_dcache_align_mask)); - if (((vm_offset_t)buf + len) & arm_dcache_align_mask) - memcpy(_tmp_cl, (void *)((vm_offset_t)buf & ~ - arm_dcache_align_mask), - (vm_offset_t)buf - ((vm_offset_t)buf &~ - arm_dcache_align_mask)); - if (((vm_offset_t)buf + len) & arm_dcache_align_mask) - memcpy(_tmp_clend, (void *)(((vm_offset_t)buf + len) & ~ - arm_dcache_align_mask), - (vm_offset_t)buf +len - (((vm_offset_t)buf + len) &~ - arm_dcache_align_mask)); + (vm_offset_t)buf & arm_dcache_align_mask); + } + if (((vm_offset_t)buf + len) & arm_dcache_align_mask) { + memcpy(_tmp_clend, (void *)((vm_offset_t)buf + len), + arm_dcache_align - (((vm_offset_t)(buf) + len) & + arm_dcache_align_mask)); + } cpu_dcache_inv_range((vm_offset_t)buf, len); + cpu_l2cache_inv_range((vm_offset_t)buf, len); + if ((vm_offset_t)buf & arm_dcache_align_mask) memcpy((void *)((vm_offset_t)buf & - ~arm_dcache_align_mask), - _tmp_cl, - (vm_offset_t)buf - ((vm_offset_t)buf &~ - arm_dcache_align_mask)); + ~arm_dcache_align_mask), _tmp_cl, + (vm_offset_t)buf & arm_dcache_align_mask); if (((vm_offset_t)buf + len) & arm_dcache_align_mask) - memcpy((void *)(((vm_offset_t)buf + len) & ~ - arm_dcache_align_mask), _tmp_clend, - (vm_offset_t)buf +len - (((vm_offset_t)buf + len) &~ - arm_dcache_align_mask)); + memcpy((void *)((vm_offset_t)buf + len), _tmp_clend, + arm_dcache_align - (((vm_offset_t)(buf) + len) & + arm_dcache_align_mask)); } } @@ -1131,14 +1135,20 @@ (void *)(bpage->vaddr_nocache != 0 ? bpage->vaddr_nocache : bpage->vaddr), bpage->datacount); - if (bpage->vaddr_nocache == 0) + if (bpage->vaddr_nocache == 0) { cpu_dcache_wb_range(bpage->vaddr, bpage->datacount); + cpu_l2cache_wb_range(bpage->vaddr, + bpage->datacount); + } } if (op & BUS_DMASYNC_POSTREAD) { - if (bpage->vaddr_nocache == 0) + if (bpage->vaddr_nocache == 0) { cpu_dcache_inv_range(bpage->vaddr, bpage->datacount); + cpu_l2cache_inv_range(bpage->vaddr, + bpage->datacount); + } bcopy((void *)(bpage->vaddr_nocache != 0 ? bpage->vaddr_nocache : bpage->vaddr), (void *)bpage->datavaddr, bpage->datacount); @@ -1175,10 +1185,6 @@ _bus_dmamap_sync_bp(dmat, map, op); if (map->flags & DMAMAP_COHERENT) return; - if ((op && BUS_DMASYNC_POSTREAD) && (map->len >= 2 * PAGE_SIZE)) { - cpu_dcache_wbinv_all(); - return; - } CTR3(KTR_BUSDMA, "%s: op %x flags %x", __func__, op, map->flags); switch(map->flags & DMAMAP_TYPE_MASK) { case DMAMAP_LINEAR: ==== //depot/projects/vimage/src/sys/arm/arm/cpufunc.c#3 (text+ko) ==== @@ -45,7 +45,7 @@ * Created : 30/01/97 */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/arm/arm/cpufunc.c,v 1.16 2007/02/11 22:24:54 cognet Exp $"); +__FBSDID("$FreeBSD: src/sys/arm/arm/cpufunc.c,v 1.17 2007/07/27 14:39:41 cognet Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -147,6 +147,10 @@ arm7tdmi_cache_flushID, /* idcache_wbinv_all */ (void *)arm7tdmi_cache_flushID, /* idcache_wbinv_range */ + cpufunc_nullop, /* l2cache_wbinv_all */ + cpufunc_nullop, /* l2cache_wbinv_range */ + cpufunc_nullop, /* l2cache_inv_range */ + cpufunc_nullop, /* l2cache_wb_range */ /* Other functions */ @@ -205,6 +209,10 @@ arm8_cache_purgeID, /* idcache_wbinv_all */ (void *)arm8_cache_purgeID, /* idcache_wbinv_range */ + cpufunc_nullop, /* l2cache_wbinv_all */ + cpufunc_nullop, /* l2cache_wbinv_range */ + cpufunc_nullop, /* l2cache_inv_range */ + cpufunc_nullop, /* l2cache_wb_range */ /* Other functions */ @@ -262,6 +270,10 @@ arm9_idcache_wbinv_all, /* idcache_wbinv_all */ arm9_idcache_wbinv_range, /* idcache_wbinv_range */ + cpufunc_nullop, /* l2cache_wbinv_all */ + cpufunc_nullop, /* l2cache_wbinv_range */ + cpufunc_nullop, /* l2cache_inv_range */ + cpufunc_nullop, /* l2cache_wb_range */ /* Other functions */ @@ -320,6 +332,10 @@ arm10_idcache_wbinv_all, /* idcache_wbinv_all */ arm10_idcache_wbinv_range, /* idcache_wbinv_range */ + cpufunc_nullop, /* l2cache_wbinv_all */ + cpufunc_nullop, /* l2cache_wbinv_range */ + cpufunc_nullop, /* l2cache_inv_range */ + cpufunc_nullop, /* l2cache_wb_range */ /* Other functions */ @@ -378,6 +394,10 @@ sa1_cache_purgeID, /* idcache_wbinv_all */ sa1_cache_purgeID_rng, /* idcache_wbinv_range */ + cpufunc_nullop, /* l2cache_wbinv_all */ + cpufunc_nullop, /* l2cache_wbinv_range */ + cpufunc_nullop, /* l2cache_inv_range */ + cpufunc_nullop, /* l2cache_wb_range */ /* Other functions */ @@ -435,6 +455,10 @@ sa1_cache_purgeID, /* idcache_wbinv_all */ sa1_cache_purgeID_rng, /* idcache_wbinv_range */ + cpufunc_nullop, /* l2cache_wbinv_all */ + cpufunc_nullop, /* l2cache_wbinv_range */ + cpufunc_nullop, /* l2cache_inv_range */ + cpufunc_nullop, /* l2cache_wb_range */ /* Other functions */ @@ -492,6 +516,10 @@ sa1_cache_purgeID, /* idcache_wbinv_all */ sa1_cache_purgeID_rng, /* idcache_wbinv_range */ + cpufunc_nullop, /* l2cache_wbinv_all */ + cpufunc_nullop, /* l2cache_wbinv_range */ + cpufunc_nullop, /* l2cache_inv_range */ + cpufunc_nullop, /* l2cache_wb_range */ /* Other functions */ @@ -552,6 +580,10 @@ xscale_cache_purgeID, /* idcache_wbinv_all */ xscale_cache_purgeID_rng, /* idcache_wbinv_range */ + cpufunc_nullop, /* l2cache_wbinv_all */ + cpufunc_nullop, /* l2cache_wbinv_range */ + cpufunc_nullop, /* l2cache_inv_range */ + cpufunc_nullop, /* l2cache_wb_range */ /* Other functions */ @@ -602,15 +634,19 @@ /* Cache operations */ xscalec3_cache_syncI, /* icache_sync_all */ - xscale_cache_syncI_rng, /* icache_sync_range */ + xscalec3_cache_syncI_rng, /* icache_sync_range */ xscalec3_cache_purgeD, /* dcache_wbinv_all */ xscalec3_cache_purgeD_rng, /* dcache_wbinv_range */ xscale_cache_flushD_rng, /* dcache_inv_range */ xscalec3_cache_cleanD_rng, /* dcache_wb_range */ - xscalec3_cache_purgeID, /* idcache_wbinv_all */ + xscalec3_cache_purgeID, /* idcache_wbinv_all */ xscalec3_cache_purgeID_rng, /* idcache_wbinv_range */ + xscalec3_l2cache_purge, /* l2cache_wbinv_all */ + xscalec3_l2cache_purge_rng, /* l2cache_wbinv_range */ + xscalec3_l2cache_flush_rng, /* l2cache_inv_range */ + xscalec3_l2cache_clean_rng, /* l2cache_wb_range */ /* Other functions */ @@ -1889,9 +1925,7 @@ xscale_setup(args) char *args; { -#ifndef CPU_XSCALE_CORE3 uint32_t auxctl; -#endif int cpuctrl, cpuctrlmask; /* @@ -1911,7 +1945,8 @@ | CPU_CONTROL_WBUF_ENABLE | CPU_CONTROL_ROM_ENABLE | CPU_CONTROL_BEND_ENABLE | CPU_CONTROL_AFLT_ENABLE | CPU_CONTROL_LABT_ENABLE | CPU_CONTROL_BPRD_ENABLE - | CPU_CONTROL_CPCLK | CPU_CONTROL_VECRELOC; + | CPU_CONTROL_CPCLK | CPU_CONTROL_VECRELOC | \ + CPU_CONTROL_L2_ENABLE; #ifndef ARM32_DISABLE_ALIGNMENT_FAULTS cpuctrl |= CPU_CONTROL_AFLT_ENABLE; @@ -1925,6 +1960,9 @@ if (vector_page == ARM_VECTORS_HIGH) cpuctrl |= CPU_CONTROL_VECRELOC; +#ifdef CPU_XSCALE_CORE3 + cpuctrl |= CPU_CONTROL_L2_ENABLE; +#endif /* Clear out the cache */ cpu_idcache_wbinv_all(); @@ -1937,7 +1975,6 @@ /* cpu_control(cpuctrlmask, cpuctrl);*/ cpu_control(0xffffffff, cpuctrl); -#ifndef CPU_XSCALE_CORE3 /* Make sure write coalescing is turned on */ __asm __volatile("mrc p15, 0, %0, c1, c0, 1" : "=r" (auxctl)); @@ -1946,9 +1983,12 @@ #else auxctl &= ~XSCALE_AUXCTL_K; #endif +#ifdef CPU_XSCALE_CORE3 + auxctl |= XSCALE_AUXCTL_LLR; + auxctl |= XSCALE_AUXCTL_MD_MASK; +#endif __asm __volatile("mcr p15, 0, %0, c1, c0, 1" : : "r" (auxctl)); -#endif } #endif /* CPU_XSCALE_80200 || CPU_XSCALE_80321 || CPU_XSCALE_PXA2X0 || CPU_XSCALE_IXP425 CPU_XSCALE_80219 */ ==== //depot/projects/vimage/src/sys/arm/arm/elf_trampoline.c#3 (text+ko) ==== @@ -23,7 +23,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/arm/arm/elf_trampoline.c,v 1.17 2007/02/19 00:57:27 cognet Exp $"); +__FBSDID("$FreeBSD: src/sys/arm/arm/elf_trampoline.c,v 1.18 2007/07/27 14:42:25 cognet Exp $"); #include <machine/asm.h> #include <sys/param.h> #include <sys/elf32.h> @@ -48,6 +48,7 @@ extern void *_end; void __start(void); +void __startC(void); #define GZ_HEAD 0xa @@ -66,7 +67,14 @@ defined(CPU_XSCALE_PXA2X0) || defined(CPU_XSCALE_IXP425) || \ defined(CPU_XSCALE_80219) #define cpu_idcache_wbinv_all xscale_cache_purgeID +#elif defined(CPU_XSCALE_81342) +#define cpu_idcache_wbinv_all xscalec3_cache_purgeID #endif +#ifdef CPU_XSCALE_81342 +#define cpu_l2cache_wbinv_all xscalec3_l2cache_purge +#else +#define cpu_l2cache_wbinv_all() +#endif int arm_picache_size; @@ -138,7 +146,7 @@ static void arm9_setup(void); void -_start(void) +_startC(void) { int physaddr = KERNPHYSADDR; int tmp1; @@ -207,6 +215,7 @@ arm9_setup(); #endif cpu_idcache_wbinv_all(); + cpu_l2cache_wbinv_all(); #endif __start(); } @@ -520,7 +529,7 @@ extern char func_end[]; -#define PMAP_DOMAIN_KERNEL 15 /* +#define PMAP_DOMAIN_KERNEL 0 /* * Just define it instead of including the * whole VM headers set. */ @@ -595,10 +604,11 @@ kernel = (char *)&_end; altdst = 4 + load_kernel((unsigned int)kernel, (unsigned int)curaddr, - (unsigned int)&func_end , 0); + (unsigned int)&func_end + 800 , 0); if (altdst > dst) dst = altdst; cpu_idcache_wbinv_all(); + cpu_l2cache_wbinv_all(); __asm __volatile("mrc p15, 0, %0, c1, c0, 0\n" "bic %0, %0, #1\n" /* MMU_ENABLE */ "mcr p15, 0, %0, c1, c0, 0\n" @@ -616,7 +626,7 @@ sp = sp &~3; dst = (void *)(sp + 4); memcpy((void *)dst, (void *)&load_kernel, (unsigned int)&func_end - - (unsigned int)&load_kernel); + (unsigned int)&load_kernel + 800); do_call(dst, kernel, dst + (unsigned int)(&func_end) - - (unsigned int)(&load_kernel), sp); + (unsigned int)(&load_kernel) + 800, sp); } ==== //depot/projects/vimage/src/sys/arm/arm/identcpu.c#2 (text+ko) ==== @@ -42,7 +42,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/arm/arm/identcpu.c,v 1.10 2006/11/19 23:45:33 sam Exp $"); +__FBSDID("$FreeBSD: src/sys/arm/arm/identcpu.c,v 1.11 2007/07/27 14:49:11 cognet Exp $"); #include <sys/systm.h> #include <sys/param.h> #include <sys/malloc.h> @@ -374,6 +374,12 @@ printf(" IC disabled"); else printf(" IC enabled"); +#ifdef CPU_XSCALE_81342 + if ((ctrl & CPU_CONTROL_L2_ENABLE) == 0) + printf(" L2 disabled"); + else + printf(" L2 enabled"); +#endif break; default: break; ==== //depot/projects/vimage/src/sys/arm/arm/intr.c#4 (text+ko) ==== @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/arm/arm/intr.c,v 1.16 2007/06/04 21:38:45 attilio Exp $"); +__FBSDID("$FreeBSD: src/sys/arm/arm/intr.c,v 1.17 2007/07/27 14:26:42 cognet Exp $"); #include <sys/param.h> #include <sys/systm.h> #include <sys/syslog.h> @@ -57,6 +57,27 @@ void arm_handler_execute(struct trapframe *, int); +#ifdef INTR_FILTER +static void +intr_disab_eoi_src(void *arg) +{ + uintptr_t nb; + + nb = (uintptr_t)arg; + arm_mask_irq(nb); +} + +static void +intr_eoi_src(void *arg) +{ + uintptr_t nb; + + nb = (uintptr_t)arg; + arm_unmask_irq(nb); +} + +#endif + void arm_setup_irqhandler(const char *name, driver_filter_t *filt, void (*hand)(void*), void *arg, int irq, int flags, void **cookiep) @@ -68,8 +89,14 @@ return; event = intr_events[irq]; if (event == NULL) { +#ifdef INTR_FILTER error = intr_event_create(&event, (void *)irq, 0, + (void (*)(void *))arm_unmask_irq, intr_eoi_src, + intr_disab_eoi_src, "intr%d:", irq); +#else + error = intr_event_create(&event, (void *)irq, 0, (void (*)(void *))arm_unmask_irq, "intr%d:", irq); +#endif if (error) return; intr_events[irq] = event; @@ -102,19 +129,33 @@ arm_handler_execute(struct trapframe *frame, int irqnb) { struct intr_event *event; - struct intr_handler *ih; struct thread *td = curthread; +#ifdef INTR_FILTER + int i; +#else int i, thread, ret; + struct intr_handler *ih; +#endif PCPU_INC(cnt.v_intr); td->td_intr_nesting_level++; while ((i = arm_get_next_irq()) != -1) { +#ifndef INTR_FILTER arm_mask_irq(i); +#endif intrcnt[intrcnt_tab[i]]++; event = intr_events[i]; - if (!event || TAILQ_EMPTY(&event->ie_handlers)) + if (!event || TAILQ_EMPTY(&event->ie_handlers)) { +#ifdef INTR_FILTER + arm_mask_irq(i); +#endif continue; + } +#ifdef INTR_FILTER + intr_event_handle(event, frame); + /* XXX: Log stray IRQs */ +#else /* Execute fast handlers. */ ret = 0; thread = 0; @@ -139,6 +180,7 @@ intr_event_schedule_thread(event); else arm_unmask_irq(i); +#endif } td->td_intr_nesting_level--; } ==== //depot/projects/vimage/src/sys/arm/arm/pmap.c#6 (text+ko) ==== @@ -147,7 +147,7 @@ #include "opt_vm.h" #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/arm/arm/pmap.c,v 1.83 2007/06/11 21:29:26 cognet Exp $"); +__FBSDID("$FreeBSD: src/sys/arm/arm/pmap.c,v 1.84 2007/07/27 14:45:04 cognet Exp $"); #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> @@ -676,8 +676,14 @@ pmap_copy_page_func = pmap_copy_page_generic; pmap_zero_page_func = pmap_zero_page_generic; xscale_use_minidata = 0; - pte_l1_s_cache_mode_pt = pte_l2_l_cache_mode_pt = - pte_l2_s_cache_mode_pt = 0; + /* Make sure it is L2-cachable */ + pte_l1_s_cache_mode |= L1_S_XSCALE_TEX(TEX_XSCALE_T); + pte_l1_s_cache_mode_pt = pte_l1_s_cache_mode &~ L1_S_XSCALE_P; + pte_l2_l_cache_mode |= L2_XSCALE_L_TEX(TEX_XSCALE_T) ; + pte_l2_l_cache_mode_pt = pte_l1_s_cache_mode; + pte_l2_s_cache_mode |= L2_XSCALE_T_TEX(TEX_XSCALE_T); + pte_l2_s_cache_mode_pt = pte_l2_s_cache_mode; + #else pmap_copy_page_func = pmap_copy_page_xscale; pmap_zero_page_func = pmap_zero_page_xscale; @@ -2818,33 +2824,35 @@ * Low level mapping routines..... ***************************************************/ +#ifdef ARM_HAVE_SUPERSECTIONS /* Map a super section into the KVA. */ void pmap_kenter_supersection(vm_offset_t va, uint64_t pa, int flags) { - pd_entry_t pd = L1_S_PROTO | L1_S_SUPERSEC | (pa & L1_SUP_OFFSET) | - (((pa >> 32) & 0x8) << 20) | L1_S_PROT(PTE_KERNEL, + pd_entry_t pd = L1_S_PROTO | L1_S_SUPERSEC | (pa & L1_SUP_FRAME) | + (((pa >> 32) & 0xf) << 20) | L1_S_PROT(PTE_KERNEL, VM_PROT_READ|VM_PROT_WRITE) | L1_S_DOM(PMAP_DOMAIN_KERNEL); struct l1_ttable *l1; - vm_offset_t va_end; + vm_offset_t va0, va_end; KASSERT(((va | pa) & L1_SUP_OFFSET) == 0, - ("Not a valid section mapping")); + ("Not a valid super section mapping")); if (flags & SECTION_CACHE) pd |= pte_l1_s_cache_mode; else if (flags & SECTION_PT) pd |= pte_l1_s_cache_mode_pt; - va = va & L1_SUP_OFFSET; + va0 = va & L1_SUP_FRAME; va_end = va + L1_SUP_SIZE; SLIST_FOREACH(l1, &l1_list, l1_link) { + va = va0; for (; va < va_end; va += L1_S_SIZE) { l1->l1_kva[L1_IDX(va)] = pd; PTE_SYNC(&l1->l1_kva[L1_IDX(va)]); } } - } +#endif /* Map a section into the KVA. */ @@ -3681,7 +3689,11 @@ * These should only happen for pmap_kernel() */ KASSERT(pm == pmap_kernel(), ("huh")); - pa = (l1pd & L1_S_FRAME) | (va & L1_S_OFFSET); + /* XXX: what to do about the bits > 32 ? */ + if (l1pd & L1_S_SUPERSEC) + pa = (l1pd & L1_SUP_FRAME) | (va & L1_SUP_OFFSET); + else + pa = (l1pd & L1_S_FRAME) | (va & L1_S_OFFSET); } else { /* * Note that we can't rely on the validity of the L1 @@ -3744,7 +3756,11 @@ * These should only happen for pmap_kernel() */ KASSERT(pmap == pmap_kernel(), ("huh")); - pa = (l1pd & L1_S_FRAME) | (va & L1_S_OFFSET); + /* XXX: what to do about the bits > 32 ? */ + if (l1pd & L1_S_SUPERSEC) + pa = (l1pd & L1_SUP_FRAME) | (va & L1_SUP_OFFSET); + else + pa = (l1pd & L1_S_FRAME) | (va & L1_S_OFFSET); if (l1pd & L1_S_PROT_W || (prot & VM_PROT_WRITE) == 0) { m = PHYS_TO_VM_PAGE(pa); vm_page_hold(m); ==== //depot/projects/vimage/src/sys/arm/arm/vm_machdep.c#4 (text+ko) ==== @@ -41,7 +41,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/arm/arm/vm_machdep.c,v 1.32 2007/06/04 23:57:29 jeff Exp $"); +__FBSDID("$FreeBSD: src/sys/arm/arm/vm_machdep.c,v 1.33 2007/07/27 14:46:15 cognet Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -118,11 +118,13 @@ pcb1 = td1->td_pcb; pcb2 = (struct pcb *)(td2->td_kstack + td2->td_kstack_pages * PAGE_SIZE) - 1; #ifdef __XSCALE__ +#ifndef CPU_XSCALE_CORE3 pmap_use_minicache(td2->td_kstack, td2->td_kstack_pages * PAGE_SIZE); if (td2->td_altkstack) pmap_use_minicache(td2->td_altkstack, td2->td_altkstack_pages * PAGE_SIZE); #endif +#endif td2->td_pcb = pcb2; bcopy(td1->td_pcb, pcb2, sizeof(*pcb2)); mdp2 = &p2->p_md; @@ -338,7 +340,9 @@ td->td_frame = (struct trapframe *) ((u_int)td->td_kstack + USPACE_SVC_STACK_TOP - sizeof(struct pcb)) - 1; #ifdef __XSCALE__ +#ifndef CPU_XSCALE_CORE3 pmap_use_minicache(td->td_kstack, td->td_kstack_pages * PAGE_SIZE); +#endif #endif } @@ -462,6 +466,14 @@ vm_offset_t alloc_firstaddr; +#ifdef ARM_HAVE_SUPERSECTIONS +#define S_FRAME L1_SUP_FRAME +#define S_SIZE L1_SUP_SIZE +#else +#define S_FRAME L1_S_FRAME +#define S_SIZE L1_S_SIZE +#endif + vm_offset_t arm_ptovirt(vm_paddr_t pa) { @@ -472,11 +484,11 @@ for (i = 0; dump_avail[i + 1]; i += 2) { if (pa >= dump_avail[i] && pa < dump_avail[i + 1]) >>> TRUNCATED FOR MAIL (1000 lines) <<<
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707272027.l6RKRce8061585>