The NetBSD Project

CVS log for src/sys/arch/amd64/include/types.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / amd64 / include

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.69.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:14 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.69: +4 -3 lines
Diff to previous 1.69 (colored) next main 1.70 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD.

Revision 1.70.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 21:44:40 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored) next main 1.71 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD.

Revision 1.71 / (download) - annotate - [select for diffs], Thu Apr 1 04:35:45 2021 UTC (2 years, 11 months ago) by simonb
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored) to selected 1.41.10.1 (colored)

Whitespace: #define<tab>

Revision 1.70 / (download) - annotate - [select for diffs], Sat Jan 23 19:38:52 2021 UTC (3 years, 2 months ago) by christos
Branch: MAIN
Branch point for: thorpej-cfargs
Changes since 1.69: +2 -1 lines
Diff to previous 1.69 (colored) to selected 1.41.10.1 (colored)

Document via __HAVE_BUS_SPACE_8 platforms that implement bus_space_*_8

Revision 1.69 / (download) - annotate - [select for diffs], Sat Aug 1 12:14:39 2020 UTC (3 years, 7 months ago) by jdolecek
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.68: +1 -4 lines
Diff to previous 1.68 (colored) to selected 1.41.10.1 (colored)

move __HAVE_PCI_MSI_MSIX to <x86/pci_machdep_common.h>

Revision 1.68 / (download) - annotate - [select for diffs], Mon May 4 15:55:56 2020 UTC (3 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.67: +4 -4 lines
Diff to previous 1.67 (colored) to selected 1.41.10.1 (colored)

add support for using MSI for XenPV Dom0

use PHYSDEVOP_map_pirq to get the pirq/gsi for MSI/MSI-X, switch also INTx
to use it instead of PHYSDEVOP_alloc_irq_vector

MSI confirmed working with single-vector MSI for wm(4), ahcisata(4), bge(4)

XXX added some provision for MSI-X, but it doesn't actually work (no interrupts
delivered), needs some further investigation; disable MSI-X for XENPV
via flag in x86/pci/pci_machdep.c

Revision 1.67 / (download) - annotate - [select for diffs], Sat Apr 25 15:26:16 2020 UTC (3 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.66: +1 -1 lines
Diff to previous 1.66 (colored) to selected 1.41.10.1 (colored)

Merge the bouyer-xenpvh branch, bringing in Xen PV drivers support under HVM
guests in GENERIC.
Xen support can be disabled at runtime with
boot -c
disable hypervisor

Revision 1.55.2.4 / (download) - annotate - [select for diffs], Tue Apr 21 18:42:03 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.55.2.3: +0 -1 lines
Diff to previous 1.55.2.3 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Mon Apr 20 11:28:51 2020 UTC (3 years, 11 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.65: +1 -2 lines
Diff to previous 1.65 (colored) next main 1.66 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD

Revision 1.55.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:30 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.55.2.2: +9 -1 lines
Diff to previous 1.55.2.2 (colored) to branchpoint 1.55 (colored) to selected 1.41.10.1 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.66 / (download) - annotate - [select for diffs], Mon Apr 13 07:09:50 2020 UTC (3 years, 11 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20200421, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Changes since 1.65: +1 -2 lines
Diff to previous 1.65 (colored) to selected 1.41.10.1 (colored)

Add KASAN-DMA support on aarch64, same as amd64. Discussed with skrll@.

Revision 1.55.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:26 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.55.2.1: +2 -1 lines
Diff to previous 1.55.2.1 (colored) to branchpoint 1.55 (colored) to selected 1.41.10.1 (colored)

Merge changes from current as of 20200406

Revision 1.65 / (download) - annotate - [select for diffs], Tue Mar 17 17:18:49 2020 UTC (4 years ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base
Branch point for: bouyer-xenpvh
Changes since 1.64: +2 -1 lines
Diff to previous 1.64 (colored) to selected 1.41.10.1 (colored)

Add a redzone between the pcb and the stack. Sent to port-amd64@.

Revision 1.64 / (download) - annotate - [select for diffs], Thu Nov 14 16:23:52 2019 UTC (4 years, 4 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20191119, is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.63: +3 -2 lines
Diff to previous 1.63 (colored) to selected 1.41.10.1 (colored)

Add support for Kernel Memory Sanitizer (kMSan). It detects uninitialized
memory used by the kernel at run time, and just like kASan and kCSan, it
is an excellent feature. It has already detected 38 uninitialized variables
in the kernel during my testing, which I have since discreetly fixed.

We use two shadows:
 - "shad", to track uninitialized memory with a bit granularity (1:1).
   Each bit set to 1 in the shad corresponds to one uninitialized bit of
   real kernel memory.
 - "orig", to track the origin of the memory with a 4-byte granularity
   (1:1). Each uint32_t cell in the orig indicates the origin of the
   associated uint32_t of real kernel memory.

The memory consumption of these shadows is consequent, so at least 4GB of
RAM is recommended to run kMSan.

The compiler inserts calls to specific __msan_* functions on each memory
access, to manage both the shad and the orig and detect uninitialized
memory accesses that change the execution flow (like an "if" on an
uninitialized variable).

We mark as uninit several types of memory buffers (stack, pools, kmem,
malloc, uvm_km), and check each buffer passed to copyout, copyoutstr,
bwrite, if_transmit_lock and DMA operations, to detect uninitialized memory
that leaves the system. This allows us to detect kernel info leaks in a way
that is more efficient and also more user-friendly than KLEAK.

Contrary to kASan, kMSan requires comprehensive coverage, ie we cannot
tolerate having one non-instrumented function, because this could cause
false positives. kMSan cannot instrument ASM functions, so I converted
most of them to __asm__ inlines, which kMSan is able to instrument. Those
that remain receive special treatment.

Contrary to kASan again, kMSan uses a TLS, so we must context-switch this
TLS during interrupts. We use different contexts depending on the interrupt
level.

The orig tracks precisely the origin of a buffer. We use a special encoding
for the orig values, and pack together in each uint32_t cell of the orig:
 - a code designating the type of memory (Stack, Pool, etc), and
 - a compressed pointer, which points either (1) to a string containing
   the name of the variable associated with the cell, or (2) to an area
   in the kernel .text section which we resolve to a symbol name + offset.

This encoding allows us not to consume extra memory for associating
information with each cell, and produces a precise output, that can tell
for example the name of an uninitialized variable on the stack, the
function in which it was pushed on the stack, and the function where we
accessed this uninitialized variable.

kMSan is available with LLVM, but not with GCC.

The code is organized in a way that is similar to kASan and kCSan, so it
means that other architectures than amd64 can be supported.

Revision 1.63 / (download) - annotate - [select for diffs], Fri Oct 4 06:27:42 2019 UTC (4 years, 5 months ago) by maxv
Branch: MAIN
Changes since 1.62: +2 -1 lines
Diff to previous 1.62 (colored) to selected 1.41.10.1 (colored)

Add DMA instrumentation in KASAN. We note the original buffer and length in
the map, and check the buffer on each bus_dmamap_sync. This allows us to
find DMA buffer overflows and UAFs, which couldn't be found before because
the device accesses to memory are outside of KASAN's control.

Revision 1.62 / (download) - annotate - [select for diffs], Mon Sep 23 23:06:26 2019 UTC (4 years, 6 months ago) by kamil
Branch: MAIN
Changes since 1.61: +4 -1 lines
Diff to previous 1.61 (colored) to selected 1.41.10.1 (colored)

Disable __NO_STRICT_ALIGNMENT on amd64/i386 for UBSan builds

This change allows to pick code paths in the kernel that are tuned for
alignment sensitive (and stricted in C meaning) code paths. In particular
the IPv6 code uses this heavily and skips whenever possible the process
of aligning of networking data.

With this modification all ATF tests are executed on amd64 without
triggering any UBSan reports in dmesg.

In theory __NO_STRICT_ALIGNMENT could be tuned for vax and m68k, however
these machines are still unsupported in LLVM sanitizers and syzkaller.

sys/netinet6/scope6.c:404:6, member access within misaligned address 0xfffffaea81276086 for type 'struct in6_addr' which requires 4 byte alignment
Reported-by: syzbot+a86f58d17685317b3df9@syzkaller.appspotmail.com

sys/net/rtsock_shared.c:629:41, member access within misaligned address 0xffffddb5db3ff04c for type 'struct rt_msghdr50' which requires 8 byte alignment
Reported-by: syzbot+0a3a022bc9d2b8880c16@syzkaller.appspotmail.com

Revision 1.61 / (download) - annotate - [select for diffs], Sun Sep 22 10:35:12 2019 UTC (4 years, 6 months ago) by maxv
Branch: MAIN
Changes since 1.60: +4 -1 lines
Diff to previous 1.60 (colored) to selected 1.41.10.1 (colored)

Fix KASAN on aarch64: the bus_space_* functions are macros, so we can't
redefine them. Introduce __HAVE_KASAN_INSTR_BUS, which indicates whether
to instrument the bus functions. Defined on amd64 only.

Revision 1.55.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:47 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.55: +8 -6 lines
Diff to previous 1.55 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD

Revision 1.60 / (download) - annotate - [select for diffs], Sat Apr 6 03:06:24 2019 UTC (4 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Changes since 1.59: +2 -1 lines
Diff to previous 1.59 (colored) to selected 1.41.10.1 (colored)

Overhaul the API used to fetch and store individual memory cells in
userspace.  The old fetch(9) and store(9) APIs (fubyte(), fuword(),
subyte(), suword(), etc.) are retired and replaced with new ufetch(9)
and ustore(9) APIs that can return proper error codes, etc. and are
implemented consistently across all platforms.  The interrupt-safe
variants are no longer supported (and several of the existing attempts
at fuswintr(), etc. were buggy and not actually interrupt-safe).

Also augmement the ucas(9) API, making it consistently available on
all plaforms, supporting uniprocessor and multiprocessor systems, even
those that do not have CAS or LL/SC primitives.

Welcome to NetBSD 8.99.37.

Revision 1.59 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:32 2019 UTC (5 years, 1 month ago) by cherry
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored) to selected 1.41.10.1 (colored)

We reorganise definitions for XEN source support as follows:

XEN - common sources required for baseline XEN support.
XENPV - sources required for support of XEN in PV mode.
XENPVHVM - sources required for support for XEN in HVM mode.
XENPVH - sources required for support for XEN in PVH mode.

Revision 1.54.2.4 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:17 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.54.2.3: +3 -3 lines
Diff to previous 1.54.2.3 (colored) to branchpoint 1.54 (colored) next main 1.55 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.58 / (download) - annotate - [select for diffs], Thu Nov 15 04:59:02 2018 UTC (5 years, 4 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored) to selected 1.41.10.1 (colored)

Make the direct-map API always available, but fail if KASAN or rump.

(Only for architectures that support it at all; on others,
__HAVE_MM_MD_DIRECT_MAPPED_PHYS/IO are still undefined and the
functions unimplemented.)

This gives modules like zfs an opportunity to use it.

While here, fix the one caller of mm_md_direct_mapped_phys that
ignored the return value (and make sure to call pmap_kremove/update
before uvm_km_free).

Revision 1.54.2.3 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:24 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.54.2.2: +4 -1 lines
Diff to previous 1.54.2.2 (colored) to branchpoint 1.54 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.57 / (download) - annotate - [select for diffs], Mon Aug 20 15:04:51 2018 UTC (5 years, 7 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.56: +4 -1 lines
Diff to previous 1.56 (colored) to selected 1.41.10.1 (colored)

Add support for kASan on amd64. Written by me, with some parts inspired
from Siddharth Muralee's initial work. This feature can detect several
kinds of memory bugs, and it's an excellent feature.

It can be enabled by uncommenting these three lines in GENERIC:

	#makeoptions 	KASAN=1		# Kernel Address Sanitizer
	#options 	KASAN
	#no options	SVS

The kernel is compiled without SVS, without DMAP and without PCPU area.
A shadow area is created at boot time, and it can cover the upper 128TB
of the address space. This area is populated gradually as we allocate
memory. With this design the memory consumption is kept at its lowest
level.

The compiler calls the __asan_* functions each time a memory access is
done. We verify whether this access is legal by looking at the shadow
area.

We declare our own special memcpy/memset/etc functions, because the
compiler's builtins don't add the __asan_* instrumentation.

Initially all the mappings are marked as valid. During dynamic
allocations, we add a redzone, which we mark as invalid. Any access on
it will trigger a kASan error message. Additionally, the compiler adds
a redzone on global variables, and we mark these redzones as invalid too.
The illegal-access detection works with a 1-byte granularity.

For now, we cover three areas:

	- global variables
	- kmem_alloc-ated areas
	- malloc-ated areas

More will come, but that's a good start.

Revision 1.54.2.2 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:26 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.54.2.1: +1 -3 lines
Diff to previous 1.54.2.1 (colored) to branchpoint 1.54 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD

Revision 1.56 / (download) - annotate - [select for diffs], Thu Jul 12 10:46:41 2018 UTC (5 years, 8 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-0728
Changes since 1.55: +1 -3 lines
Diff to previous 1.55 (colored) to selected 1.41.10.1 (colored)

Remove the kernel PMC code. Sent yesterday on tech-kern@.

This change:

 * Removes "options PERFCTRS", the associated includes, and the associated
   ifdefs. In doing so, it removes several XXXSMPs in the MI code, which is
   good.

 * Removes the PMC code of ARM XSCALE.

 * Removes all the pmc.h files. They were all empty, except for ARM XSCALE.

 * Reorders the x86 PMC code not to rely on the legacy pmc.h file. The
   definitions are put in sysarch.h.

 * Removes the kern/sys_pmc.c file, and along with it, the sys_pmc_control
   and sys_pmc_get_info syscalls. They are marked as OBSOL in kern,
   netbsd32 and rump.

 * Removes the pmc_evid_t and pmc_ctr_t types.

 * Removes all the associated man pages. The sets are marked as obsolete.

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Thu Mar 22 01:44:41 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.54: +1 -2 lines
Diff to previous 1.54 (colored) to selected 1.41.10.1 (colored)

Synch with HEAD, resolve conflicts

Revision 1.52.6.2 / (download) - annotate - [select for diffs], Sat Mar 17 11:23:18 2018 UTC (6 years ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.52.6.1: +1 -2 lines
Diff to previous 1.52.6.1 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored) to selected 1.41.10.1 (colored)

Pull up the following revisions, requested by maxv in ticket #637:

	sys/arch/amd64/amd64/process_machdep.c	1.33,1.34,1.35 (patch)
	sys/arch/amd64/include/types.h		1.55 (patch)
	sys/arch/x86/x86/vm_machdep.c		1.33 (patch)

- Reduce the number of places where segment register faults can
  occur.
- Remove __HAVE_CPU_UAREA_ROUTINES.

Revision 1.52.6.1 / (download) - annotate - [select for diffs], Fri Mar 16 13:17:56 2018 UTC (6 years ago) by martin
Branch: netbsd-8
Changes since 1.52: +2 -1 lines
Diff to previous 1.52 (colored) to selected 1.41.10.1 (colored)

Pull up the following revisions (via patch), requested by maxv in #635:

	sys/arch/amd64/amd64/gdt.c		1.39-1.45 (patch)
	sys/arch/amd64/amd64/amd64/machdep.c	1.284,1.287,1.288 (patch)
	sys/arch/amd64/amd64/include/param.h	1.23 (patch)
	sys/arch/amd64/include/types.h		1.53 (patch)
	sys/arch/x86/include/cpu.h		1.87 (patch)
	sys/arch/x86/include/pmap.h		1.73,1.74 (patch)
	sys/arch/x86/x86/cpu.c			1.142 (patch)
	sys/arch/x86/x86/intr.c			1.117 (partial),1.120 (patch)
	sys/arch/x86/x86/pmap.c			1.276 (patch)

Initialize ist0 in cpu_init_tss.
Backport __HAVE_PCPU_AREA.

Revision 1.55 / (download) - annotate - [select for diffs], Fri Mar 16 12:19:35 2018 UTC (6 years ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322
Branch point for: phil-wifi
Changes since 1.54: +1 -2 lines
Diff to previous 1.54 (colored) to selected 1.41.10.1 (colored)

Remove the __HAVE_CPU_UAREA_ROUTINES code from x86.

It was available only in amd64, and I disabled it a few months ago in
order to support SVS. Regardless of SVS this option was questionable,
since it made stack overflows more difficult to detect.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Jan 11 09:00:04 2018 UTC (6 years, 2 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored) to selected 1.41.10.1 (colored)

Declare new SVS_* variants: SVS_ENTER_NOSTACK and SVS_LEAVE_NOSTACK. Use
SVS_ENTER_NOSTACK in the syscall entry point, and put it before the code
that touches curlwp. (curlwp is located in the direct map.)

Then, disable __HAVE_CPU_UAREA_ROUTINES (to be removed later). This moves
the kernel stack into pmap_kernel(), and not the direct map. That's a
change I've always wanted to make: because of the direct map we can't add
a redzone on the stack, and basically, a stack overflow can go very far
in memory without being detected (as far as erasing all of the system's
memory).

Finally, unmap the direct map from userland.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Jan 5 08:04:21 2018 UTC (6 years, 2 months ago) by maxv
Branch: MAIN
Changes since 1.52: +2 -1 lines
Diff to previous 1.52 (colored) to selected 1.41.10.1 (colored)

Add a __HAVE_PCPU_AREA option, enabled by default on native amd64 but not
Xen.

With this option, the CPU structures that must always be present in the
CPU's page tables are moved on L4 slot 384, which means address
0xffffc00000000000.

A new pcpu_area structure is defined. It contains shared structures (IDT,
LDT), and then an array of pcpu_entry structures, indexed by cpu_index(ci).
Theoretically the LDT should be in the array, but this will be done later.

During the boot procedure, cpu0 calls pmap_init_pcpu, which creates a
page tree that is able to map the pcpu_area structure entirely. cpu0 then
immediately maps the shared structures. Later, every CPU goes through
cpu_pcpuarea_init, which allocates physical pages and kenters the relevant
pcpu_entry to them. Finally, each pointer is replaced to point to pcpuarea.

The point of this change is to make sure that the structures that must
always be present in the page tables have their own L4 slot. Until now
their L4 slot was that of pmap_kernel, and making a distinction between
what must be mapped and what does not need to be was complicated.

Even in the non-speculative-bug case this change makes some sense: there
are several x86 instructions that leak the addresses of the CPU structures,
and putting these structures inside pmap_kernel actually offered a way to
compute the address of the kernel heap - which would have made ASLR on it
plainly useless, had we implemented that.

Note that, for now, pcpuarea does not contain rsp0.

Unfortunately this change adds many #ifdefs, and makes the code harder to
understand. There is also some duplication, but that will be solved later.

Revision 1.41.6.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:35:47 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.41.6.1: +13 -7 lines
Diff to previous 1.41.6.1 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored) to selected 1.41.10.1 (colored)

update from HEAD

Revision 1.51.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:22 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.51: +5 -4 lines
Diff to previous 1.51 (colored) next main 1.52 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD

Revision 1.51.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:10 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.51: +5 -4 lines
Diff to previous 1.51 (colored) next main 1.52 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD

Revision 1.45.6.4 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:02 2017 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.45.6.3: +5 -4 lines
Diff to previous 1.45.6.3 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD

Revision 1.52 / (download) - annotate - [select for diffs], Thu Jan 26 15:55:09 2017 UTC (7 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.51: +5 -4 lines
Diff to previous 1.51 (colored) to selected 1.41.10.1 (colored)

provide __HAVE_COMPAT_NETBSD32 and fix multiple include protection consistently.

Revision 1.45.6.3 / (download) - annotate - [select for diffs], Sat Mar 19 11:29:54 2016 UTC (8 years ago) by skrll
Branch: nick-nhusb
Changes since 1.45.6.2: +6 -4 lines
Diff to previous 1.45.6.2 (colored) to branchpoint 1.45 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD

Revision 1.51 / (download) - annotate - [select for diffs], Sat Feb 27 00:09:45 2016 UTC (8 years, 1 month ago) by tls
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.50: +1 -0 lines
Diff to previous 1.50 (colored) to selected 1.41.10.1 (colored)

Add cpu_rng, a framework for simple on-CPU random number generators.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Jan 23 22:31:19 2016 UTC (8 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored) to selected 1.41.10.1 (colored)

expose the kernel types for standalone code.

Revision 1.49 / (download) - annotate - [select for diffs], Sat Jan 23 21:22:13 2016 UTC (8 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.48: +5 -4 lines
Diff to previous 1.48 (colored) to selected 1.41.10.1 (colored)

Hide {p,v}{addr,size}_t and register_t (and a couple more types that
are machine-specific) from userland unless _KERNEL/_KMEMUSER and a
new _KERNTYPES variables is defined. The _KERNTYPES should be fixed
for many subsystems that should not be using it (rump)...

Revision 1.45.6.2 / (download) - annotate - [select for diffs], Tue Sep 22 12:05:36 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.45.6.1: +5 -3 lines
Diff to previous 1.45.6.1 (colored) to branchpoint 1.45 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD

Revision 1.48 / (download) - annotate - [select for diffs], Thu Aug 27 12:30:50 2015 UTC (8 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored) to selected 1.41.10.1 (colored)

Fix PTHREAD_FOO_INITIALIZER for C++ by not using volatile in the relevant
pthread types in C++ builds, attempt 2.

The problem with attempt 1 was making assumptions of what the MD
__cpu_simple_lock_t (declared volatile) looks like.  To get a same type
except non-volatile, we change the MD type to __cpu_simple_lock_nv_t
and typedef __cpu_simple_lock_t as a volatile __cpu_simple_lock_nv_t.
IMO, __cpu_simple_lock_t should not be volatile at all, but changing it
now is too risky.

Fixes at least Rumprun w/ gcc 5.1/5.2.  Furthermore, the mpd application
(and possibly others) will no longer require NetBSD-specific patches.

Tested: build.sh for i386, Rumprun for x86_64 w/ gcc 5.2.

Based on the patch from Christos in lib/49989.

Revision 1.47 / (download) - annotate - [select for diffs], Fri Aug 21 14:22:14 2015 UTC (8 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.46: +3 -1 lines
Diff to previous 1.46 (colored) to selected 1.41.10.1 (colored)

Make it possible to explicitly disable MSI/MSIX with NO_PCI_MSI_MSIX.

Some platforms, e.g. linux uio-pci-generic, do not support MSI at all.

XXX: does MSI being defined intentionally depend on _KERNEL_OPT on amd64
but not i386?

Revision 1.45.6.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:39:54 2015 UTC (8 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.45: +2 -1 lines
Diff to previous 1.45 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD

Revision 1.46 / (download) - annotate - [select for diffs], Mon Apr 27 07:03:57 2015 UTC (8 years, 11 months ago) by knakahara
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.45: +2 -1 lines
Diff to previous 1.45 (colored) to selected 1.41.10.1 (colored)

add x86 MD MSI/MSI-X support code.

Revision 1.41.6.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:42 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.41: +4 -1 lines
Diff to previous 1.41 (colored) to selected 1.41.10.1 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.39.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:39:28 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.39.2.1: +4 -1 lines
Diff to previous 1.39.2.1 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored) to selected 1.41.10.1 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.41.10.1 / (download) - annotate - [selected], Sun May 18 17:44:54 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.41: +4 -1 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

sync with head

Revision 1.45 / (download) - annotate - [select for diffs], Thu Apr 3 15:22:36 2014 UTC (9 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.44: +2 -1 lines
Diff to previous 1.44 (colored) to selected 1.41.10.1 (colored)

we have cpu_bootconf()

Revision 1.44 / (download) - annotate - [select for diffs], Thu Mar 20 20:45:32 2014 UTC (10 years ago) by christos
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Changes since 1.43: +3 -1 lines
Diff to previous 1.43 (colored) to selected 1.41.10.1 (colored)

make pmc compile with amd64

Revision 1.43 / (download) - annotate - [select for diffs], Sun Dec 1 01:05:16 2013 UTC (10 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Changes since 1.42: +1 -5 lines
Diff to previous 1.42 (colored) to selected 1.41.10.1 (colored)

revert fpu/pcu changes until we figure out what's wrong; they cause random
freezes

Revision 1.42 / (download) - annotate - [select for diffs], Wed Oct 23 20:18:50 2013 UTC (10 years, 5 months ago) by drochner
Branch: MAIN
Changes since 1.41: +6 -2 lines
Diff to previous 1.41 (colored) to selected 1.41.10.1 (colored)

Use the MI "pcu" framework for bookkeeping of npx/fpu states on x86.
This reduces the amount of MD code enormously, and makes it easier
to implement support for newer CPU features which require more fpu
state, or for fpu usage by the kernel.
For access to FPU state across CPUs, an xcall kthread is used now
rather than a dedicated IPI.
No user visible changes intended.

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:06:00 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.39: +9 -2 lines
Diff to previous 1.39 (colored) to selected 1.41.10.1 (colored)

sync with head

Revision 1.39.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:31:12 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.39: +9 -2 lines
Diff to previous 1.39 (colored) next main 1.40 (colored) to selected 1.41.10.1 (colored)

merge to -current.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Jan 21 16:48:56 2012 UTC (12 years, 2 months ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.40: +2 -1 lines
Diff to previous 1.40 (colored) to selected 1.41.10.1 (colored)

allocate uareas contiguously and access them via the direct map.

Revision 1.40 / (download) - annotate - [select for diffs], Sun Dec 4 16:24:13 2011 UTC (12 years, 3 months ago) by chs
Branch: MAIN
Changes since 1.39: +8 -2 lines
Diff to previous 1.39 (colored) to selected 1.41.10.1 (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.27.8.6 / (download) - annotate - [select for diffs], Sat Aug 27 15:37:23 2011 UTC (12 years, 7 months ago) by jym
Branch: jym-xensuspend
Changes since 1.27.8.5: +3 -2 lines
Diff to previous 1.27.8.5 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD. Most notably: uvm/pmap work done by rmind@, and MP Xen
work of cherry@.

No regression observed on suspend/restore.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Jul 6 18:46:04 2011 UTC (12 years, 8 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jym-xensuspend-nbase, jym-xensuspend-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored) to selected 1.41.10.1 (colored)

Implement bus_space_tag_create() and _destroy().

Factor bus_space_reserve(), bus_space_release(), et cetera out of
bus_space_alloc(), bus_space_map(), bus_space_free(), bus_space_unmap(),
et cetera.

For i386 and amd64, activate the use of <machine/bus_defs.h> and
<machine/bus_funcs.h> by #defining __HAVE_NEW_STYLE_BUS_H in
their respective types.h.  While I'm here, remove unnecessary
__HAVE_DEVICE_REGISTER #defines.

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:18:57 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.37: +2 -1 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.41.10.1 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.38 / (download) - annotate - [select for diffs], Sun Jun 12 03:35:38 2011 UTC (12 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.37: +2 -1 lines
Diff to previous 1.37 (colored) to selected 1.41.10.1 (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.35.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:04:51 2011 UTC (12 years, 9 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.35: +4 -1 lines
Diff to previous 1.35 (colored) next main 1.36 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD.

Revision 1.33.4.3 / (download) - annotate - [select for diffs], Thu Apr 21 01:40:48 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.33.4.2: +2 -0 lines
Diff to previous 1.33.4.2 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored) to selected 1.41.10.1 (colored)

sync with head

Revision 1.27.8.5 / (download) - annotate - [select for diffs], Mon Mar 28 23:04:36 2011 UTC (13 years ago) by jym
Branch: jym-xensuspend
Changes since 1.27.8.4: +4 -1 lines
Diff to previous 1.27.8.4 (colored) to branchpoint 1.27 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD. TODO before merge:
- shortcut for suspend code in sysmon, when powerd(8) is not running.
Borrow ``xs_watch'' thread context?
- bug hunting in xbd + xennet resume. Rings are currently thrashed upon
resume, so current implementation force flush them on suspend. It's not
really needed.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Mar 12 22:54:37 2011 UTC (13 years ago) by joerg
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.36: +3 -1 lines
Diff to previous 1.36 (colored) to selected 1.41.10.1 (colored)

Add TLS support for AMD64, i386 and SH3.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

Revision 1.33.4.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:49:17 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.33.4.1: +3 -1 lines
Diff to previous 1.33.4.1 (colored) to branchpoint 1.33 (colored) to selected 1.41.10.1 (colored)

sync with head

Revision 1.35.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 15:09:30 2011 UTC (13 years ago) by bouyer
Branch: bouyer-quota2
Changes since 1.35: +2 -1 lines
Diff to previous 1.35 (colored) next main 1.36 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD

Revision 1.36 / (download) - annotate - [select for diffs], Thu Feb 24 04:28:45 2011 UTC (13 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: bouyer-quota2-nbase
Changes since 1.35: +2 -1 lines
Diff to previous 1.35 (colored) to selected 1.41.10.1 (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.27.8.4 / (download) - annotate - [select for diffs], Mon Jan 10 00:37:29 2011 UTC (13 years, 2 months ago) by jym
Branch: jym-xensuspend
Changes since 1.27.8.3: +2 -1 lines
Diff to previous 1.27.8.3 (colored) to branchpoint 1.27 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD

Revision 1.35 / (download) - annotate - [select for diffs], Wed Dec 22 22:08:47 2010 UTC (13 years, 3 months ago) by njoly
Branch: MAIN
CVS Tags: uebayasi-xip-base7, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored) to selected 1.41.10.1 (colored)

__HAVE_CPU_INFO_FIRST -> __HAVE_CPU_DATA_FIRST.

Revision 1.34 / (download) - annotate - [select for diffs], Wed Dec 22 04:15:02 2010 UTC (13 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored) to selected 1.41.10.1 (colored)

Make __HAVE_CPU_DATA_FIRST true

Revision 1.27.8.3 / (download) - annotate - [select for diffs], Sun Oct 24 22:47:53 2010 UTC (13 years, 5 months ago) by jym
Branch: jym-xensuspend
Changes since 1.27.8.2: +11 -3 lines
Diff to previous 1.27.8.2 (colored) to branchpoint 1.27 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD

Revision 1.33.4.1 / (download) - annotate - [select for diffs], Thu Mar 18 04:36:47 2010 UTC (14 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored) to selected 1.41.10.1 (colored)

Unify /dev/{mem,kmem,zero,null} implementations in MI code.  Based on patch
from Joerg Sonnenberger, proposed on tech-kern@, in February 2008.

Work and depression still in progress.

Revision 1.26.6.2 / (download) - annotate - [select for diffs], Thu Mar 11 15:01:59 2010 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.26.6.1: +11 -3 lines
Diff to previous 1.26.6.1 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored) to selected 1.41.10.1 (colored)

sync with head

Revision 1.33 / (download) - annotate - [select for diffs], Fri Dec 11 05:52:03 2009 UTC (14 years, 3 months ago) by matt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-premerge-20091211
Branch point for: rmind-uvmplock
Changes since 1.32: +11 -3 lines
Diff to previous 1.32 (colored) to selected 1.41.10.1 (colored)

Add PRIx{P,V}{ADDR,SIZE}, PRIu{P,V}SIZE, and PRIxREGISTER{,32,64} for all
(except where they will be added via merge).  These should be used to print
{p,v}{addr,size}_t and register*_t as appropriate.

Revision 1.27.8.2 / (download) - annotate - [select for diffs], Sun Nov 1 13:58:54 2009 UTC (14 years, 4 months ago) by jym
Branch: jym-xensuspend
Changes since 1.27.8.1: +0 -0 lines
Diff to previous 1.27.8.1 (colored) to branchpoint 1.27 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD.

Revision 1.27.8.1 / (download) - annotate - [select for diffs], Wed May 13 17:16:09 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.27: +4 -2 lines
Diff to previous 1.27 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.26.6.1 / (download) - annotate - [select for diffs], Mon May 4 08:10:33 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.26: +15 -5 lines
Diff to previous 1.26 (colored) to selected 1.41.10.1 (colored)

sync with head.

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:33:39 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.27: +4 -2 lines
Diff to previous 1.27 (colored) next main 1.28 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD.

Revision 1.32 / (download) - annotate - [select for diffs], Sun Apr 19 14:11:36 2009 UTC (14 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, 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.31: +2 -1 lines
Diff to previous 1.31 (colored) to selected 1.41.10.1 (colored)

cpuctl:

- Add interrupt shielding (direct hardware interrupts away from the
  specified CPUs). Not documented just yet but will be soon.

- Redo /dev/cpu time_t compat so no kernel changes are needed.

x86:

- Make intr_establish, intr_disestablish safe to use when !cold.

- Distribute hardware interrupts among the CPUs, instead of directing
  everything to the boot CPU.

- Add MD code for interrupt sheilding. This works in most cases but there is
  a bug where delivery is not accepted by an LAPIC after redistribution. It
  also needs re-balancing to make things fair after interrupts are turned
  back on for a CPU.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Apr 5 00:57:56 2009 UTC (14 years, 11 months ago) by tsutsui
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored) to selected 1.41.10.1 (colored)

Use #define<tab> consistently.

Revision 1.30 / (download) - annotate - [select for diffs], Sun Apr 5 00:54:21 2009 UTC (14 years, 11 months ago) by tsutsui
Branch: MAIN
Changes since 1.29: +1 -2 lines
Diff to previous 1.29 (colored) to selected 1.41.10.1 (colored)

Remove __HAVE_UFS2_BOOT since it belongs to sysinst for now.
"Feel free to change it" by ad@.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Apr 4 10:36:09 2009 UTC (14 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored) to selected 1.41.10.1 (colored)

+__HAVE_UFS2_BOOT

Revision 1.28 / (download) - annotate - [select for diffs], Sun Mar 29 09:24:52 2009 UTC (15 years ago) by ad
Branch: MAIN
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored) to selected 1.41.10.1 (colored)

_lwp_setprivate: provide the value to MD code if a hook is present.

This will be used to support TLS. The MD method must match the ELF TLS spec
for that CPU architecture (if there is a spec).

At this time it is only implemented for i386, where it means setting the
per-thread base address for %gs. Please implement this for your platform!

Revision 1.26.2.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:27:49 2009 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.26.2.1: +90 -0 lines
Diff to previous 1.26.2.1 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD.

Revision 1.26.12.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:12:59 2008 UTC (15 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.26: +12 -4 lines
Diff to previous 1.26 (colored) next main 1.27 (colored) to selected 1.41.10.1 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Oct 26 00:08:15 2008 UTC (15 years, 5 months ago) by mrg
Branch: MAIN
CVS Tags: nick-hppapmap-base2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, jym-xensuspend
Changes since 1.26: +12 -4 lines
Diff to previous 1.26 (colored) to selected 1.41.10.1 (colored)

put the contents of these header files around #ifdef __x86_64__, and
#include the <i386/foo.h> in the #else clause, making these files
largely bit-size independant.

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:14:52 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored) next main 1.26 (colored) to selected 1.41.10.1 (colored)

sync with head.

Revision 1.16.10.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:03:53 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.16.10.2: +3 -5 lines
Diff to previous 1.16.10.2 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored) to selected 1.41.10.1 (colored)

sync with HEAD

Revision 1.9.16.9 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:18 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.9.16.8: +2 -1 lines
Diff to previous 1.9.16.8 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored) to selected 1.41.10.1 (colored)

sync with head.

Revision 1.26.2.1, Thu Feb 21 16:31:13 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.26: +0 -82 lines
FILE REMOVED

file types.h was added on branch mjf-devfs2 on 2009-01-17 13:27:49 +0000

Revision 1.26 / (download) - annotate - [select for diffs], Thu Feb 21 16:31:13 2008 UTC (16 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, matt-mips64-base2, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, hpcarm-cleanup-nbase, hpcarm-cleanup-base, haad-dm-base1, ad-socklock-base1
Branch point for: yamt-nfs-mp, mjf-devfs2, haad-dm
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored) to selected 1.41.10.1 (colored)

#define __HAVE_ATOMIC_AS_MEMBAR, indicating that:

- atomic_cas_ni() does an implicit membar_exit()
- all other atomic operations do an implicit membar_sync()

While this might seem kind of arbitrary it's the basis for some important
optimizations.

Revision 1.17.2.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:04:21 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.17.2.1: +2 -6 lines
Diff to previous 1.17.2.1 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD.

Revision 1.21.6.4 / (download) - annotate - [select for diffs], Wed Jan 23 19:27:10 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.21.6.3: +0 -2 lines
Diff to previous 1.21.6.3 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD.

Revision 1.9.16.8 / (download) - annotate - [select for diffs], Mon Jan 21 10:43:12 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.9.16.7: +1 -2 lines
Diff to previous 1.9.16.7 (colored) to branchpoint 1.9 (colored) to selected 1.41.10.1 (colored)

remove __HAVE_LAZY_MBUF for now as it's incompatible with in_cksum.S.

Revision 1.9.16.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:35:26 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.9.16.6: +2 -6 lines
Diff to previous 1.9.16.6 (colored) to branchpoint 1.9 (colored) to selected 1.41.10.1 (colored)

sync with head

Revision 1.25 / (download) - annotate - [select for diffs], Sun Jan 20 18:09:04 2008 UTC (16 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, bouyer-xeni386-nbase
Branch point for: keiichi-mipv6
Changes since 1.24: +1 -3 lines
Diff to previous 1.24 (colored) to selected 1.41.10.1 (colored)

Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.

Revision 1.21.6.3 / (download) - annotate - [select for diffs], Sat Jan 19 12:14:11 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.21.6.2: +1 -0 lines
Diff to previous 1.21.6.2 (colored) to branchpoint 1.21 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jan 15 14:50:10 2008 UTC (16 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: bouyer-xeni386-base
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored) to selected 1.41.10.1 (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.21.6.2 / (download) - annotate - [select for diffs], Thu Jan 10 23:43:09 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.21.6.1: +0 -2 lines
Diff to previous 1.21.6.1 (colored) to branchpoint 1.21 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD

Revision 1.16.10.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:44:55 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.16.10.1: +7 -4 lines
Diff to previous 1.16.10.1 (colored) to branchpoint 1.16 (colored) to selected 1.41.10.1 (colored)

sync with HEAD

Revision 1.21.6.1 / (download) - annotate - [select for diffs], Tue Jan 8 22:09:20 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.21: +1 -2 lines
Diff to previous 1.21 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD

Revision 1.23 / (download) - annotate - [select for diffs], Tue Jan 8 20:37:34 2008 UTC (16 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.22: +1 -3 lines
Diff to previous 1.22 (colored) to selected 1.41.10.1 (colored)

Switch Xen to generic TODR. Tested by Manuel Bouyer.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Jan 5 21:52:02 2008 UTC (16 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.21: +1 -2 lines
Diff to previous 1.21 (colored) to selected 1.41.10.1 (colored)

remove no longer necessary cpu_maxproc.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:16:30 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.17: +7 -3 lines
Diff to previous 1.17 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD.

Revision 1.9.16.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:24:06 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.9.16.5: +7 -3 lines
Diff to previous 1.9.16.5 (colored) to branchpoint 1.9 (colored) to selected 1.41.10.1 (colored)

sync with head

Revision 1.15.6.2 / (download) - annotate - [select for diffs], Mon Dec 3 18:34:43 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.15.6.1: +7 -3 lines
Diff to previous 1.15.6.1 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD.

Revision 1.16.8.2 / (download) - annotate - [select for diffs], Mon Dec 3 16:13:55 2007 UTC (16 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.16.8.1: +2 -1 lines
Diff to previous 1.16.8.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Nov 29 00:57:11 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored) to selected 1.41.10.1 (colored)

__HAVE_ATOMIC64_OPS

Revision 1.16.8.1 / (download) - annotate - [select for diffs], Tue Nov 27 19:35:34 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.16: +6 -3 lines
Diff to previous 1.16 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Nov 23 15:38:06 2007 UTC (16 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored) to selected 1.41.10.1 (colored)

Include opt_xen.h #ifdef _KERNEL_OPT instead of custom logic.
Thanks to Izumi Tsutsui for pointing me at _KERNEL_OPT

Revision 1.19 / (download) - annotate - [select for diffs], Thu Nov 22 21:21:14 2007 UTC (16 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored) to selected 1.41.10.1 (colored)

Fix bouyer-xenamd64 merge fallout:
we can #include "opt_xen.h" when
#if defined(_KERNEL) && !defined(_RUMPKERNEL) && !defined(_LKM),
#ifdef _KERNEL isn't enough.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Nov 22 16:16:45 2007 UTC (16 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.17: +5 -2 lines
Diff to previous 1.17 (colored) to selected 1.41.10.1 (colored)

Pull up the bouyer-xenamd64 branch to HEAD. This brings in amd64 support
to NetBSD/Xen, both Dom0 and DomU.

Revision 1.16.10.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:14:20 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.16: +1 -1 lines
Diff to previous 1.16 (colored) to selected 1.41.10.1 (colored)

sync with HEAD

Revision 1.16.14.1 / (download) - annotate - [select for diffs], Wed Oct 17 21:38:18 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.16: +5 -2 lines
Diff to previous 1.16 (colored) next main 1.17 (colored) to selected 1.41.10.1 (colored)

amd64 (aka x86-64) support for Xen. Based on the OpenBSD port done by
Mathieu Ropert in 2006.
DomU-only for now. An INSTALL_XEN3_DOMU kernel with a ramdisk will boot to
sysinst if you're lucky. Often it panics because a runable LWP has
a NULL stack (really, it's all of l->l_addr which is has been zeroed out
while the process was on the queue !)
TODO:
- bug fixes :)
- Most of the xpq_* functions should be shared with xen/i386
- The xen/i386 assembly bootstrap code should be remplaced with the C
  version in xenamd64/amd64/xpmap.c
- see if a config(5) trick could allow to merge xenamd64 back to xen or amd64.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Oct 17 19:53:04 2007 UTC (16 years, 5 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs
Changes since 1.16: +1 -1 lines
Diff to previous 1.16 (colored) to selected 1.41.10.1 (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.15.14.1 / (download) - annotate - [select for diffs], Wed Oct 3 19:22:14 2007 UTC (16 years, 5 months ago) by garbled
Branch: ppcoea-renovation
Changes since 1.15: +1 -2 lines
Diff to previous 1.15 (colored) next main 1.16 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD

Revision 1.9.16.5 / (download) - annotate - [select for diffs], Mon Sep 3 14:22:38 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.9.16.4: +1 -2 lines
Diff to previous 1.9.16.4 (colored) to branchpoint 1.9 (colored) to selected 1.41.10.1 (colored)

sync with head.

Revision 1.15.6.1 / (download) - annotate - [select for diffs], Sun Jul 15 13:15:24 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.15: +1 -2 lines
Diff to previous 1.15 (colored) to selected 1.41.10.1 (colored)

Sync with head.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Jul 14 21:48:17 2007 UTC (16 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, ppcoea-renovation-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.15: +1 -2 lines
Diff to previous 1.15 (colored) to selected 1.41.10.1 (colored)

Generic soft interrupts are mandatory.

Revision 1.15.12.1 / (download) - annotate - [select for diffs], Tue Apr 17 07:03:08 2007 UTC (16 years, 11 months ago) by thorpej
Branch: thorpej-atomic
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored) next main 1.16 (colored) to selected 1.41.10.1 (colored)

amd64 has 64-bit atomic ops

Revision 1.9.16.4 / (download) - annotate - [select for diffs], Mon Feb 26 09:05:44 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.9.16.3: +5 -2 lines
Diff to previous 1.9.16.3 (colored) to branchpoint 1.9 (colored) to selected 1.41.10.1 (colored)

sync with head.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:01 2007 UTC (17 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, yamt-idlelwp, thorpej-atomic-base, reinoud-bufcleanup, post-newlock2-merge, mjf-ufs-trans-base, mjf-ufs-trans, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, thorpej-atomic, ppcoea-renovation
Changes since 1.14: +5 -2 lines
Diff to previous 1.14 (colored) to selected 1.41.10.1 (colored)

Merge newlock2 to head.

Revision 1.9.16.3 / (download) - annotate - [select for diffs], Sat Dec 30 20:45:25 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.9.16.2: +2 -2 lines
Diff to previous 1.9.16.2 (colored) to branchpoint 1.9 (colored) to selected 1.41.10.1 (colored)

sync with head.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Fri Dec 29 20:27:41 2006 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.14: +5 -2 lines
Diff to previous 1.14 (colored) next main 1.15 (colored) to selected 1.41.10.1 (colored)

Checkpoint work in progress.

Revision 1.11.8.2 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:07 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.11.8.1: +2 -2 lines
Diff to previous 1.11.8.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored) to selected 1.41.10.1 (colored)

sync with head.

Revision 1.11.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:37:18 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.11: +3 -2 lines
Diff to previous 1.11 (colored) next main 1.12 (colored) to selected 1.41.10.1 (colored)

sync with head

Revision 1.14 / (download) - annotate - [select for diffs], Sun Sep 3 20:42:14 2006 UTC (17 years, 6 months ago) by perry
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, rpaulo-netinet-merge-pcb-base, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Branch point for: newlock2
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored) to selected 1.41.10.1 (colored)

temporarily turn on "__HAVE_GENERIC_TODR"

Revision 1.13 / (download) - annotate - [select for diffs], Sun Sep 3 13:51:23 2006 UTC (17 years, 6 months ago) by bjh21
Branch: MAIN
Changes since 1.12: +1 -2 lines
Diff to previous 1.12 (colored) to selected 1.41.10.1 (colored)

Nothing in the kernel now tests __HAVE_NWSCONS, so stop defining it everywhere.

Revision 1.11.8.1 / (download) - annotate - [select for diffs], Mon Jun 26 12:44:22 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored) to selected 1.41.10.1 (colored)

sync with head.

Revision 1.9.16.2 / (download) - annotate - [select for diffs], Wed Jun 21 14:48:25 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.9.16.1: +3 -2 lines
Diff to previous 1.9.16.1 (colored) to branchpoint 1.9 (colored) to selected 1.41.10.1 (colored)

sync with head.

Revision 1.11.14.1 / (download) - annotate - [select for diffs], Mon Jun 19 03:44:01 2006 UTC (17 years, 9 months ago) by chap
Branch: chap-midi
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored) next main 1.12 (colored) to selected 1.41.10.1 (colored)

Sync with head.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jun 7 22:37:14 2006 UTC (17 years, 9 months ago) by kardel
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8, 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.11: +2 -1 lines
Diff to previous 1.11 (colored) to selected 1.41.10.1 (colored)

convert to timecounters (from branch simonb-timecounters)

Revision 1.11.6.1 / (download) - annotate - [select for diffs], Sun Apr 30 17:37:50 2006 UTC (17 years, 11 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored) next main 1.12 (colored) to selected 1.41.10.1 (colored)

define __HAVE_TIMECOUNER -> switch to timcounter for amd64

Revision 1.11 / (download) - annotate - [select for diffs], Sat Dec 24 20:06:47 2005 UTC (18 years, 3 months ago) by perry
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, 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.10: +2 -2 lines
Diff to previous 1.10 (colored) to selected 1.41.10.1 (colored)

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Dec 11 12:16:25 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.9: +1 -1 lines
Diff to previous 1.9 (colored) to selected 1.41.10.1 (colored)

merge ktrace-lwp.

Revision 1.9.16.1 / (download) - annotate - [select for diffs], Thu Jul 7 12:38:44 2005 UTC (18 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored) to selected 1.41.10.1 (colored)

define __HAVE_LAZY_MBUF for i386 and amd64.

Revision 1.2.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:12:14 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.2.2.2: +1 -1 lines
Diff to previous 1.2.2.2 (colored) next main 1.3 (colored) to selected 1.41.10.1 (colored)

Fix the sync with head I botched.

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:31:22 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.2.2.1: +0 -0 lines
Diff to previous 1.2.2.1 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD.

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:31:36 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.2: +11 -7 lines
Diff to previous 1.2 (colored) to selected 1.41.10.1 (colored)

Sync with HEAD

Revision 1.9 / (download) - annotate - [select for diffs], Fri Mar 26 21:39:57 2004 UTC (20 years ago) by drochner
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, yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, thorpej-vnode-attr-base, thorpej-vnode-attr, 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, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, ktrace-lwp-base, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-lazymbuf
Changes since 1.8: +1 -2 lines
Diff to previous 1.8 (colored) to selected 1.41.10.1 (colored)

nothing cares about __HAVE_SIGINFO anymore, so nuke it

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jan 21 11:31:20 2004 UTC (20 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.7: +0 -1 lines
Diff to previous 1.7 (colored) to selected 1.41.10.1 (colored)

back out previous; it was only required for a dead function.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jan 20 20:30:41 2004 UTC (20 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored) to selected 1.41.10.1 (colored)

add register64_t which appears to be necessary for COMPAT_NETBSD32 nowadays

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jan 18 18:23:19 2004 UTC (20 years, 2 months ago) by martin
Branch: MAIN
Changes since 1.5: +5 -2 lines
Diff to previous 1.5 (colored) to selected 1.41.10.1 (colored)

Do not export __HAVE_RAS to userland. Applications are supposed to try
rasctl() and detect failure with EOPNOTSUPP.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Oct 6 22:53:48 2003 UTC (20 years, 5 months ago) by fvdl
Branch: MAIN
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored) to selected 1.41.10.1 (colored)

SIGINFO support.
Todo: 32bit compat support (COMPAT_NETBSD32 will not compile right now,
as it won't on other platforms).

Revision 1.4 / (download) - annotate - [select for diffs], Fri Sep 26 22:46:00 2003 UTC (20 years, 6 months ago) by nathanw
Branch: MAIN
Changes since 1.3: +6 -1 lines
Diff to previous 1.3 (colored) to selected 1.41.10.1 (colored)

Move __cpu_simple_lock_t and __SIMPLELOCK_{UN,}LOCKED to machine/types.h
so that they can be used in a namespace-friendly way.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Aug 7 16:26:36 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.2: +2 -6 lines
Diff to previous 1.2 (colored) to selected 1.41.10.1 (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.2 / (download) - annotate - [select for diffs], Mon Apr 28 23:16:17 2003 UTC (20 years, 11 months ago) by bjh21
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.1: +3 -2 lines
Diff to previous 1.1 (colored) to selected 1.41.10.1 (colored)

Add a new feature-test macro, _NETBSD_SOURCE.  If this is defined
by the application, all NetBSD interfaces are made visible, even
if some other feature-test macro (like _POSIX_C_SOURCE) is defined.
<sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE,
_POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve
existing behaviour.

This has two major advantages:
+ Programs that require non-POSIX facilities but define _POSIX_C_SOURCE
  can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS.
+ It makes most of the #ifs simpler, in that they're all now ORs of the
  various macros, rather than having checks for (!defined(_ANSI_SOURCE) ||
  !defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place.

I've tried not to change the semantics of the headers in any case where
_NETBSD_SOURCE wasn't defined, but there were some places where the
current semantics were clearly mad, and retaining them was harder than
correcting them.  In particular, I've mostly normalised things so that
_ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE,
_XOPEN_SOURCE and _NETBSD_SOURCE in that order.

Tested by building for vax, encouraged by thorpej, and uncontested in
tech-userlevel for a week.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Apr 26 18:39:49 2003 UTC (20 years, 11 months ago) by fvdl
Branch: MAIN
Diff to selected 1.41.10.1 (colored)

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.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>