Up to [cvs.NetBSD.org] / src / sys / arch / amd64 / amd64
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.195 / (download) - annotate - [select for diffs], Wed Jun 5 14:37:04 2013 UTC (13 days, 10 hours ago) by christos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.194: +2 -6
lines
Diff to previous 1.194 (colored)
declaring mtrr_funcs once should be enough.
Revision 1.194 / (download) - annotate - [select for diffs], Fri Apr 12 16:59:40 2013 UTC (2 months ago) by christos
Branch: MAIN
CVS Tags: khorben-n900
Changes since 1.193: +3 -77
lines
Diff to previous 1.193 (colored)
de-duplication police arrests sysctl.
Revision 1.193 / (download) - annotate - [select for diffs], Tue Apr 2 13:28:41 2013 UTC (2 months, 2 weeks ago) by taca
Branch: MAIN
Changes since 1.192: +3 -3
lines
Diff to previous 1.192 (colored)
Use printf_nolog() as i386 when print remaing bytes at crash dump to prevent message buffer with cound down.
Revision 1.192 / (download) - annotate - [select for diffs], Sat Jan 12 16:56:11 2013 UTC (5 months ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base8,
tls-maxphys-nbase,
tls-maxphys-base,
agc-symver-base,
agc-symver
Changes since 1.191: +3 -3
lines
Diff to previous 1.191 (colored)
enable sparse dumps by default.
Revision 1.191 / (download) - annotate - [select for diffs], Tue Nov 13 14:09:36 2012 UTC (7 months ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base7
Changes since 1.190: +31 -25
lines
Diff to previous 1.190 (colored)
fix sparse crash dumps to contain enough data to be useful, in particular the top-level page table pages. use pmap_kremove_local() while writing crash dumps to avoid spurious warning messages.
Revision 1.190 / (download) - annotate - [select for diffs], Mon Sep 3 05:01:44 2012 UTC (9 months, 2 weeks ago) by cherry
Branch: MAIN
CVS Tags: yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.189: +4 -4
lines
Diff to previous 1.189 (colored)
Revert to unmanaged x86 memory mapped isa and pci space. This is a revert of commit r1.169: http://mail-index.netbsd.org/source-changes/2011/11/06/msg028702.html This should allow X to run on NetBSD/xen amd64 dom0, and fixes PR #46634
Revision 1.189 / (download) - annotate - [select for diffs], Sun Jul 15 15:17:56 2012 UTC (11 months ago) by dsl
Branch: MAIN
Changes since 1.188: +3 -3
lines
Diff to previous 1.188 (colored)
Rename MDP_IRET to MDL_IRET since it is an lwp flag, not a proc one. Add an MDL_COMPAT32 flag to the lwp's md_flags, set it for 32bit lwps and use it to force 'return to user' with iret (as is done when MDL_IRET is set). Split the iret/sysret code paths much later. Remove all the replicated code for 32bit system calls - which was only needed so that iret was always used. frameasm.h for XEN contains '#define swapgs', while XEN probable never needs swapgs, this is likely to be confusing. Add a SWAPGS which is a nop on XEN and swapgs otherwise. (I've not yet checked all the swapgs in files that include frameasm.h) Simple x86 programs still work. Hijack 6.99.9 kernel bump (needed for compat32 modules)
Revision 1.188 / (download) - annotate - [select for diffs], Sun Jul 8 20:14:11 2012 UTC (11 months, 1 week ago) by dsl
Branch: MAIN
Changes since 1.187: +7 -7
lines
Diff to previous 1.187 (colored)
The MDP_USEDFPU (amd64 and sh3) and MDP_SSTEP (sh3) are lwp flags not process ones, rename to MDL_xxx.
Revision 1.187 / (download) - annotate - [select for diffs], Wed Jun 27 00:37:07 2012 UTC (11 months, 3 weeks ago) by jym
Branch: MAIN
Changes since 1.186: +3 -3
lines
Diff to previous 1.186 (colored)
Retire XEN_COMPAT_030001 as detailed on port-xen@: http://mail-index.netbsd.org/port-xen/2012/06/25/msg007431.html The xen_p2m API comes next. ok bouyer@. Tested on i386 PAE and amd64 (Xen 3.3 on private test bed, and Xen 3.4 for Amazon EC2). FWIW, Amazon always reported: hypervisor0 at mainbus0: Xen version 3.4.3-kaos_t1micro multiple times for Europe and US West-1, so I guess they are now at 3.4 (32 and 64 bits).
Revision 1.186 / (download) - annotate - [select for diffs], Sat Jun 16 20:47:04 2012 UTC (12 months ago) by dsl
Branch: MAIN
Changes since 1.185: +13 -29
lines
Diff to previous 1.185 (colored)
memseg_baseaddr() is only called from valid_user_selector() and both only locally. Make static, remove one of the functions, and remove the never-set args. Code is still very dubious.
Revision 1.185 / (download) - annotate - [select for diffs], Sat Jun 16 16:42:26 2012 UTC (12 months ago) by joerg
Branch: MAIN
Changes since 1.184: +3 -2
lines
Diff to previous 1.184 (colored)
Annotate tautological if, so that clang doesn't warn about the dt usage later on.
Revision 1.184 / (download) - annotate - [select for diffs], Tue Jun 12 22:16:05 2012 UTC (12 months ago) by bouyer
Branch: MAIN
Changes since 1.183: +12 -2
lines
Diff to previous 1.183 (colored)
If the user process provided a bogus signal handler address, kill it now instead of trying to jump to the bogus address.
Revision 1.183 / (download) - annotate - [select for diffs], Mon May 21 14:15:17 2012 UTC (12 months, 4 weeks ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base5,
jmcneill-usbmp-base10
Changes since 1.182: +5 -4
lines
Diff to previous 1.182 (colored)
Calling _lwp_create() with a bogus ucontext could trigger a kernel assertion failure (and thus a crash in DIAGNOSTIC kernels). Independently discovered by YAMAMOTO Takashi and Joel Sing. To avoid this, introduce a cpu_mcontext_validate() function and move all sanity checks from cpu_setmcontext() there. Also untangle the netbsd32 compat mess slightly and add a cpu_mcontext32_validate() cousin there. Add an exhaustive atf test case, based partly on code from Joel Sing. Should finally fix the remaining open part of PR kern/43903.
Revision 1.182 / (download) - annotate - [select for diffs], Sun Apr 29 21:54:51 2012 UTC (13 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.181: +15 -12
lines
Diff to previous 1.181 (colored)
tidy up...
Revision 1.181 / (download) - annotate - [select for diffs], Sun Apr 15 00:34:09 2012 UTC (14 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base4,
jmcneill-usbmp-base9
Changes since 1.180: +18 -8
lines
Diff to previous 1.180 (colored)
Fix check_mcontext for PK_32 binaries. Makes gdb work for i386 binaries on amd64.
Revision 1.180 / (download) - annotate - [select for diffs], Sat Mar 3 23:43:17 2012 UTC (15 months, 2 weeks ago) by mrg
Branch: MAIN
CVS Tags: jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base4
Changes since 1.179: +36 -14
lines
Diff to previous 1.179 (colored)
make i386 and amd64 cpu_reboot() more similar. in particular, bring in the unmount/sync code from i386 to amd64, and call doshutdownhooks() for i386. the amd64 changes avoid umass triggering an assert later when sd@umass is trying to sync the cache. XXX merge x86 cpu_reboot(), but there's non-trivially different still.
Revision 1.179 / (download) - annotate - [select for diffs], Fri Mar 2 16:43:30 2012 UTC (15 months, 2 weeks ago) by bouyer
Branch: MAIN
Changes since 1.178: +37 -29
lines
Diff to previous 1.178 (colored)
Follow locore.S and move FPU handling from x86_64_switch_context() to x86_64_tls_switch(); raise IPL to IPL_HIGH in x86_64_switch_context() and test ci_fpcurlwp to decide to disable FPU or not. Change the Xen i386 context switch code to be like the amd64 one.
Revision 1.178 / (download) - annotate - [select for diffs], Thu Feb 23 14:45:54 2012 UTC (15 months, 3 weeks ago) by chs
Branch: MAIN
CVS Tags: jmcneill-usbmp-base5,
jmcneill-usbmp-base3
Changes since 1.177: +2 -4
lines
Diff to previous 1.177 (colored)
move XEN CPU feature masking into cpu_probe() so that it's applied to all CPUs, not just the boot CPU.
Revision 1.177 / (download) - annotate - [select for diffs], Sun Feb 19 23:15:24 2012 UTC (15 months, 4 weeks ago) by matt
Branch: MAIN
Changes since 1.176: +2 -7
lines
Diff to previous 1.176 (colored)
Remove extern variables defined in headers.
Revision 1.176 / (download) - annotate - [select for diffs], Sun Feb 19 21:06:00 2012 UTC (15 months, 4 weeks ago) by rmind
Branch: MAIN
Changes since 1.175: +2 -37
lines
Diff to previous 1.175 (colored)
Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3! Approved by core@.
Revision 1.175 / (download) - annotate - [select for diffs], Fri Jan 27 19:48:38 2012 UTC (16 months, 3 weeks ago) by para
Branch: MAIN
CVS Tags: netbsd-6-base,
jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.174: +6 -6
lines
Diff to previous 1.174 (colored)
extending vmem(9) to be able to allocated resources for it's own needs. simplifying uvm_map handling (no special kernel entries anymore no relocking) make malloc(9) a thin wrapper around kmem(9) (with private interface for interrupt safety reasons) releng@ acknowledged
Revision 1.174 / (download) - annotate - [select for diffs], Thu Jan 12 19:49:37 2012 UTC (17 months ago) by cherry
Branch: MAIN
Changes since 1.173: +3 -2
lines
Diff to previous 1.173 (colored)
relocate pte_lock initialisation to the earliest points after %fs is first usable in the XEN bootpath
Revision 1.173 / (download) - annotate - [select for diffs], Mon Dec 12 19:03:08 2011 UTC (18 months ago) by mrg
Branch: MAIN
Changes since 1.172: +4 -12
lines
Diff to previous 1.172 (colored)
implement bdev_size(9) wrapper around d_psize() routine, so we can take the device lock in relevant places. avoid doing so while actually dumping. tested i386 crash dumps still work, and that all touched files compile. fixes PR#45705.
Revision 1.172 / (download) - annotate - [select for diffs], Sun Dec 4 16:24:13 2011 UTC (18 months, 2 weeks ago) by chs
Branch: MAIN
Changes since 1.171: +43 -21
lines
Diff to previous 1.171 (colored)
map all of physical memory using large pages. ported from openbsd years ago by Murray Armfield, updated for changes since then by me.
Revision 1.171 / (download) - annotate - [select for diffs], Sun Nov 20 18:42:56 2011 UTC (18 months, 4 weeks ago) by yamt
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.170: +2 -3
lines
Diff to previous 1.170 (colored)
revert machdep.c rev. 1.168 because it's likely to have the same problem as i386's one. http://mail-index.NetBSD.org/source-changes-d/2011/11/19/msg004283.html
Revision 1.170 / (download) - annotate - [select for diffs], Thu Nov 10 00:12:04 2011 UTC (19 months, 1 week ago) by jym
Branch: MAIN
CVS Tags: yamt-pagecache-base3,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Changes since 1.169: +7 -5
lines
Diff to previous 1.169 (colored)
Turn the 'i386_use_pae' variable into simply 'use_pae'. Technically speaking we are also running with PAE enabled in long mode under amd64, so this variable will be used in various places across x86 machdep to branch at runtime to functions that require extra handling for PAE mode.
Revision 1.169 / (download) - annotate - [select for diffs], Sun Nov 6 15:51:09 2011 UTC (19 months, 1 week ago) by cherry
Branch: MAIN
CVS Tags: yamt-pagecache-base2
Changes since 1.168: +4 -4
lines
Diff to previous 1.168 (colored)
DTRT with macros and use xen's info page when initialising pmap_pa_start and pmap_pa_end.
Revision 1.168 / (download) - annotate - [select for diffs], Mon Oct 31 12:42:36 2011 UTC (19 months, 2 weeks ago) by yamt
Branch: MAIN
CVS Tags: yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.167: +3 -2
lines
Diff to previous 1.167 (colored)
dumpsys_seg: don't overwrite the previous mapping
Revision 1.167 / (download) - annotate - [select for diffs], Wed Aug 31 18:52:37 2011 UTC (21 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.166: +3 -3
lines
Diff to previous 1.166 (colored)
fix reversed test.
Revision 1.166 / (download) - annotate - [select for diffs], Wed Aug 31 17:03:17 2011 UTC (21 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.165: +14 -9
lines
Diff to previous 1.165 (colored)
on xen we don't initialize memory segment maps, so no sparse dumps for now.
Revision 1.165 / (download) - annotate - [select for diffs], Sat Aug 27 16:23:44 2011 UTC (21 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.164: +473 -117
lines
Diff to previous 1.164 (colored)
Implement sparse dumps for amd64 (copied from i386). Disabled for now via sysctl. XXX: most of the code can be merged.
Revision 1.164 / (download) - annotate - [select for diffs], Thu Aug 11 18:11:17 2011 UTC (22 months, 1 week ago) by cherry
Branch: MAIN
CVS Tags: jym-xensuspend-nbase,
jym-xensuspend-base
Changes since 1.163: +3 -7
lines
Diff to previous 1.163 (colored)
Hide the MD details of specific IPIs behind semantically pleasing functions. This cleans up a couple of #ifdef XEN/#endif pairs
Revision 1.163 / (download) - annotate - [select for diffs], Wed Aug 10 11:39:45 2011 UTC (22 months, 1 week ago) by cherry
Branch: MAIN
Changes since 1.162: +6 -2
lines
Diff to previous 1.162 (colored)
xen ipi infrastructure
Revision 1.162 / (download) - annotate - [select for diffs], Sun Jul 17 15:16:58 2011 UTC (23 months ago) by jym
Branch: MAIN
Changes since 1.161: +8 -2
lines
Diff to previous 1.161 (colored)
CR4_PAE is always set to 1 under amd64, so indicate that PAE mode is enabled. Can be useful for 32-bits test runs on amd64 hosts.
Revision 1.161 / (download) - annotate - [select for diffs], Sun Jun 12 03:35:37 2011 UTC (2 years ago) by rmind
Branch: MAIN
Changes since 1.160: +24 -2
lines
Diff to previous 1.160 (colored)
Welcome to 5.99.53! Merge rmind-uvmplock branch: - Reorganize locking in UVM and provide extra serialisation for pmap(9). New lock order: [vmpage-owner-lock] -> pmap-lock. - Simplify locking in some pmap(9) modules by removing P->V locking. - Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs). - Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner. Add TLBSTATS option for x86 to collect statistics about TLB shootdowns. - Unify /dev/mem et al in MI code and provide required locking (removes kernel-lock on some ports). Also, avoid cache-aliasing issues. Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches formed the core changes of this branch.
Revision 1.160 / (download) - annotate - [select for diffs], Fri Mar 4 22:25:24 2011 UTC (2 years, 3 months ago) by joerg
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
cherry-xenmp-base,
bouyer-quota2-nbase
Branch point for: cherry-xenmp
Changes since 1.159: +3 -3
lines
Diff to previous 1.159 (colored)
Refactor ps_strings access. Based on PK_32, write either the normal version or the 32bit compat layout in execve1. Introduce a new function copyin_psstrings for reading it back from userland and converting it to the native layout. Refactor procfs to share most of the code with the kern.proc_args sysctl handler. This material is based upon work partially supported by The NetBSD Foundation under a contract with Joerg Sonnenberger.
Revision 1.159 / (download) - annotate - [select for diffs], Thu Feb 24 04:28:44 2011 UTC (2 years, 3 months ago) by joerg
Branch: MAIN
Changes since 1.158: +8 -2
lines
Diff to previous 1.158 (colored)
Allow storing and receiving the LWP private pointer via ucontext_t on all platforms except VAX and IA64. Add fast access via register for AMD64, i386 and SH3 ports. Use this fast access in libpthread to replace the stack based pthread_self(). Implement skeleton support for Alpha, HPPA, PowerPC, SPARC and SPARC64, but leave it disabled. Ports that support this feature provide __HAVE____LWP_GETPRIVATE_FAST in machine/types.h and a corresponding __lwp_getprivate_fast in machine/mcontext.h. This material is based upon work partially supported by The NetBSD Foundation under a contract with Joerg Sonnenberger.
Revision 1.158 / (download) - annotate - [select for diffs], Tue Jan 11 21:10:17 2011 UTC (2 years, 5 months ago) by jruoho
Branch: MAIN
CVS Tags: uebayasi-xip-base7,
jruoho-x86intr-base,
bouyer-quota2-base
Branch point for: jruoho-x86intr,
bouyer-quota2
Changes since 1.157: +7 -3
lines
Diff to previous 1.157 (colored)
Restore the interrupt level in cpu_reboot() before calling the acpi_enter_sleep_state() function.
Revision 1.157 / (download) - annotate - [select for diffs], Mon Nov 15 06:12:28 2010 UTC (2 years, 7 months ago) by uebayasi
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.156: +2 -0
lines
Diff to previous 1.156 (colored)
struct lwp * and struct proc * derefs.
Revision 1.156 / (download) - annotate - [select for diffs], Fri Nov 12 13:18:56 2010 UTC (2 years, 7 months ago) by uebayasi
Branch: MAIN
CVS Tags: uebayasi-xip-base6
Changes since 1.155: +1 -1
lines
Diff to previous 1.155 (colored)
Pull in uvm/uvm.h where UVM's page level interface is used.
Revision 1.155 / (download) - annotate - [select for diffs], Wed Nov 10 09:27:21 2010 UTC (2 years, 7 months ago) by uebayasi
Branch: MAIN
Changes since 1.154: +6 -6
lines
Diff to previous 1.154 (colored)
Use more VM_PHYSMEM_*() accessors. No functional changes.
Revision 1.154 / (download) - annotate - [select for diffs], Sun Oct 24 07:53:05 2010 UTC (2 years, 7 months ago) by jruoho
Branch: MAIN
CVS Tags: uebayasi-xip-base5,
uebayasi-xip-base4
Changes since 1.153: +3 -6
lines
Diff to previous 1.153 (colored)
Simplify acpi_enter_sleep_state() and guard it against NULL pointer dereferences. Try to avoid referencing the global acpi_softc, which should really be static or at least internal to acpi(4).
Revision 1.153 / (download) - annotate - [select for diffs], Thu Oct 21 11:28:34 2010 UTC (2 years, 7 months ago) by yamt
Branch: MAIN
CVS Tags: uebayasi-xip-base3
Changes since 1.152: +5 -2
lines
Diff to previous 1.152 (colored)
cpu_setmcontext: add a comment
Revision 1.152 / (download) - annotate - [select for diffs], Thu Oct 21 11:27:46 2010 UTC (2 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.151: +7 -9
lines
Diff to previous 1.151 (colored)
cpu_fsgs_zero: clear %fs and %gs even in the case of !PK_32.
Revision 1.151 / (download) - annotate - [select for diffs], Thu Oct 21 11:22:55 2010 UTC (2 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.150: +4 -2
lines
Diff to previous 1.150 (colored)
cpu_fsgs_zero: always clear tf_fs and tf_gs.
Revision 1.150 / (download) - annotate - [select for diffs], Thu Oct 21 11:17:55 2010 UTC (2 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.149: +4 -2
lines
Diff to previous 1.149 (colored)
don't forget to call nmi_init.
Revision 1.149 / (download) - annotate - [select for diffs], Wed Sep 22 16:16:51 2010 UTC (2 years, 8 months ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11
Changes since 1.148: +6 -4
lines
Diff to previous 1.148 (colored)
Avoid fault if acpi_softc is NULL at attempted power-off. XXX at least some of this should be factored off into arch/x86.
Revision 1.148 / (download) - annotate - [select for diffs], Sat Aug 7 20:07:25 2010 UTC (2 years, 10 months ago) by jruoho
Branch: MAIN
CVS Tags: yamt-nfs-mp-base10,
uebayasi-xip-base2
Changes since 1.147: +3 -3
lines
Diff to previous 1.147 (colored)
Do not try to disable ACPI if we can not enter to legacy mode. While it is safe to call AcpiDisable() even if a system operates only in ACPI mode, this leads to unpleasantly verbose error messages in ACPICA.
Revision 1.147 / (download) - annotate - [select for diffs], Sat Jul 31 18:38:32 2010 UTC (2 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.146: +17 -2
lines
Diff to previous 1.146 (colored)
Add machdep.fpu_present, machdep.sse and machdep.sse2 sysctls for compatibility with i386 and compat32.
Revision 1.146 / (download) - annotate - [select for diffs], Wed Jul 7 01:14:52 2010 UTC (2 years, 11 months ago) by chs
Branch: MAIN
Changes since 1.145: +112 -7
lines
Diff to previous 1.145 (colored)
add the guts of TLS support on amd64. based on joerg's patch, reworked by me to support 32-bit processes as well. we now keep %fs and %gs loaded with the user values while in the kernel, which means we don't need to reload them when returning to user mode.
Revision 1.145 / (download) - annotate - [select for diffs], Tue May 4 23:27:13 2010 UTC (3 years, 1 month ago) by jym
Branch: MAIN
Changes since 1.144: +2 -3
lines
Diff to previous 1.144 (colored)
Enable the NX bit feature for Xen i386pae and amd64 kernels. Tested with Xen 3.1 and Xen 3.3, dom0 and domU, by bouyer@ and jym@. Ok bouyer@.
Revision 1.144 / (download) - annotate - [select for diffs], Sun Apr 18 23:47:50 2010 UTC (3 years, 2 months ago) by jym
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.143: +11 -7
lines
Diff to previous 1.143 (colored)
This patch fixes the NX regression issue observed on amd64 kernels, where per-page execution right was disabled (therefore leading to the inability of the kernel to detect fraudulent use of memory mappings marked as not being executable). - replace cpu_feature and ci_feature_flags variables by cpu_feature and ci_feat_val arrays. This makes it cleaner and brings kernel code closer to the design of cpuctl(8). A warning will be raised for each CPU that does not expose the same features as the Boot Processor (BP). - the blacklist of CPU features is now a macro defined in the specialreg.h header, instead of hardcoding it inside MD initialization code; fix comments. - replace checks against CPUID_TSC with the cpu_hascounter() function. - clean up the code in init_x86_64(), as cpu_feature variables are set inside cpu_probe(). - use cpu_init_msrs() for i386. It will be eventually used later for NX feature under i386 PAE kernels. - remove code that checks for CPUID_NOX in amd64 mptramp.S, this is already performed by cpu_hatch() through cpu_init_msrs(). - remove cpu_signature and feature_flags members from struct mpbios_proc (they were never used). This patch was tested with i386 MONOLITHIC, XEN3PAE_DOM0 and XEN3_DOM0 under a native i386 host, and amd64 GENERIC, XEN3_DOM0 via QEMU virtual machines. XXX Should kernel rev be bumped? XXX A similar patch should be pulled-up for NetBSD-5, hopefully tomorrow.
Revision 1.143 / (download) - annotate - [select for diffs], Mon Mar 1 01:35:11 2010 UTC (3 years, 3 months ago) by jym
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.142: +8 -8
lines
Diff to previous 1.142 (colored)
Do not forget that ptoa() casts the result to vaddr_t, which is bad for paddr_t values under i386 PAE. Use ctob() instead. Although amd64 is not affected by this vaddr_t vs paddr_t issue (both having the same size), for the sake of completeness, switch to ctob() when manipulating paddr_t/psize_t entities in amd64 machdep.c. Compile tested for i386 and amd64. No regression expected.
Revision 1.142 / (download) - annotate - [select for diffs], Mon Feb 8 19:02:26 2010 UTC (3 years, 4 months ago) by joerg
Branch: MAIN
Changes since 1.141: +2 -9
lines
Diff to previous 1.141 (colored)
Remove separate mb_map. The nmbclusters is computed at boot time based on the amount of physical memory and limited by NMBCLUSTERS if present. Architectures without direct mapping also limit it based on the kmem_map size, which is used as backing store. On i386 and ARM, the maximum KVA used for mbuf clusters is limited to 64MB by default. The old default limits and limits based on GATEWAY have been removed. key_registered_sb_max is hard-wired to a value derived from 2048 clusters.
Revision 1.141 / (download) - annotate - [select for diffs], Thu Dec 31 01:11:28 2009 UTC (3 years, 5 months ago) by jym
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.140: +4 -10
lines
Diff to previous 1.140 (colored)
Use banner() instead of amd64's custom use of printf's for copyright notice and total/available memory.
Revision 1.140 / (download) - annotate - [select for diffs], Thu Dec 10 14:13:48 2009 UTC (3 years, 6 months ago) by matt
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.139: +3 -3
lines
Diff to previous 1.139 (colored)
Change u_long to vaddr_t/vsize_t in exec code where appropriate (mostly involves setregs and vmcmds). Should result in no code differences.
Revision 1.139 / (download) - annotate - [select for diffs], Sun Nov 29 04:15:42 2009 UTC (3 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.138: +5 -7
lines
Diff to previous 1.138 (colored)
Replace l_addr with uvm_lwp_getuarea() in various MD code, mostly cpu_lwp_fork().
Revision 1.138 / (download) - annotate - [select for diffs], Thu Nov 26 00:19:12 2009 UTC (3 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.137: +3 -6
lines
Diff to previous 1.137 (colored)
Kill proc0paddr. Use lwp0.l_addr instead.
Revision 1.137 / (download) - annotate - [select for diffs], Sat Nov 21 03:11:01 2009 UTC (3 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.136: +19 -12
lines
Diff to previous 1.136 (colored)
Use lwp_getpcb() on x86 MD code, clean from struct user usage.
Revision 1.136 / (download) - annotate - [select for diffs], Sat Nov 7 07:27:40 2009 UTC (3 years, 7 months ago) by cegger
Branch: MAIN
Changes since 1.135: +7 -7
lines
Diff to previous 1.135 (colored)
Add a flags argument to pmap_kenter_pa(9). Patch showed on tech-kern@ http://mail-index.netbsd.org/tech-kern/2009/11/04/msg006434.html No objections.
Revision 1.135 / (download) - annotate - [select for diffs], Tue Oct 27 03:05:27 2009 UTC (3 years, 7 months ago) by rmind
Branch: MAIN
Changes since 1.134: +4 -5
lines
Diff to previous 1.134 (colored)
Make pcb_ldt_sel, in amd64, an unused field. Unlike in i386, it was missed during clean-up of LDT handling.
Revision 1.134 / (download) - annotate - [select for diffs], Mon Oct 19 18:41:10 2009 UTC (3 years, 7 months ago) by bouyer
Branch: MAIN
Changes since 1.133: +2 -7
lines
Diff to previous 1.133 (colored)
Remove closes 3 & 4 from my licence. Lots of thanks to Soren Jacobsen for the booring work !
Revision 1.133 / (download) - annotate - [select for diffs], Mon Oct 5 23:59:30 2009 UTC (3 years, 8 months ago) by rmind
Branch: MAIN
Changes since 1.132: +2 -5
lines
Diff to previous 1.132 (colored)
Remove X86_IPI_WRITE_MSR (and msr_ipifuncs.c), replace all uses in drivers with xc_broadcast(). AMD K8 PowerNow driver tested by <jakllsch>, thanks! Closes PR/37665.
Revision 1.132 / (download) - annotate - [select for diffs], Tue Aug 18 16:41:02 2009 UTC (3 years, 10 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7
Changes since 1.131: +6 -6
lines
Diff to previous 1.131 (colored)
Switch to ACPICA 20090730, and update for API changes.
Revision 1.131 / (download) - annotate - [select for diffs], Sat Aug 15 23:44:58 2009 UTC (3 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.130: +3 -2
lines
Diff to previous 1.130 (colored)
Include <sys/exec_aout.h> explicitly instead of relying on <sys/exec.h> to do it for us.
Revision 1.130 / (download) - annotate - [select for diffs], Sun Mar 22 19:57:11 2009 UTC (4 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
jymxensuspend-base
Changes since 1.129: +6 -6
lines
Diff to previous 1.129 (colored)
Set up module_map correctly so that the system does not panic if it becomes full.
Revision 1.129 / (download) - annotate - [select for diffs], Sat Mar 21 14:41:29 2009 UTC (4 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.128: +4 -4
lines
Diff to previous 1.128 (colored)
PR port-i386/40143 Viewing an mpeg transport stream with mplayer causes crash Fix numerous problems: 1. LDT updates are not atomic. 2. Number of processes running with private LDTs and/or I/O bitmaps is not capped. System with high maxprocs can be paniced. 3. LDTR can be leaked over context switch. 4. GDT slot allocations can race, giving the same LDT slot to two procs. 5. Incomplete interrupt/trap frames can be stacked. 6. In some rare cases segment faults are not handled correctly.
Revision 1.128 / (download) - annotate - [select for diffs], Thu Feb 26 13:56:46 2009 UTC (4 years, 3 months ago) by jmcneill
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Changes since 1.127: +6 -2
lines
Diff to previous 1.127 (colored)
PR# port-i386/40751: power button does not work after halt
PR# kern/37506: Have to hold power button for 5 seconds to turn off Laptop
after "halt" command.
Transfer the system from ACPI to Legacy mode if RB_HALT is set.
Revision 1.127 / (download) - annotate - [select for diffs], Tue Feb 17 01:39:25 2009 UTC (4 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.126: +8 -2
lines
Diff to previous 1.126 (colored)
Just like i386 cpu_startup, for console drivers that require uvm and pmap to be initialized, call consinit for a third time here.
Revision 1.126 / (download) - annotate - [select for diffs], Tue Feb 17 00:09:50 2009 UTC (4 years, 4 months ago) by cegger
Branch: MAIN
Changes since 1.125: +2 -5
lines
Diff to previous 1.125 (colored)
nuke unused global variable
Revision 1.125 / (download) - annotate - [select for diffs], Fri Feb 13 22:41:00 2009 UTC (4 years, 4 months ago) by apb
Branch: MAIN
Changes since 1.124: +3 -2
lines
Diff to previous 1.124 (colored)
Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h" in all kernel sources that use the MODULAR option. Proposed in tech-kern on 18 Jan 2009.
Revision 1.124 / (download) - annotate - [select for diffs], Fri Feb 13 20:42:24 2009 UTC (4 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.123: +16 -10
lines
Diff to previous 1.123 (colored)
Prepare for PCI frontend support in Xen3 domUs: call x86_bus_space_init() and x86_bus_space_mallocok() if we have ISA or PCI devices configured; not only for non-Xen or dom0 Xen On Xen, always call PHYSDEVOP_SET_IOPL on context switch on amd64, also call PHYSDEVOP_SET_IOPL from x86_64_proc0_tss_ldt_init()
Revision 1.123 / (download) - annotate - [select for diffs], Tue Jan 27 22:00:42 2009 UTC (4 years, 4 months ago) by christos
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.122: +2 -4
lines
Diff to previous 1.122 (colored)
remove extra variable
Revision 1.122 / (download) - annotate - [select for diffs], Tue Jan 27 21:59:25 2009 UTC (4 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.121: +3 -40
lines
Diff to previous 1.121 (colored)
factor out common reset code.
Revision 1.121 / (download) - annotate - [select for diffs], Tue Jan 27 21:13:57 2009 UTC (4 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.120: +5 -4
lines
Diff to previous 1.120 (colored)
Make previous compile.
Revision 1.120 / (download) - annotate - [select for diffs], Tue Jan 27 16:17:31 2009 UTC (4 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.119: +31 -2
lines
Diff to previous 1.119 (colored)
Attempt to force resets using two more methods: 1. Reset Control register at I/O port 0xcf9 2. Fast A20 and Init register at I/O port 0x92 Requested by ad@
Revision 1.119 / (download) - annotate - [select for diffs], Wed Jan 21 09:43:40 2009 UTC (4 years, 4 months ago) by cegger
Branch: MAIN
Changes since 1.118: +4 -4
lines
Diff to previous 1.118 (colored)
buildfix: re-adapt to major()/minor() returning a 32bit value.
Revision 1.118 / (download) - annotate - [select for diffs], Thu Jan 15 19:03:31 2009 UTC (4 years, 5 months ago) by joerg
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.117: +3 -3
lines
Diff to previous 1.117 (colored)
Fix typo in comment.
Revision 1.117 / (download) - annotate - [select for diffs], Sun Jan 11 09:59:13 2009 UTC (4 years, 5 months ago) by cegger
Branch: MAIN
Changes since 1.116: +4 -4
lines
Diff to previous 1.116 (colored)
make this compile
Revision 1.116 / (download) - annotate - [select for diffs], Sun Jan 11 02:45:45 2009 UTC (4 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.115: +2 -2
lines
Diff to previous 1.115 (colored)
merge christos-time_t
Revision 1.115 / (download) - annotate - [select for diffs], Thu Dec 18 11:45:40 2008 UTC (4 years, 6 months ago) by cegger
Branch: MAIN
CVS Tags: christos-time_t-nbase,
christos-time_t-base
Branch point for: christos-time_t
Changes since 1.114: +2 -3
lines
Diff to previous 1.114 (colored)
remove unused malloc.h
Revision 1.114 / (download) - annotate - [select for diffs], Mon Dec 15 22:20:52 2008 UTC (4 years, 6 months ago) by cegger
Branch: MAIN
Changes since 1.113: +4 -4
lines
Diff to previous 1.113 (colored)
cleanup BIOS memmap code: - get rid of some nested externs - reduce dependency on global variables - some preparations for upcoming pmem(9)
Revision 1.113 / (download) - annotate - [select for diffs], Sun Nov 30 18:21:32 2008 UTC (4 years, 6 months ago) by martin
Branch: MAIN
CVS Tags: haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Changes since 1.112: +5 -5
lines
Diff to previous 1.112 (colored)
As discussed on tech-kern: mutex_init is too heavyweight for early bootstrap phases, so move the initialization of the ksyms mutex back into main via a function called ksyms_init. Rename the existing (but quite different) ksyms_init* variations into ksyms_addsyms_elf() and ksyms_addsyms_explicit() and adapt machdep code accordingly.
Revision 1.112 / (download) - annotate - [select for diffs], Wed Nov 19 18:35:58 2008 UTC (4 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.111: +11 -13
lines
Diff to previous 1.111 (colored)
Make the emulations, exec formats, coredump, NFS, and the NFS server into modules. By and large this commit: - shuffles header files and ifdefs - splits code out where necessary to be modular - adds module glue for each of the components - adds/replaces hooks for things that can be installed at runtime
Revision 1.111 / (download) - annotate - [select for diffs], Sun Nov 16 20:13:50 2008 UTC (4 years, 7 months ago) by bouyer
Branch: MAIN
Changes since 1.110: +4 -5
lines
Diff to previous 1.110 (colored)
Make sure xen_idt is writable before trying to write to it (issue previously masked by defined(COMPAT_10) || defined(COMPAT_IBCS2)). Make amd64xen kernel boot again.
Revision 1.110 / (download) - annotate - [select for diffs], Fri Nov 14 15:03:44 2008 UTC (4 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.109: +2 -17
lines
Diff to previous 1.109 (colored)
Remove unneeded ifdefs.
Revision 1.109 / (download) - annotate - [select for diffs], Fri Nov 14 00:41:36 2008 UTC (4 years, 7 months ago) by cegger
Branch: MAIN
Changes since 1.108: +9 -360
lines
Diff to previous 1.108 (colored)
merge BIOS memmap code from i386/i386/machdep.c:init386() and amd64/amd64/machdep.c:init_x86_64 into x86/x86/x86_machdep.c
Revision 1.108 / (download) - annotate - [select for diffs], Wed Nov 12 12:35:56 2008 UTC (4 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.107: +11 -11
lines
Diff to previous 1.107 (colored)
Remove LKMs and switch to the module framework, pass 1. Proposed on tech-kern@.
Revision 1.107 / (download) - annotate - [select for diffs], Wed Nov 12 01:33:44 2008 UTC (4 years, 7 months ago) by cegger
Branch: MAIN
Changes since 1.106: +167 -99
lines
Diff to previous 1.106 (colored)
reduce diff to i386/i386/machdep.c:init386() - introduce add_mem_cluster() as done in i386 - apply rev. 1.480 from i386/i386/machdep.c: fixes PR 17199 for amd64 - apply rev. 1.492 from i386/i386/machdep.c: fixes PR 13399 for amd64
Revision 1.106 / (download) - annotate - [select for diffs], Wed Nov 12 01:17:16 2008 UTC (4 years, 7 months ago) by cegger
Branch: MAIN
Changes since 1.105: +20 -20
lines
Diff to previous 1.105 (colored)
cosmetic change (mostly to reduce diff to i386/i386/machdep.c:initi386): #if DEBUG_MEMLOAD -> #ifdef DEBUG_MEMLOAD use PRIx64 rather %qx No functional changes intended.
Revision 1.105 / (download) - annotate - [select for diffs], Tue Nov 11 15:53:53 2008 UTC (4 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.104: +8 -4
lines
Diff to previous 1.104 (colored)
PR port-i386/39299 FPU use in signal handlers is unsafe
Revision 1.104 / (download) - annotate - [select for diffs], Tue Nov 11 14:40:18 2008 UTC (4 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.103: +3 -3
lines
Diff to previous 1.103 (colored)
PR port-amd64/38293 panic: fp_save ipi didn't Fix race conditions in FPU IPI handling.
Revision 1.103 / (download) - annotate - [select for diffs], Tue Nov 11 06:46:40 2008 UTC (4 years, 7 months ago) by dyoung
Branch: MAIN
Changes since 1.102: +5 -2
lines
Diff to previous 1.102 (colored)
It is not appropriate to call pmf_system_shutdown(9) from doshutdownhooks(9): shutdown hooks registered by shutdownhook_establish(9) expect to be called with interrupts disabled, but shutdown hooks registered with pmf_device_register1(9) expect to be called with interrupts enabled. So I have made two changes: 1 Do not call pmf_system_shutdown() from doshutdownhooks(). Instead, change every call to doshutdownhooks() to a call to doshutdownhooks() followed by a call to pmf_system_shutdown(). No functional change is intended by this change. 2 Make i386 re-enable interrupts briefly while it calls pmf_system_shutdown(). I leave it to others either to fix the other ports, or to factor out some MI shutdown code, as joerg@ suggests, and fix that. Note that a functional change *is* intended by this change. I hope that this patch will stop us from flip-flopping between calling doshutdownhooks() and pmf_system_shutdown() sometimes with and sometimes without interrupts enabled.
Revision 1.102 / (download) - annotate - [select for diffs], Tue Oct 21 15:46:32 2008 UTC (4 years, 7 months ago) by cegger
Branch: MAIN
CVS Tags: netbsd-5-base,
matt-mips64-base2
Branch point for: nick-hppapmap,
netbsd-5
Changes since 1.101: +3 -3
lines
Diff to previous 1.101 (colored)
introduce two macros: xendomain_is_dom0() and xendomain_is_privileged(). Use them.
Revision 1.101 / (download) - annotate - [select for diffs], Wed Oct 15 06:51:17 2008 UTC (4 years, 8 months ago) by wrstuden
Branch: MAIN
CVS Tags: haad-dm-base1
Changes since 1.100: +37 -2
lines
Diff to previous 1.100 (colored)
Merge wrstuden-revivesa into HEAD.
Revision 1.100 / (download) - annotate - [select for diffs], Thu Sep 18 15:57:04 2008 UTC (4 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3
Changes since 1.99: +3 -3
lines
Diff to previous 1.99 (colored)
Define a PSL_CLEARSIG macro for the psl flags to be cleared on signal delivery and use it everywhere.
Revision 1.99 / (download) - annotate - [select for diffs], Tue Aug 26 08:43:00 2008 UTC (4 years, 9 months ago) by cegger
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-2
Changes since 1.98: +17 -4
lines
Diff to previous 1.98 (colored)
Xen: Mark NMI and machine check handlers as interrupt gates.
Revision 1.98 / (download) - annotate - [select for diffs], Tue Aug 5 17:09:17 2008 UTC (4 years, 10 months ago) by drochner
Branch: MAIN
Changes since 1.97: +5 -11
lines
Diff to previous 1.97 (colored)
Disable interrupts before shutdownhooks are run, as all other ports. shutdownhooks need to use polling functions (and most do).
Revision 1.97 / (download) - annotate - [select for diffs], Wed Jul 2 17:28:54 2008 UTC (4 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: simonb-wapbl-nbase,
simonb-wapbl-base
Branch point for: haad-dm
Changes since 1.96: +2 -10
lines
Diff to previous 1.96 (colored)
Replce exec_map with a pool. Proposed on tech-kern@, reviewed by chs@.
Revision 1.96 / (download) - annotate - [select for diffs], Sun Jun 29 21:00:08 2008 UTC (4 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.95: +6 -7
lines
Diff to previous 1.95 (colored)
Proper FPU exeptions support for Xen. Should fix FPU issues reported by various users.
Revision 1.95 / (download) - annotate - [select for diffs], Thu Jun 5 21:44:31 2008 UTC (5 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base
Branch point for: simonb-wapbl
Changes since 1.94: +11 -5
lines
Diff to previous 1.94 (colored)
Leave interrupts on for the shutdownhooks. Should fix the panics on shutdown.
Revision 1.94 / (download) - annotate - [select for diffs], Wed May 21 03:04:35 2008 UTC (5 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base3
Changes since 1.93: +3 -3
lines
Diff to previous 1.93 (colored)
PR port-amd64/38708 lkm_map issues on amd64 lkm_map should not be marked pageable.
Revision 1.93 / (download) - annotate - [select for diffs], Sun May 11 14:44:53 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base2,
yamt-nfs-mp-base2,
hpcarm-cleanup-nbase
Changes since 1.92: +8 -5
lines
Diff to previous 1.92 (colored)
Simplify x86 identcpu code, and share between i386/amd64.
Revision 1.92 / (download) - annotate - [select for diffs], Mon May 5 17:47:06 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
Branch point for: wrstuden-revivesa
Changes since 1.91: +8 -2
lines
Diff to previous 1.91 (colored)
Export tsc_freq via sysctl.
Revision 1.91 / (download) - annotate - [select for diffs], Tue Apr 29 15:26:26 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.90: +13 -13
lines
Diff to previous 1.90 (colored)
Get spl framework and interrupt gates working before breaking into DDB on boot. PR port-amd64/30828.
Revision 1.90 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:12 2008 UTC (5 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.89: +2 -9
lines
Diff to previous 1.89 (colored)
Remove clause 3 and 4 from TNF licenses
Revision 1.89 / (download) - annotate - [select for diffs], Sun Apr 27 11:37:48 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.88: +12 -3
lines
Diff to previous 1.88 (colored)
- Rename crit_enter/crit_exit to kpreempt_disable/kpreempt_enable. DragonflyBSD uses the crit names for something quite different. - Add a kpreempt_disabled function for diagnostic assertions. - Add inline versions of kpreempt_enable/kpreempt_disable for primitives. - Make some more changes for preemption safety to the x86 pmap.
Revision 1.88 / (download) - annotate - [select for diffs], Thu Apr 24 18:39:20 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.87: +7 -7
lines
Diff to previous 1.87 (colored)
Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since we no longer need to guard against access from hardware interrupt handlers. Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the child process share the parent's lock so that signal state may be kept in sync. Partially addresses PR kern/37437.
Revision 1.87 / (download) - annotate - [select for diffs], Mon Apr 21 15:15:33 2008 UTC (5 years, 1 month ago) by cegger
Branch: MAIN
Changes since 1.86: +5 -2
lines
Diff to previous 1.86 (colored)
Access Xen's vcpu info structure per-CPU. Tested on i386 and amd64 (both dom0 and domU) by me. Xen2 tested (both dom0 and domU) by bouyer. OK bouyer
Revision 1.86 / (download) - annotate - [select for diffs], Wed Apr 16 21:51:03 2008 UTC (5 years, 2 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.85: +19 -19
lines
Diff to previous 1.85 (colored)
use POSIX integer types
Revision 1.85 / (download) - annotate - [select for diffs], Tue Feb 12 17:52:19 2008 UTC (5 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-base,
ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.84: +2 -3
lines
Diff to previous 1.84 (colored)
Don't sleep for 0.5s before powering down the machine with ACPI.
Revision 1.84 / (download) - annotate - [select for diffs], Wed Jan 16 18:30:22 2008 UTC (5 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase,
bouyer-xeni386-base
Changes since 1.83: +2 -8
lines
Diff to previous 1.83 (colored)
Always set up lkm_map.
Revision 1.83 / (download) - annotate - [select for diffs], Tue Jan 15 14:50:09 2008 UTC (5 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.82: +5 -5
lines
Diff to previous 1.82 (colored)
Introduce optional cpu_offline_md to execute MD actions at the end of cpu_offline. Use this on amd64/i386 to force a FPU save. As this was triggered by npxsave_cpu/fpusave_cpu not working for a different CPU, remove the cpu_info argument and adjust npxsave_*/fpusave_* to use bool for the save. OK ad@
Revision 1.82 / (download) - annotate - [select for diffs], Tue Jan 8 13:15:01 2008 UTC (5 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.81: +3 -3
lines
Diff to previous 1.81 (colored)
change the layout in u-area and reduce UPAGES.
Revision 1.81 / (download) - annotate - [select for diffs], Sat Jan 5 22:48:31 2008 UTC (5 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.80: +20 -3
lines
Diff to previous 1.80 (colored)
allocate dedicated stacks for NMI. PR/37662.
Revision 1.80 / (download) - annotate - [select for diffs], Sat Jan 5 21:52:01 2008 UTC (5 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.79: +2 -19
lines
Diff to previous 1.79 (colored)
remove no longer necessary cpu_maxproc.
Revision 1.79 / (download) - annotate - [select for diffs], Sat Jan 5 21:47:19 2008 UTC (5 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.78: +30 -23
lines
Diff to previous 1.78 (colored)
- make amd64 use per-cpu tss. - fix iopl syscall for amd64+xen.
Revision 1.78 / (download) - annotate - [select for diffs], Fri Jan 4 23:04:54 2008 UTC (5 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.77: +14 -6
lines
Diff to previous 1.77 (colored)
Change the way that the trap/intr/syscall frames and the __gregset_t[] indexes are defined so that only a single list of the registers is used. The code no longer relies on the two structures matching. There should be no binary change.
Revision 1.77 / (download) - annotate - [select for diffs], Fri Dec 28 07:04:54 2007 UTC (5 years, 5 months ago) by dogcow
Branch: MAIN
Changes since 1.76: +4 -4
lines
Diff to previous 1.76 (colored)
XEN only gets defined in opt_xen.h; move the ifndef check after the include.
Revision 1.76 / (download) - annotate - [select for diffs], Thu Dec 27 21:31:35 2007 UTC (5 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.75: +4 -2
lines
Diff to previous 1.75 (colored)
opt_physmem.h only exists for !Xen.
Revision 1.75 / (download) - annotate - [select for diffs], Wed Dec 26 16:39:27 2007 UTC (5 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.74: +2 -30
lines
Diff to previous 1.74 (colored)
Remove #if 0'ed microtime from the simulator days.
Revision 1.74 / (download) - annotate - [select for diffs], Wed Dec 26 16:28:16 2007 UTC (5 years, 5 months ago) by joerg
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.73: +26 -4
lines
Diff to previous 1.73 (colored)
Add PHYSMEM_MAX_ADDR and PHYSMEM_MAX_SIZE options. This limit physical memory based on overall size (useful for debugging to keep core dumps small) or maximum address (when using devices with bus dma limits). Contrary to REALBASEMEM and REALEXTMEM, they still use the BIOS memory map and can therefore deal with fragmented memory.
Revision 1.73 / (download) - annotate - [select for diffs], Wed Dec 26 11:51:11 2007 UTC (5 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.72: +20 -66
lines
Diff to previous 1.72 (colored)
- share idt entry allocation code among x86. - introduce a function to reserve an idt entry and use it instead of manipulating idt_allocmap directly. - rename idt to xen_idt for amd64 xen. add missing #ifdef XEN.
Revision 1.72 / (download) - annotate - [select for diffs], Sun Dec 9 20:27:43 2007 UTC (5 years, 6 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base3,
yamt-kmem-base2,
cube-autoconf-base,
cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.71: +107 -95
lines
Diff to previous 1.71 (colored)
Merge jmcneill-pm branch.
Revision 1.71 / (download) - annotate - [select for diffs], Mon Dec 3 15:33:09 2007 UTC (5 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base,
vmlocking2-base2,
vmlocking2-base1,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
jmcneill-pm-base
Branch point for: yamt-kmem,
vmlocking2
Changes since 1.70: +2 -3
lines
Diff to previous 1.70 (colored)
Interrupt handling changes, in discussion since February: - Reduce available SPL levels for hardware devices to none, vm, sched, high. - Acquire kernel_lock only for interrupts at IPL_VM. - Implement threaded soft interrupts.
Revision 1.70 / (download) - annotate - [select for diffs], Sat Nov 24 17:57:53 2007 UTC (5 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.69: +9 -11
lines
Diff to previous 1.69 (colored)
Xen loads the symbol table 4 bytes after _end, not eight. Now the kernel properly finds the symbol table.
Revision 1.69 / (download) - annotate - [select for diffs], Thu Nov 22 16:16:42 2007 UTC (5 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.68: +253 -11
lines
Diff to previous 1.68 (colored)
Pull up the bouyer-xenamd64 branch to HEAD. This brings in amd64 support to NetBSD/Xen, both Dom0 and DomU.
Revision 1.68 / (download) - annotate - [select for diffs], Tue Nov 20 23:10:49 2007 UTC (5 years, 6 months ago) by xtraeme
Branch: MAIN
CVS Tags: bouyer-xenamd64-base2,
bouyer-xenamd64-base
Changes since 1.67: +3 -2
lines
Diff to previous 1.67 (colored)
Put back again softintr_init() that was removed in rev 1.67, this fixes the panics that people reported on current-users. Tested and verified by Greg Oster.
Revision 1.67 / (download) - annotate - [select for diffs], Mon Nov 19 19:02:20 2007 UTC (5 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.66: +3 -4
lines
Diff to previous 1.66 (colored)
IPL_IPI -> IPL_HIGH
Revision 1.66 / (download) - annotate - [select for diffs], Mon Nov 12 19:02:28 2007 UTC (5 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.65: +2 -47
lines
Diff to previous 1.65 (colored)
Merge cpu_need_resched() from vmlocking: - Always do an aston(), even if not sending an IPI. May help with xine. - Post asts on cpu_onproc, not ci_curlwp.
Revision 1.65 / (download) - annotate - [select for diffs], Fri Oct 26 13:24:39 2007 UTC (5 years, 7 months ago) by joerg
Branch: MAIN
CVS Tags: jmcneill-base
Branch point for: mjf-devfs
Changes since 1.64: +3 -3
lines
Diff to previous 1.64 (colored)
Match delay/DELAY on x86 with delay(9). It takes an unsigned int as argument. Use this and replace the inline assembly (mul + div using the 64bit intermediate result) with normal 32bit multiplication and division. The compiler can turn the division into a multiplication and shift, making it even cheaper then the original assembly. For extreme long delays, just use 64bit arithmetic.
Revision 1.64 / (download) - annotate - [select for diffs], Thu Oct 18 15:28:32 2007 UTC (5 years, 8 months ago) by yamt
Branch: MAIN
Changes since 1.63: +4 -4
lines
Diff to previous 1.63 (colored)
merge yamt-x86pmap branch. - reduce differences between amd64 and i386. notably, share pmap.c between them. it makes several i386 pmap improvements available to amd64, including tlb shootdown reduction and bug fixes from Stephan Uphoff. - implement deferred pmap switching for amd64. - remove LARGEPAGES option. always use large pages if available. also, make it work on amd64.
Revision 1.63 / (download) - annotate - [select for diffs], Wed Oct 17 19:53:01 2007 UTC (5 years, 8 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-x86pmap-base4
Changes since 1.62: +2 -2
lines
Diff to previous 1.62 (colored)
Merge the ppcoea-renovation branch to HEAD. This branch was a major cleanup and rototill of many of the various OEA cpu based PPC ports that focused on sharing as much code as possible between the various ports to eliminate near-identical copies of files in every tree. Additionally there is a new PIC system that unifies the interface to interrupt code for all different OEA ppc arches. The work for this branch was done by a variety of people, too long to list here. TODO: bebox still needs work to complete the transition to -renovation. ofppc still needs a bunch of work, which I will be looking at. ev64260 still needs to be renovated amigappc was not attempted. NOTES: pmppc was removed as an arch, and moved to a evbppc target.
Revision 1.62 / (download) - annotate - [select for diffs], Wed Sep 26 19:48:35 2007 UTC (5 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base3,
yamt-x86pmap-base2,
vmlocking-base,
ppcoea-renovation-base
Branch point for: bouyer-xenamd64
Changes since 1.61: +5 -7
lines
Diff to previous 1.61 (colored)
x86 changes for pcc and LKMs. - Replace most inline assembly with proper functions. As a side effect this reduces the size of amd64 GENERIC by about 120kB, and i386 by a smaller amount. Nearly all of the inlines did something slow, or something that does not need to be fast. - Make curcpu() and curlwp functions proper, unless __GNUC__ && _KERNEL. In that case make them inlines. Makes curlwp LKM and preemption safe. - Make bus_space and bus_dma more LKM friendly. - Share a few more files between the ports. - Other minor changes.
Revision 1.61 / (download) - annotate - [select for diffs], Wed Aug 29 23:38:02 2007 UTC (5 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base,
nick-csl-alignment-base5
Branch point for: yamt-x86pmap
Changes since 1.60: +4 -4
lines
Diff to previous 1.60 (colored)
Merge most x86 changes from the vmlocking branch, except the threaded soft interrupt stuff. This is mostly comprised of changes to the pmap modules to work on multiprocessor systems without kernel_lock, and changes to speed up tlb shootdowns.
Revision 1.60 / (download) - annotate - [select for diffs], Sun Jul 8 10:19:21 2007 UTC (5 years, 11 months ago) by pooka
Branch: MAIN
CVS Tags: nick-csl-alignment-base,
mjf-ufs-trans-base,
matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: nick-csl-alignment,
matt-armv6,
jmcneill-pm
Changes since 1.59: +3 -3
lines
Diff to previous 1.59 (colored)
Initialize the link context in a signal frame to the receiving lwp's link context instead of NULL. Otherwise, if we got a signal while the lwp had a link context set, the link context would be set to NULL upon return from signal delivery. christos@tech-kern: "I think you are right."
Revision 1.59 / (download) - annotate - [select for diffs], Fri May 25 15:09:50 2007 UTC (6 years ago) by yamt
Branch: MAIN
Changes since 1.58: +4 -6
lines
Diff to previous 1.58 (colored)
dumpsys: build a fake switchframe for postmortem debugging. reviewed by Frank van der Linden.
Revision 1.58 / (download) - annotate - [select for diffs], Mon May 21 08:10:38 2007 UTC (6 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.57: +6 -11
lines
Diff to previous 1.57 (colored)
Revert fs/gs changes until I figure out issues with them.
Revision 1.57 / (download) - annotate - [select for diffs], Thu May 17 14:51:14 2007 UTC (6 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.56: +34 -44
lines
Diff to previous 1.56 (colored)
merge yamt-idlelwp branch. asked by core@. some ports still needs work. from doc/BRANCHES: idle lwp, and some changes depending on it. 1. separate context switching and thread scheduling. (cf. gmcgarry_ctxsw) 2. implement idle lwp. 3. clean up related MD/MI interfaces. 4. make scheduler(s) modular.
Revision 1.56 / (download) - annotate - [select for diffs], Thu May 17 10:42:42 2007 UTC (6 years, 1 month ago) by fvdl
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.55: +7 -7
lines
Diff to previous 1.55 (colored)
Fix broken constraint in asm.
Revision 1.55 / (download) - annotate - [select for diffs], Sun May 13 20:48:23 2007 UTC (6 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.54: +7 -2
lines
Diff to previous 1.54 (colored)
Initialize a few PCB fields explicity in more places.
Revision 1.54 / (download) - annotate - [select for diffs], Fri May 11 14:01:46 2007 UTC (6 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.53: +11 -6
lines
Diff to previous 1.53 (colored)
Don't save/restore %fs and %gs in trapframe. The kernel won't touch them. Instead, save/restore them on context switch. For 32bit processes, save/restore the selector values only, for 64bit processes, save/restore the appropriate MSRs. Iff the defaults have been changed.
Revision 1.53 / (download) - annotate - [select for diffs], Tue Mar 20 21:07:39 2007 UTC (6 years, 3 months ago) by xtraeme
Branch: MAIN
CVS Tags: thorpej-atomic-base,
thorpej-atomic
Branch point for: ppcoea-renovation
Changes since 1.52: +5 -2
lines
Diff to previous 1.52 (colored)
MSR read and write IPI handlers for x86. A MSR will be read or written in all CPUs available in the system. This adds another member to struct cpu_info, ci_msr_rvalue; it will contain the value of the MSR in a previous operation. Tested with clockmod in UP and SMP by me, tested with est in SMP by Daniel Carosone and Michael Van Elst. Ok'ed by Andrew Doran and Matthew R. Green.
Revision 1.52 / (download) - annotate - [select for diffs], Sun Mar 4 14:36:11 2007 UTC (6 years, 3 months ago) by yamt
Branch: MAIN
Branch point for: vmlocking,
reinoud-bufcleanup,
mjf-ufs-trans
Changes since 1.51: +6 -6
lines
Diff to previous 1.51 (colored)
fix fallout from caddr_t changes.
Revision 1.51 / (download) - annotate - [select for diffs], Sun Mar 4 05:59:12 2007 UTC (6 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.50: +14 -14
lines
Diff to previous 1.50 (colored)
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.50 / (download) - annotate - [select for diffs], Thu Feb 22 04:54:36 2007 UTC (6 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: ad-audiomp-base,
ad-audiomp
Changes since 1.49: +5 -5
lines
Diff to previous 1.49 (colored)
TRUE -> true, FALSE -> false
Revision 1.49 / (download) - annotate - [select for diffs], Sun Feb 18 20:22:25 2007 UTC (6 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.48: +13 -5
lines
Diff to previous 1.48 (colored)
Sync signal delivery routines with i386. sendsig_reset() was not being called, and so delivered signals were not being masked. From cube@, with minor mods by me.
Revision 1.48 / (download) - annotate - [select for diffs], Sat Feb 17 22:31:37 2007 UTC (6 years, 4 months ago) by pavel
Branch: MAIN
Changes since 1.47: +3 -3
lines
Diff to previous 1.47 (colored)
Change the process/lwp flags seen by userland via sysctl back to the P_*/L_* naming convention, and rename the in-kernel flags to avoid conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD constant. Restores source compatibility with pre-newlock2 tools like ps or top. Reviewed by Andrew Doran.
Revision 1.47 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:01 2007 UTC (6 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Changes since 1.46: +39 -48
lines
Diff to previous 1.46 (colored)
Merge newlock2 to head.
Revision 1.46 / (download) - annotate - [select for diffs], Tue Jan 16 22:32:46 2007 UTC (6 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: newlock2-nbase,
newlock2-base
Changes since 1.45: +2 -4
lines
Diff to previous 1.45 (colored)
remove CPUID2MODEL, since it is defined in specialreg.h
Revision 1.45 / (download) - annotate - [select for diffs], Sat Jan 6 17:03:11 2007 UTC (6 years, 5 months ago) by pavel
Branch: MAIN
Changes since 1.44: +38 -11
lines
Diff to previous 1.44 (colored)
PR port-i386/34186 by Wolfgang Stukenbrock: mapping of msgbuf during startup may map invalid physical adresses Apply a similar patch as in the i386 case. The amd64 version was supplied by Blair Sadewitz, thanks.
Revision 1.44 / (download) - annotate - [select for diffs], Mon Oct 23 12:11:47 2006 UTC (6 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
netbsd-4-base
Branch point for: netbsd-4
Changes since 1.43: +3 -3
lines
Diff to previous 1.43 (colored)
apply const where necessary
Revision 1.43 / (download) - annotate - [select for diffs], Sat Oct 21 05:54:31 2006 UTC (6 years, 7 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.42: +6 -4
lines
Diff to previous 1.42 (colored)
in cpu_dumpconf(), don't panic() if we can't bdevsw_lookup() the dumpdev. this occurs when we try to set the dumpdev to a device with no driver loaded. this fixes PR#34872. in sys_swapctl, if bdevsw_lookup() fails, set dumpdev = NODEV before calling cpu_dumpconf(). (this also fixes PR#34872.) XXX: cpu_dumpconf() should probably be changed to take a dumpdev XXX: and return an error in such cases, but that is a much more XXX: intrusive change. XXX2: this is only run-tested on sparc64 and compile tested on a XXX2: couple of platforms.
Revision 1.42 / (download) - annotate - [select for diffs], Thu Oct 5 15:10:31 2006 UTC (6 years, 8 months ago) by chs
Branch: MAIN
Changes since 1.41: +5 -6
lines
Diff to previous 1.41 (colored)
in cpu_reboot(), only halt the other CPUs after we've done the powerdown stuff. the ACPI code may end up removing some pmap entries, which wants the other CPUs to still be running to handle TLB invalidations.
Revision 1.41 / (download) - annotate - [select for diffs], Wed Sep 27 17:10:34 2006 UTC (6 years, 8 months ago) by cube
Branch: MAIN
Changes since 1.40: +4 -3
lines
Diff to previous 1.40 (colored)
This is again that time of the millenium where we have to crank up a few static limits to meet modern bloat requirements. VM_PHYSSEG_MAX needs it to run on Intel's D946GZIS motherboard, as reported by rix on #NetBSD-code on freenode. This has a consequence on the initial number of possible extent allocations for iomem_ex, so increase that value too. While there, clarify the action to be taken when VM_PHYSSEG_MAX is maxed out. Do that on both amd64 and i386 because the causes, the effects and the code are mostly the same.
Revision 1.40 / (download) - annotate - [select for diffs], Sat Aug 19 16:27:57 2006 UTC (6 years, 10 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl,
newlock2
Changes since 1.39: +38 -63
lines
Diff to previous 1.39 (colored)
de __P()
Revision 1.39 / (download) - annotate - [select for diffs], Wed Jun 7 22:37:14 2006 UTC (7 years ago) by kardel
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7,
yamt-pdpolicy-base6,
gdamore-uart-base,
gdamore-uart,
chap-midi-nbase,
chap-midi-base,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Changes since 1.38: +3 -3
lines
Diff to previous 1.38 (colored)
convert to timecounters (from branch simonb-timecounters)
Revision 1.38 / (download) - annotate - [select for diffs], Sat Jan 21 09:54:53 2006 UTC (7 years, 4 months ago) by fvdl
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5,
yamt-pdpolicy-base5,
yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
yamt-pdpolicy-base2,
yamt-pdpolicy-base,
simonb-timecounters-base,
peter-altq-base,
peter-altq,
elad-kernelauth-base,
elad-kernelauth
Branch point for: yamt-pdpolicy,
simonb-timecounters,
rpaulo-netinet-merge-pcb,
chap-midi
Changes since 1.37: +4 -4
lines
Diff to previous 1.37 (colored)
GDT data and code entries for 32bit mode should use VM_MAXUSER_ADDRESS32
Revision 1.37 / (download) - annotate - [select for diffs], Fri Dec 30 13:37:57 2005 UTC (7 years, 5 months ago) by jmmv
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.36: +2 -19
lines
Diff to previous 1.36 (colored)
Add a 'struct bootinfo' to represent the bootinfo structure used in the kernel by x86 platforms (instead of a simple char *). This way, the code in, e.g., lookup_bootinfo, is a bit easier to understand. While here, move the lookup_bootinfo function used in x86 platforms (amd64, i386 and xen) to a common file (x86/x86_machdep.c), as it was exactly the same in all of them.
Revision 1.36 / (download) - annotate - [select for diffs], Sat Dec 24 20:06:47 2005 UTC (7 years, 5 months ago) by perry
Branch: MAIN
Changes since 1.35: +3 -3
lines
Diff to previous 1.35 (colored)
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
Revision 1.35 / (download) - annotate - [select for diffs], Sun Dec 11 12:16:21 2005 UTC (7 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.34: +2 -2
lines
Diff to previous 1.34 (colored)
merge ktrace-lwp.
Revision 1.34 / (download) - annotate - [select for diffs], Sun May 15 21:37:46 2005 UTC (8 years, 1 month ago) by fvdl
Branch: MAIN
CVS Tags: yamt-vop-base3,
yamt-vop-base2,
yamt-vop-base,
yamt-vop,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead,
thorpej-vnode-attr-base,
thorpej-vnode-attr,
ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.33: +112 -19
lines
Diff to previous 1.33 (colored)
Optionally include saving and restoring the 64bit %gs and %fs base register values in the PCB. Do this in pmap_activate for now (XXX not a good place for it, but a convenient one).
Revision 1.33 / (download) - annotate - [select for diffs], Mon Apr 25 15:02:02 2005 UTC (8 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.32: +3 -3
lines
Diff to previous 1.32 (colored)
Move the MI printing of `copyright' to the MD cpu_startup() code where the printing of `version' is already performed. This has the benefit of allowing the copyright to be available via dmesg(8) on platforms which need the `msgbuf' to be setup in cpu_startup() before printed output is remembered.
Revision 1.32 / (download) - annotate - [select for diffs], Fri Apr 1 11:59:22 2005 UTC (8 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.31: +4 -3
lines
Diff to previous 1.31 (colored)
merge yamt-km branch. - don't use managed mappings/backing objects for wired memory allocations. save some resources like pv_entry. also fix (most of) PR/27030. - simplify kernel memory management API. - simplify pmap bootstrap of some ports. - some related cleanups.
Revision 1.31 / (download) - annotate - [select for diffs], Wed Oct 20 04:20:05 2004 UTC (8 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-km-base4,
yamt-km-base3,
yamt-km-base2,
yamt-km-base,
netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
matt-timespec,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: yamt-km,
netbsd-3,
kent-audio2
Changes since 1.30: +7 -7
lines
Diff to previous 1.30 (colored)
Move boot device detection code from i386 and amd64 ports to x86_autoconf.c. Rename i386_alldisks and x86_64_alldisks to x86_alldisks, adjust other references to compensate.
Revision 1.30 / (download) - annotate - [select for diffs], Thu Aug 5 13:31:38 2004 UTC (8 years, 10 months ago) by cube
Branch: MAIN
Changes since 1.29: +2 -3
lines
Diff to previous 1.29 (colored)
boothowto is already available through sys/systm.h, and is actually declared elsewhere; don't duplicate it.
Revision 1.29 / (download) - annotate - [select for diffs], Wed Jun 16 10:13:46 2004 UTC (9 years ago) by fvdl
Branch: MAIN
Changes since 1.28: +4 -3
lines
Diff to previous 1.28 (colored)
Start at the top of the double fault stack, not the bottom.
Revision 1.28 / (download) - annotate - [select for diffs], Wed Jun 16 10:01:31 2004 UTC (9 years ago) by fvdl
Branch: MAIN
Changes since 1.27: +6 -2
lines
Diff to previous 1.27 (colored)
Remove IDT protection while doing unsetgate too.
Revision 1.27 / (download) - annotate - [select for diffs], Tue Jun 15 11:35:27 2004 UTC (9 years ago) by fvdl
Branch: MAIN
Changes since 1.26: +17 -3
lines
Diff to previous 1.26 (colored)
Make the IDT read-only. It's only mapped R/W when really needed. Could catch disasters such as overwriting it. Should probably be made conditional on DIAGNOSTIC later, but there's no time-critical code involved here. Move the double fault stack away from the IPI stack. It's now shared between CPUs, but that's not a big deal; double faults are fatal and can't be recovered from.
Revision 1.26 / (download) - annotate - [select for diffs], Mon May 3 08:59:38 2004 UTC (9 years, 1 month ago) by toshii
Branch: MAIN
Changes since 1.25: +10 -2
lines
Diff to previous 1.25 (colored)
#include acpi.h and some others to be able to powerdown via acpi.
Revision 1.25 / (download) - annotate - [select for diffs], Sun Mar 28 15:46:14 2004 UTC (9 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.24: +22 -31
lines
Diff to previous 1.24 (colored)
We should ensure stack alignment _after_ subtracting sizeof(sigframe). Should fix PR bin/24948 by Wolfgang S. Rupprecht. (nuke getframe() completely because its interface doesn't support this, and it it used at one place only anyway)
Revision 1.24 / (download) - annotate - [select for diffs], Thu Mar 25 15:29:26 2004 UTC (9 years, 2 months ago) by drochner
Branch: MAIN
Changes since 1.23: +4 -16
lines
Diff to previous 1.23 (colored)
always use siginfo-style signal delivery for native programs
Revision 1.23 / (download) - annotate - [select for diffs], Wed Mar 24 15:34:47 2004 UTC (9 years, 2 months ago) by atatat
Branch: MAIN
Changes since 1.22: +10 -6
lines
Diff to previous 1.22 (colored)
Tango on sysctl_createv() and flags. The flags have all been renamed, and sysctl_createv() now uses more arguments.
Revision 1.22 / (download) - annotate - [select for diffs], Tue Mar 23 19:35:16 2004 UTC (9 years, 2 months ago) by drochner
Branch: MAIN
Changes since 1.21: +12 -3
lines
Diff to previous 1.21 (colored)
initialize the old "int 0x80" syscall only for COMPAT_16/NETBSD32, and the very old callgate for COMPAT_10/IBCS2
Revision 1.21 / (download) - annotate - [select for diffs], Mon Mar 1 12:06:02 2004 UTC (9 years, 3 months ago) by drochner
Branch: MAIN
Changes since 1.20: +4 -2
lines
Diff to previous 1.20 (colored)
set MDP_IRET in cpu_setmcontext() - the normal (fast) syscall exit is not able to propagate all register arguments
Revision 1.20 / (download) - annotate - [select for diffs], Fri Feb 13 11:36:20 2004 UTC (9 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.19: +3 -3
lines
Diff to previous 1.19 (colored)
Uppercase CPU, plural is CPUs.
Revision 1.19 / (download) - annotate - [select for diffs], Tue Dec 30 12:33:15 2003 UTC (9 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.18: +4 -104
lines
Diff to previous 1.18 (colored)
Replace the traditional buffer memory management -- based on fixed per buffer virtual memory reservation and a private pool of memory pages -- by a scheme based on memory pools. This allows better utilization of memory because buffers can now be allocated with a granularity finer than the system's native page size (useful for filesystems with e.g. 1k or 2k fragment sizes). It also avoids fragmentation of virtual to physical memory mappings (due to the former fixed virtual address reservation) resulting in better utilization of MMU resources on some platforms. Finally, the scheme is more flexible by allowing run-time decisions on the amount of memory to be used for buffers. On the other hand, the effectiveness of the LRU queue for buffer recycling may be somewhat reduced compared to the traditional method since, due to the nature of the pool based memory allocation, the actual least recently used buffer may release its memory to a pool different from the one needed by a newly allocated buffer. However, this effect will kick in only if the system is under memory pressure.
Revision 1.18 / (download) - annotate - [select for diffs], Sat Dec 6 17:35:44 2003 UTC (9 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.17: +24 -6
lines
Diff to previous 1.17 (colored)
Segment registers are only 16 bits wide, so only check 16 bits worth of them for validity in check_mcontext.
Revision 1.17 / (download) - annotate - [select for diffs], Thu Dec 4 19:38:21 2003 UTC (9 years, 6 months ago) by atatat
Branch: MAIN
Changes since 1.16: +50 -40
lines
Diff to previous 1.16 (colored)
Dynamic sysctl. Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(), vfs_sysctl(), etc, routines, along with sysctl_int() et al. Now all nodes are registered with the tree, and nodes can be added (or removed) easily, and I/O to and from the tree is handled generically. Since the nodes are registered with the tree, the mapping from name to number (and back again) can now be discovered, instead of having to be hard coded. Adding new nodes to the tree is likewise much simpler -- the new infrastructure handles almost all the work for simple types, and just about anything else can be done with a small helper function. All existing nodes are where they were before (numerically speaking), so all existing consumers of sysctl information should notice no difference. PS - I'm sorry, but there's a distinct lack of documentation at the moment. I'm working on sysctl(3/8/9) right now, and I promise to watch out for buses.
Revision 1.16 / (download) - annotate - [select for diffs], Thu Dec 4 13:05:15 2003 UTC (9 years, 6 months ago) by keihan
Branch: MAIN
Changes since 1.15: +3 -3
lines
Diff to previous 1.15 (colored)
netbsd.org -> NetBSD.org All "netbsd.org" is now gone from src/sys/arch.
Revision 1.15 / (download) - annotate - [select for diffs], Mon Dec 1 00:00:07 2003 UTC (9 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.14: +3 -3
lines
Diff to previous 1.14 (colored)
Don't use an alternate stack for the trace/breakpoint trap. It can be called from userspace, and that messes things up. Thanks to Mark Kettenis to pointing out that not using an alt stack solved the "loop on gdb sig continuation" issue.
Revision 1.14 / (download) - annotate - [select for diffs], Sun Oct 19 18:14:42 2003 UTC (9 years, 8 months ago) by fvdl
Branch: MAIN
Changes since 1.13: +10 -2
lines
Diff to previous 1.13 (colored)
Don't use err and trapno from a copied in mcontext.
Revision 1.13 / (download) - annotate - [select for diffs], Fri Oct 17 16:24:31 2003 UTC (9 years, 8 months ago) by fvdl
Branch: MAIN
Changes since 1.12: +3 -3
lines
Diff to previous 1.12 (colored)
Put the ucontext pointer in %r15 for signal delivery, so that it is saved across the handler call.
Revision 1.12 / (download) - annotate - [select for diffs], Wed Oct 15 09:44:55 2003 UTC (9 years, 8 months ago) by drochner
Branch: MAIN
Changes since 1.11: +3 -3
lines
Diff to previous 1.11 (colored)
fix typo (harmless as long as pmap_update() is a noop)
Revision 1.11 / (download) - annotate - [select for diffs], Tue Oct 14 22:33:29 2003 UTC (9 years, 8 months ago) by fvdl
Branch: MAIN
Changes since 1.10: +5 -3
lines
Diff to previous 1.10 (colored)
Proper checks for kmem reads beyond _end
Revision 1.10 / (download) - annotate - [select for diffs], Mon Oct 13 18:45:59 2003 UTC (9 years, 8 months ago) by fvdl
Branch: MAIN
Changes since 1.9: +28 -4
lines
Diff to previous 1.9 (colored)
Do checks on passed in context values (sigreturn/setcontext) explicitly; can't rely on catching the trap on iret for a few reasons.
Revision 1.9 / (download) - annotate - [select for diffs], Wed Oct 8 19:58:54 2003 UTC (9 years, 8 months ago) by fvdl
Branch: MAIN
Changes since 1.8: +3 -3
lines
Diff to previous 1.8 (colored)
Adapt for ksiginfo changes.
Revision 1.8 / (download) - annotate - [select for diffs], Mon Oct 6 22:53:47 2003 UTC (9 years, 8 months ago) by fvdl
Branch: MAIN
Changes since 1.7: +82 -146
lines
Diff to previous 1.7 (colored)
SIGINFO support. Todo: 32bit compat support (COMPAT_NETBSD32 will not compile right now, as it won't on other platforms).
Revision 1.7 / (download) - annotate - [select for diffs], Fri Sep 26 12:02:56 2003 UTC (9 years, 8 months ago) by simonb
Branch: MAIN
Changes since 1.6: +3 -3
lines
Diff to previous 1.6 (colored)
Fix "constify sendsig/trapsignal" fallout for non-siginfo'd archs. Test compiled on most architectures.
Revision 1.6 / (download) - annotate - [select for diffs], Thu Aug 7 16:26:35 2003 UTC (9 years, 10 months ago) by agc
Branch: MAIN
Changes since 1.5: +3 -7
lines
Diff to previous 1.5 (colored)
Move UCB-licensed code from 4-clause to 3-clause licence. Patches provided by Joel Baker in PR 22364, verified by myself.
Revision 1.5 / (download) - annotate - [select for diffs], Mon Jul 14 23:32:31 2003 UTC (9 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.4: +4 -1
lines
Diff to previous 1.4 (colored)
__KERNEL_RCSID()
Revision 1.4 / (download) - annotate - [select for diffs], Mon Jun 23 11:01:02 2003 UTC (9 years, 11 months ago) by martin
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.3: +2 -1
lines
Diff to previous 1.3 (colored)
Make sure to include opt_foo.h if a defflag option FOO is used.
Revision 1.3 / (download) - annotate - [select for diffs], Wed May 7 22:58:18 2003 UTC (10 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.2: +18 -1
lines
Diff to previous 1.2 (colored)
Set up lkm_map in range of kernel text.
Revision 1.2 / (download) - annotate - [select for diffs], Sun May 4 12:00:14 2003 UTC (10 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.1: +5 -3
lines
Diff to previous 1.1 (colored)
Correct save FP state for signals.
Revision 1.1 / (download) - annotate - [select for diffs], Sat Apr 26 18:39:29 2003 UTC (10 years, 1 month ago) by fvdl
Branch: MAIN
Rename the x86_64 port to amd64, as this is the actual name used for the processor family now. x86_64 is kept as the MACHINE_ARCH value, since it's already widely used (by e.g. the toolchain, etc), and by other operating systems.