The NetBSD Project

CVS log for src/sys/arch/amd64/conf/Makefile.amd64

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.86 / (download) - annotate - [select for diffs], Fri Jan 6 15:35:06 2023 UTC (5 months ago) by christos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.85: +2 -1 lines
Diff to previous 1.85 (colored)

Explicitly set -z noseparate-code because the default is about to change
and the boot blocks might not be able to load binaries with more than two
PT_LOAD sections.

Revision 1.85 / (download) - annotate - [select for diffs], Mon May 11 15:15:15 2020 UTC (3 years ago) by joerg
Branch: MAIN
CVS Tags: 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-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, netbsd-10-base, 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
Changes since 1.84: +4 -4 lines
Diff to previous 1.84 (colored)

Fix GCC flags for Spectre mitigation to really only apply to GCC.

Revision 1.84 / (download) - annotate - [select for diffs], Sat Apr 25 15:26:16 2020 UTC (3 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.83: +3 -1 lines
Diff to previous 1.83 (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.71.2.3 / (download) - annotate - [select for diffs], Tue Apr 21 18:42:03 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.71.2.2: +10 -1 lines
Diff to previous 1.71.2.2 (colored) to branchpoint 1.71 (colored) next main 1.72 (colored)

Sync with HEAD

Revision 1.82.2.2 / (download) - annotate - [select for diffs], Mon Apr 20 11:28:51 2020 UTC (3 years, 1 month ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.82.2.1: +11 -2 lines
Diff to previous 1.82.2.1 (colored) to branchpoint 1.82 (colored) next main 1.83 (colored)

Sync with HEAD

Revision 1.82.2.1 / (download) - annotate - [select for diffs], Thu Apr 16 08:46:34 2020 UTC (3 years, 1 month ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.82: +3 -1 lines
Diff to previous 1.82 (colored)

Reorganise sources to make it possible to include Xen PVHVM support in
native kernels. Among others:
- move xen/include/amd64/hypercall.h to amd64/include/xen and
  xen/include/i386/hypercall.h to i386/include/xen
- exclude some native files from the build for xenpv
- add xen to "machine" config statement for amd64 and i386
- split arch/xen/conf/files.xen to arch/xen/conf/files.xen (for pv drivers)
  and arch/xen/conf/files.xen.pv (for full pv support)
- add GENERIC_XENHVM kernel config which includes GENERIC and add Xen PV
  drivers.

Revision 1.83 / (download) - annotate - [select for diffs], Mon Apr 13 09:34:02 2020 UTC (3 years, 1 month ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20200421, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Changes since 1.82: +11 -2 lines
Diff to previous 1.82 (colored)

Make KASAN compatible with LLVM. Same as GCC, except that LLVM aggressively
inlines the shadow checks, and this causes problems at boot time; so we
pass -asan-instrumentation-with-call-threshold=0 to force callbacks instead
of inlines.

Revision 1.71.2.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:30 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.71.2.1: +20 -3 lines
Diff to previous 1.71.2.1 (colored) to branchpoint 1.71 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.82 / (download) - annotate - [select for diffs], Sat Apr 4 07:03:57 2020 UTC (3 years, 2 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base
Branch point for: bouyer-xenpvh
Changes since 1.81: +3 -4 lines
Diff to previous 1.81 (colored)

KCOV doesn't depend on specificdata and cpu_intr_p() anymore, so drop
references.

Revision 1.81 / (download) - annotate - [select for diffs], Fri Apr 3 18:12:39 2020 UTC (3 years, 2 months ago) by maxv
Branch: MAIN
Changes since 1.80: +2 -1 lines
Diff to previous 1.80 (colored)

Add KASAN instrumentation on on-stack VLAs.

Revision 1.80 / (download) - annotate - [select for diffs], Thu Nov 14 16:23:52 2019 UTC (3 years, 6 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.79: +9 -1 lines
Diff to previous 1.79 (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.79 / (download) - annotate - [select for diffs], Tue Nov 5 20:19:17 2019 UTC (3 years, 7 months ago) by maxv
Branch: MAIN
Changes since 1.78: +10 -1 lines
Diff to previous 1.78 (colored)

Add Kernel Concurrency Sanitizer (kCSan) support. This sanitizer allows us
to detect race conditions at runtime. It is a variation of TSan that is
easy to implement and more suited to kernel internals, albeit theoretically
less precise than TSan's happens-before.

We do basically two things:

 - On every KCSAN_NACCESSES (=2000) memory accesses, we create a cell
   describing the access, and delay the calling CPU (10ms).

 - On all memory accesses, we verify if the memory we're reading/writing
   is referenced in a cell already.

The combination of the two means that, if for example cpu0 does a read that
is selected and cpu1 does a write at the same address, kCSan will fire,
because cpu1's write collides with cpu0's read cell.

The coverage of the instrumentation is the same as that of kASan. Also, the
code is organized in a way similar to kASan, so it is easy to add support
for more architectures than amd64. kCSan is compatible with KCOV.

Reviewed by Kamil.

Revision 1.78 / (download) - annotate - [select for diffs], Sat Sep 7 18:56:01 2019 UTC (3 years, 9 months ago) by maxv
Branch: MAIN
Changes since 1.77: +2 -2 lines
Diff to previous 1.77 (colored)

Merge amd64func.S into cpufunc.S, and clean up.

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:47 2019 UTC (4 years ago) by christos
Branch: phil-wifi
Changes since 1.71: +12 -6 lines
Diff to previous 1.71 (colored)

Sync with HEAD

Revision 1.77 / (download) - annotate - [select for diffs], Wed May 22 08:31:25 2019 UTC (4 years ago) by kamil
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
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored)

Allow to use KCOV + kASan together

Stop instrumenting KCOV files with kASan and the other way around.
This fixes booting of the setup of using them together.

In theory the checks could be more fine grained, however there is no good
reason (except extra DIAGNISTIC) for running a kernel sanitizer without
kernel coverage.

Patch by <R3x>

Revision 1.76 / (download) - annotate - [select for diffs], Sun Feb 24 08:02:45 2019 UTC (4 years, 3 months ago) by maxv
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.75: +2 -1 lines
Diff to previous 1.75 (colored)

Add support for use-after-scope detection in KASAN. It is available since
GCC7, and we have GCC7 by default now.

Slightly reorder the code, and remove a duplicated KASSERT too.

Tested on amd64-KASAN. Not yet enabled on aarch64-KASAN, but it should
work as-is.

Revision 1.66.2.6 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:17 2018 UTC (4 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.66.2.5: +2 -2 lines
Diff to previous 1.66.2.5 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.75 / (download) - annotate - [select for diffs], Wed Oct 31 06:26:25 2018 UTC (4 years, 7 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126
Changes since 1.74: +2 -2 lines
Diff to previous 1.74 (colored)

Move the MI parts of KASAN into kern/subr_asan.c. This file includes
machine/asan.h, which contains the MD functions. We use an include rather
than a plain C file, because we want GCC to optimize/inline some functions
into one single block.

The amd64 MD parts of KASAN are moved accordingly.

The naming convention we use is:

	kasan_*
		a generic kasan object, declared in subr_asan.c
	kasan_md_*
		an MD kasan object, declared in machine/asan.h, and used
		in subr_asan.c
	__md_*
		an MD object, declared in machine/asan.h, and not used
		outside

Overall this makes it easier to add KASAN support on more architectures.

Discussed with several people.

Revision 1.66.2.5 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:36 2018 UTC (4 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.66.2.4: +1 -6 lines
Diff to previous 1.66.2.4 (colored) to branchpoint 1.66 (colored)

Ssync with HEAD

Revision 1.74 / (download) - annotate - [select for diffs], Sat Sep 22 12:24:01 2018 UTC (4 years, 8 months ago) by rin
Branch: MAIN
CVS Tags: pgoyette-compat-1020, pgoyette-compat-0930
Changes since 1.73: +1 -6 lines
Diff to previous 1.73 (colored)

- Determine KERN_AS automatically depending on whether OPT_MODULAR is
  set or not, in the same way as libcompat.

- Specify OPT_MODULAR in the port Makefile instead of KERN_AS.

Now, KERN_AS=library is used for kernels without module(7) for all ports.

OK christos

Revision 1.66.2.4 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:24 2018 UTC (4 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.66.2.3: +11 -1 lines
Diff to previous 1.66.2.3 (colored) to branchpoint 1.66 (colored)

Sync with HEAD

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

Revision 1.73 / (download) - annotate - [select for diffs], Wed Aug 22 12:07:42 2018 UTC (4 years, 9 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-0906
Changes since 1.72: +8 -3 lines
Diff to previous 1.72 (colored)

Add support for monitoring the stack with kASan. This allows us to detect
illegal memory accesses occuring there.

The compiler inlines a piece of code in each function that adds redzones
around the local variables and poisons them. The illegal accesses are then
detected using the usual kASan machinery.

The stack size is doubled, from 4 pages to 8 pages.

Several boot functions are marked with the __noasan flag, to prevent the
compiler from adding redzones in them (because we haven't yet initialized
kASan). The kasan_early_init function is called early at boot time to
quickly create the shadow for the current stack; after this is done, we
don't need __noasan anymore in the boot path.

We pass -fasan-shadow-offset=0xDFFF900000000000, because the compiler
wants to do
	shad = shadow-offset + (addr >> 3)
and we do, in kasan_addr_to_shad
	shad = KASAN_SHADOW_START + ((addr - CANONICAL_BASE) >> 3)
hence
	shad = KASAN_SHADOW_START + (addr >> 3) - (CANONICAL_BASE >> 3)
	     = [KASAN_SHADOW_START - (CANONICAL_BASE >> 3)] + (addr >> 3)
implies
	shadow-offset = KASAN_SHADOW_START - (CANONICAL_BASE >> 3)
	              = 0xFFFF800000000000 - (0xFFFF800000000000 >> 3)
	              = 0xDFFF900000000000

In UVM, we add a kasan_free (that is not preceded by a kasan_alloc). We
don't add poisoned redzones ourselves, but all the functions we execute
do, so we need to manually clear the poison before freeing the stack.

With the help of Kamil for the makefile stuff.

Revision 1.72 / (download) - annotate - [select for diffs], Mon Aug 20 15:04:51 2018 UTC (4 years, 9 months ago) by maxv
Branch: MAIN
Changes since 1.71: +6 -1 lines
Diff to previous 1.71 (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.66.2.3 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:38 2018 UTC (4 years, 11 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.66.2.2: +3 -2 lines
Diff to previous 1.66.2.2 (colored) to branchpoint 1.66 (colored)

Sync with HEAD

Revision 1.71 / (download) - annotate - [select for diffs], Sat Jun 2 15:09:37 2018 UTC (5 years ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625
Branch point for: phil-wifi
Changes since 1.70: +3 -2 lines
Diff to previous 1.70 (colored)

Disable sanitizers for the kernel.

Revision 1.66.2.2 / (download) - annotate - [select for diffs], Sun Apr 22 07:20:17 2018 UTC (5 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.66.2.1: +2 -2 lines
Diff to previous 1.66.2.1 (colored) to branchpoint 1.66 (colored)

Sync with HEAD

Revision 1.70 / (download) - annotate - [select for diffs], Wed Apr 18 10:38:47 2018 UTC (5 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422
Changes since 1.69: +2 -3 lines
Diff to previous 1.69 (colored)

Simplify previous, pointed out by mrg.

Revision 1.69 / (download) - annotate - [select for diffs], Wed Apr 18 09:29:35 2018 UTC (5 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.68: +3 -2 lines
Diff to previous 1.68 (colored)

Fix previous: HAVE_GCC needs to be checked in additon to
SPECTRE_V2_GCC_MITIGATION, but SPECTRE_V2_GCC_MITIGATION being empty is
not a good enough check as it can't be overwritte on the make
command line. Now I can do: "make SPECTRE_V2_GCC_MITIGATION=0" (e.g. when
my gcc is too old for having the indirect-branch options).

Revision 1.68 / (download) - annotate - [select for diffs], Wed Apr 18 09:20:42 2018 UTC (5 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored)

Fix copy & pasto

Revision 1.66.2.1 / (download) - annotate - [select for diffs], Mon Apr 16 01:59:52 2018 UTC (5 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.66: +6 -1 lines
Diff to previous 1.66 (colored)

Sync with HEAD, resolve some conflicts

Revision 1.57.6.1 / (download) - annotate - [select for diffs], Wed Apr 11 14:23:30 2018 UTC (5 years, 2 months 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.57: +6 -1 lines
Diff to previous 1.57 (colored) next main 1.58 (colored)

Pull up following revision(s) (requested by mrg in ticket #731):
	sys/arch/i386/conf/files.i386: revision 1.392
	sys/arch/i386/conf/GENERIC: revision 1.1175
	sys/arch/i386/conf/GENERIC: revision 1.1176
	sys/arch/amd64/conf/files.amd64: revision 1.102
	sys/arch/i386/conf/GENERIC: revision 1.1177
	share/man/man4/options.4: revision 1.485 (patch)
	sys/arch/i386/conf/Makefile.i386: revision 1.190
	sys/arch/amd64/conf/GENERIC: revision 1.487
	sys/arch/amd64/conf/ALL: revision 1.85
	sys/arch/amd64/conf/GENERIC: revision 1.488
	sys/arch/amd64/conf/GENERIC: revision 1.489
	sys/arch/amd64/conf/Makefile.amd64: revision 1.67
	sys/arch/i386/conf/ALL: revision 1.437

add an SPECTRE_V2_GCC_MITIGATION option to x86 kernels, that turns
on the GCC spectre v2 mitigation options.
XXX: pullup-8.
XXX: turn on in all kernels.

actually do what the previous change said:
don't turn on the new 'SPECTRE_V2_GCC_MITIGATION' option yet.

turn on GCC spectre v2 mitigation options.
XXX: amd64 ALL doesn't build for me right now

Revision 1.67 / (download) - annotate - [select for diffs], Sat Apr 7 19:38:06 2018 UTC (5 years, 2 months ago) by mrg
Branch: MAIN
CVS Tags: pgoyette-compat-0415
Changes since 1.66: +6 -1 lines
Diff to previous 1.66 (colored)

add an SPECTRE_V2_GCC_MITIGATION option to x86 kernels, that turns
on the GCC spectre v2 mitigation options.

XXX: pullup-8.
XXX: turn on in all kernels.

Revision 1.66 / (download) - annotate - [select for diffs], Fri Feb 23 14:16:52 2018 UTC (5 years, 3 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.65: +2 -2 lines
Diff to previous 1.65 (colored)

Revert previous, we'll need something better (and compatible with Clang).

Revision 1.65 / (download) - annotate - [select for diffs], Fri Feb 23 09:00:56 2018 UTC (5 years, 3 months ago) by maxv
Branch: MAIN
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

Add -fno-shrink-wrap, to force GCC to push the frames at the very beginning
of the functions. Otherwise DDB is unable to display a correct stack trace
if a fault occurred in a function before the frame was pushed.

Discussed on tech-kern@, flag suggested by Krister Walfridsson. Should fix
PR/52560.

Revision 1.40.6.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:35:47 2017 UTC (5 years, 6 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.40.6.2: +9 -21 lines
Diff to previous 1.40.6.2 (colored) to branchpoint 1.40 (colored) next main 1.41 (colored)

update from HEAD

Revision 1.64 / (download) - annotate - [select for diffs], Wed Nov 15 18:02:37 2017 UTC (5 years, 6 months ago) by maxv
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored)

Support large pages on KASLR kernels, in a way that does not reduce
randomness, but on the contrary that increases it.

The size of the kernel sub-blocks is changed to be 1MB. This produces a
kernel with sections that are always < 2MB in size, that can fit a large
page.

Each section is put in a 2MB physical chunk. In this chunk, there is a
padding of approximately 1MB. The prekern uses a random offset aligned to
sh_addralign, to shift the section in physical memory.

For example, physical memory layout created by the bootloader for .text.4
and .rodata.0:
 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
 |+---------------+                  |+---------------+                  |
 ||    .text.4    |       PAD        ||   .rodata.0   |       PAD        |
 |+---------------+                  |+---------------+                  |
 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
 PA                                  PA+2MB                         PA+4MB

Then, physical memory layout, after having been shifted by the prekern:
 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
 | P +---------------+               |          +---------------+        |
 | A |    .text.4    |      PAD      |   PAD    |   .rodata.0   |   PAD  |
 | D +---------------+               |          +---------------+        |
 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
 PA                                  PA+2MB                         PA+4MB

The kernel maps these 2MB physical chunks with 2MB large pages. Therefore,
randomness is enforced at both the virtual and physical levels, and the
resulting entropy is higher than that of our current implementaion until
now.

The padding around the section is filled by the prekern. Not to consume
too much memory, the sections that are smaller than PAGE_SIZE are mapped
with normal pages - because there is no point in optimizing them. In these
normal pages, the same shift is applied.

This change has two additional advantages: (a) the cache attacks based on
the TLB are mostly mitigated, because even if you are able to determine
that a given page-aligned range is mapped as executable you don't know
where exactly within that range the section actually begins, and (b) given
that we are slightly randomizing the physical layout we are making some
rare physical attacks more difficult to conduct.

NOTE: after this change you need to update GENERIC_KASLR / prekern /
bootloader.

Revision 1.63 / (download) - annotate - [select for diffs], Tue Nov 14 10:15:40 2017 UTC (5 years, 6 months ago) by maxv
Branch: MAIN
Changes since 1.62: +1 -1 lines
Diff to previous 1.62 (colored)

Split each kernel section into sub-blocks of approximately 2MB. The newly
created sections are named .origname.i, for example:

	.text -> { .text .text.0 .text.1 .text.2 .text.3 .text.4 }

Each section is randomized independently by the prekern - and in a random
order obviously. As a result we can get intertwined mappings, of the type:

+-------+-----------+------+---------+-----------+-------+-------+------+-
| text1 | NOTMAPPED | bss0 | rodata1 | NOTMAPPED | data2 | text3 | bss1 |
+-------+-----------+------+---------+-----------+-------+-------+------+-

   ---------+-
    rodata0 | ...
   ---------+-

The CTF section is dropped completely, because (a) when split it becomes
enormous for some reason (that I don't quite understand, verily), and (b)
the kernel expects only one CTF and can't handle several of them.

Revision 1.62 / (download) - annotate - [select for diffs], Tue Nov 14 09:56:26 2017 UTC (5 years, 6 months ago) by maxv
Branch: MAIN
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)

Remove max-page-size on KASLR, it doesn't play any role.

Revision 1.61 / (download) - annotate - [select for diffs], Thu Nov 9 15:46:48 2017 UTC (5 years, 7 months ago) by maxv
Branch: MAIN
Changes since 1.60: +3 -2 lines
Diff to previous 1.60 (colored)

Use another ld script for kaslr kernels, in which there are no alignment
directives. They don't matter since the bootloader overwrites them.

But, normally we still need to make sure .data.read_mostly is aligned.
Unfortunately I couldn't find any way to force sh_addralign to be 64, so
I'm leaving the alignment there as a useless reminder.

Revision 1.60 / (download) - annotate - [select for diffs], Wed Nov 1 09:31:24 2017 UTC (5 years, 7 months ago) by maxv
Branch: MAIN
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)

Add linux_sigcode.o, otherwise it doesn't get rebuilt.

Revision 1.59 / (download) - annotate - [select for diffs], Sat Oct 7 10:16:47 2017 UTC (5 years, 8 months ago) by maxv
Branch: MAIN
Changes since 1.58: +5 -1 lines
Diff to previous 1.58 (colored)

Add GENERIC_KASLR, only toolchain parts for now.

Revision 1.46.2.4 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:28 2017 UTC (5 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.46.2.3: +3 -3 lines
Diff to previous 1.46.2.3 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored)

Sync with HEAD

Revision 1.58 / (download) - annotate - [select for diffs], Wed Aug 9 19:11:13 2017 UTC (5 years, 10 months ago) by maxv
Branch: MAIN
CVS Tags: nick-nhusb-base-20170825
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

Remove several dead entries from the x86 makefiles. Looks like people (me
included) regularly forget to take care of this.

Revision 1.55.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:22 2017 UTC (6 years, 1 month ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored) next main 1.56 (colored)

Sync with HEAD

Revision 1.55.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:09 2017 UTC (6 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored) next main 1.56 (colored)

Sync with HEAD

Revision 1.57 / (download) - annotate - [select for diffs], Sat Feb 11 16:02:11 2017 UTC (6 years, 3 months ago) by maxv
Branch: MAIN
CVS Tags: 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, 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.56: +2 -2 lines
Diff to previous 1.56 (colored)

Put 2MB alignments between the kernel segments. This way the kernel image
is entirely mapped with large pages, which uniformizes performance and
reduces fluctuation. Sent on port-amd64.

Revision 1.46.2.3 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:02 2017 UTC (6 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.46.2.2: +2 -2 lines
Diff to previous 1.46.2.2 (colored) to branchpoint 1.46 (colored)

Sync with HEAD

Revision 1.56 / (download) - annotate - [select for diffs], Thu Feb 2 19:09:08 2017 UTC (6 years, 4 months ago) by maxv
Branch: MAIN
CVS Tags: nick-nhusb-base-20170204
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

Increase KERNTEXTOFF from 1MB to 2MB on amd64. [1MB; 2MB[ is now handled
by UVM, so there is no physical loss.

On amd64 we always remap the kernel text with 2MB pages, and because of the
1MB start address we were forced to map [0MB; 2MB[ inside the first large
page. The problem is, the lower half is used by UVM to allocate physical
pages, and it is possible that some of these could be used by userland. We
could end up with userland-controllable data mapped into the kernel text on
a privileged page, which is far from being a good idea from a security pov.

I am not fixing i386 yet, because the large page size depends on PAE, and
we probably don't want to have a text located at 4MB on low-memory systems.

(note: I didn't introduce this issue, it was already there when I came in)

Revision 1.55 / (download) - annotate - [select for diffs], Fri Apr 29 02:17:25 2016 UTC (7 years, 1 month ago) by christos
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, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.54: +1 -6 lines
Diff to previous 1.54 (colored)

Moved hack to ufs_lookup.c

Revision 1.54 / (download) - annotate - [select for diffs], Thu Apr 28 19:52:43 2016 UTC (7 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.53: +6 -1 lines
Diff to previous 1.53 (colored)

XXX: build ufs_lookup.c with -fno-tree-vrp when using GCC 5, for now.

Revision 1.46.2.2 / (download) - annotate - [select for diffs], Tue Sep 22 12:05:36 2015 UTC (7 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.46.2.1: +2 -19 lines
Diff to previous 1.46.2.1 (colored) to branchpoint 1.46 (colored)

Sync with HEAD

Revision 1.53 / (download) - annotate - [select for diffs], Sun Sep 6 07:17:14 2015 UTC (7 years, 9 months ago) by uebayasi
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.52: +0 -19 lines
Diff to previous 1.52 (colored)

Define MD start code at the top of files.${MACHINE} relying on config(1)'s
deterministic file output order.  No need to define ${MD_OBJS} and its useless,
explicit compile rules.

Revision 1.52 / (download) - annotate - [select for diffs], Thu Sep 3 12:33:11 2015 UTC (7 years, 9 months ago) by uebayasi
Branch: MAIN
Changes since 1.51: +4 -1 lines
Diff to previous 1.51 (colored)

Define ${MD_OBJS} as relative path.  This change makes amd64 kernel buildable
for `-S' mode.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Aug 24 14:04:24 2015 UTC (7 years, 9 months ago) by uebayasi
Branch: MAIN
Changes since 1.50: +0 -1 lines
Diff to previous 1.50 (colored)

Define ${LINKSCRIPT} in one place.

Revision 1.50 / (download) - annotate - [select for diffs], Tue Aug 18 10:18:20 2015 UTC (7 years, 9 months ago) by uebayasi
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored)

${KERN_LDSCRIPT} -> ${KERNLDSCRIPT}

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

Sync with HEAD

Revision 1.49 / (download) - annotate - [select for diffs], Fri May 1 02:00:41 2015 UTC (8 years, 1 month ago) by nat
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.48: +1 -5 lines
Diff to previous 1.48 (colored)

Include splash with genfb.
splash.o is only included with options SPLASHSCREEN.
splash_image.o target moved to Makefile.kern.inc.

This commit was approved by matt@

Revision 1.48 / (download) - annotate - [select for diffs], Thu Apr 30 15:22:32 2015 UTC (8 years, 1 month ago) by nat
Branch: MAIN
Changes since 1.47: +1 -2 lines
Diff to previous 1.47 (colored)

Remove unintended whitespace.

Revision 1.47 / (download) - annotate - [select for diffs], Thu Apr 30 13:46:47 2015 UTC (8 years, 1 month ago) by nat
Branch: MAIN
Changes since 1.46: +6 -1 lines
Diff to previous 1.46 (colored)

Added a new option for embedding a splash screen into kernel.
Add: options SPLASHSCREEN
     makeoptions SPLASHSCREEN_IMAGE="path/to/image"
to your config file.  So far it will work on amd64 and RPI/RPI2.

This commit was with ideas, help, and OK from jmcneill@.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Nov 15 12:42:56 2014 UTC (8 years, 6 months ago) by uebayasi
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

Use LINKSCRIPT.

Revision 1.40.6.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:42 2014 UTC (8 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.40.6.1: +8 -7 lines
Diff to previous 1.40.6.1 (colored) to branchpoint 1.40 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:53:49 2014 UTC (8 years, 10 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored) next main 1.45 (colored)

Rebase.

Revision 1.45 / (download) - annotate - [select for diffs], Sat May 24 18:41:46 2014 UTC (9 years ago) by jakllsch
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-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
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

Add -fno-omit-frame-pointer to DEFCOPTS.

Revision 1.39.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:39:28 2014 UTC (9 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.39.2.2: +7 -6 lines
Diff to previous 1.39.2.2 (colored) to branchpoint 1.39 (colored) next main 1.40 (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.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:44:54 2014 UTC (9 years ago) by rmind
Branch: rmind-smpnet
Changes since 1.41: +7 -6 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

sync with head

Revision 1.44 / (download) - annotate - [select for diffs], Wed Feb 5 23:10:41 2014 UTC (9 years, 4 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.43: +5 -3 lines
Diff to previous 1.43 (colored)

Apparantly clang doesn't like -mno-80387 or -mno-fp-ret-in-387
-msoft-float is equivalent to the former, the latter is probably unlikely
to stop anything not picked up elsewhere.

Revision 1.43 / (download) - annotate - [select for diffs], Wed Feb 5 18:52:22 2014 UTC (9 years, 4 months ago) by dsl
Branch: MAIN
Changes since 1.42: +5 -2 lines
Diff to previous 1.42 (colored)

Change the compiler options to explicitly specify:
  -mno-mmx -mno-sse -mno-avx -mno-80387 -mno-fp-ret-in-387
Since no-sse implies no-sse2 that should ensure that the compiler really
  doesn't emit any instructions that might trap trying to use the FPU.
On amd64 at least some of those are needed to stop the compiler
  saving the registers to stack on every varargs function.
It might be that -mno-sse did that before.

Revision 1.42 / (download) - annotate - [select for diffs], Wed Jan 15 22:25:22 2014 UTC (9 years, 4 months ago) by joerg
Branch: MAIN
Changes since 1.41: +1 -5 lines
Diff to previous 1.41 (colored)

Reduce amount of -no-integrated-as on x86 as .code16 is now supported by
LLVM.

Revision 1.40.6.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:28:20 2013 UTC (10 years, 3 months ago) by tls
Branch: tls-maxphys
Changes since 1.40: +6 -1 lines
Diff to previous 1.40 (colored)

resync with head

Revision 1.39.2.2 / (download) - annotate - [select for diffs], Wed Jan 23 00:05:38 2013 UTC (10 years, 4 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.39.2.1: +6 -1 lines
Diff to previous 1.39.2.1 (colored) to branchpoint 1.39 (colored)

sync with head

Revision 1.41 / (download) - annotate - [select for diffs], Fri Dec 14 16:37:55 2012 UTC (10 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.40: +6 -1 lines
Diff to previous 1.40 (colored)

do like the i386 for modular.

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:59 2012 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
Changes since 1.39: +1 -2 lines
Diff to previous 1.39 (colored)

sync with head

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

merge to -current.

Revision 1.40 / (download) - annotate - [select for diffs], Mon Dec 19 14:06:16 2011 UTC (11 years, 5 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, 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, 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
Branch point for: tls-maxphys
Changes since 1.39: +1 -2 lines
Diff to previous 1.39 (colored)

Move Clang-warning flags for ah_regdomain.c into sys/conf, they are
platform independent. Use the selective -Wno-* flags instead of
-Wno-error.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Sep 14 14:59:29 2011 UTC (11 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.38: +4 -4 lines
Diff to previous 1.38 (colored)

include wakecode after kernel rules so that the .depend rules are defined

Revision 1.26.2.4 / (download) - annotate - [select for diffs], Sat Aug 27 15:37:23 2011 UTC (11 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.26.2.3: +7 -3 lines
Diff to previous 1.26.2.3 (colored) to branchpoint 1.26 (colored) next main 1.27 (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.38 / (download) - annotate - [select for diffs], Tue Aug 2 17:22:51 2011 UTC (11 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.37: +1 -3 lines
Diff to previous 1.37 (colored)

Remove a number of now unnecessary -no-integrated-as cases.

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:18:56 2011 UTC (11 years, 11 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.35: +3 -2 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.29.4.3 / (download) - annotate - [select for diffs], Sun Jun 12 00:23:52 2011 UTC (12 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.29.4.2: +2 -1 lines
Diff to previous 1.29.4.2 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored)

sync with head

Revision 1.37 / (download) - annotate - [select for diffs], Fri Jun 10 03:18:27 2011 UTC (12 years ago) by joerg
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base
Changes since 1.36: +2 -1 lines
Diff to previous 1.36 (colored)

Disable LLVM MC for spl.S for now. The different spllower sizes break
patchfunc.

Revision 1.36 / (download) - annotate - [select for diffs], Fri Jun 10 03:17:35 2011 UTC (12 years ago) by joerg
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

Explicitly disable use of SSE. LLVM generates SSE by default on AMD64
and we certainly don't want that in the kernel.

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:04:50 2011 UTC (12 years ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.30: +7 -2 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Sync with HEAD.

Revision 1.29.4.2 / (download) - annotate - [select for diffs], Tue May 31 03:03:53 2011 UTC (12 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.29.4.1: +6 -1 lines
Diff to previous 1.29.4.1 (colored) to branchpoint 1.29 (colored)

sync with head

Revision 1.35 / (download) - annotate - [select for diffs], Mon May 30 15:06:32 2011 UTC (12 years ago) by joerg
Branch: MAIN
CVS Tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.34: +2 -1 lines
Diff to previous 1.34 (colored)

Disable -Werror for ah_regdomain.c if building with clang as workaround
for http://llvm.org/bugs/show_bug.cgi?id=10030.

Revision 1.34 / (download) - annotate - [select for diffs], Fri May 20 13:21:54 2011 UTC (12 years ago) by joerg
Branch: MAIN
Changes since 1.33: +5 -5 lines
Diff to previous 1.33 (colored)

Drop redundant -I.

Revision 1.33 / (download) - annotate - [select for diffs], Fri May 20 13:21:19 2011 UTC (12 years ago) by joerg
Branch: MAIN
Changes since 1.32: +5 -5 lines
Diff to previous 1.32 (colored)

Really apply the -no-integrated-as only for clang.

Revision 1.32 / (download) - annotate - [select for diffs], Fri May 20 13:19:59 2011 UTC (12 years ago) by joerg
Branch: MAIN
Changes since 1.31: +1 -2 lines
Diff to previous 1.31 (colored)

Reuse -x assembler-with-cpp from sys.mk.

Revision 1.31 / (download) - annotate - [select for diffs], Fri May 20 13:18:42 2011 UTC (12 years ago) by joerg
Branch: MAIN
Changes since 1.30: +6 -1 lines
Diff to previous 1.30 (colored)

LLVM's assembler parser doesn't support .code32 yet, so disable it as
needed.

Revision 1.26.2.3 / (download) - annotate - [select for diffs], Tue Mar 29 20:42:57 2011 UTC (12 years, 2 months ago) by jym
Branch: jym-xensuspend
Changes since 1.26.2.2: +2 -0 lines
Diff to previous 1.26.2.2 (colored) to branchpoint 1.26 (colored)

More sync fixes. And add the mbr_gpt files.

Revision 1.26.2.2 / (download) - annotate - [select for diffs], Mon Mar 28 23:04:35 2011 UTC (12 years, 2 months ago) by jym
Branch: jym-xensuspend
Changes since 1.26.2.1: +2 -2 lines
Diff to previous 1.26.2.1 (colored) to branchpoint 1.26 (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.29.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:49:16 2011 UTC (12 years, 3 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

sync with head

Revision 1.30 / (download) - annotate - [select for diffs], Wed Jan 12 23:12:11 2011 UTC (12 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: uebayasi-xip-base7, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

Allow use of traditional CPP to be set on a per platform base in sys.mk.
Honour this for dependency processing in bsd.dep.mk.  Switch i386 and
amd64 assembly to use ISO C90 preprocessor concat and drop the
-traditional-cpp on this platform.

Revision 1.25.8.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:33:53 2010 UTC (13 years, 1 month ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.25: +3 -25 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

sync to netbsd-5

Revision 1.24.4.2 / (download) - annotate - [select for diffs], Thu Mar 11 15:01:59 2010 UTC (13 years, 3 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.24.4.1: +4 -1 lines
Diff to previous 1.24.4.1 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

sync with head

Revision 1.29 / (download) - annotate - [select for diffs], Wed Nov 25 17:08:08 2009 UTC (13 years, 6 months ago) by tron
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, matt-mips64-premerge-20101231
Branch point for: rmind-uvmplock
Changes since 1.28: +3 -1 lines
Diff to previous 1.28 (colored)

Enable SSP (Stack Smash Protection) in x86 kernels by default (except
in i386 *TINY kernels). The NetBSD/i386 "ALL" kernel is unconditionally
compiled with SSP enabled.

Change approved by the core team.

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Sun Nov 1 13:58:54 2009 UTC (13 years, 7 months ago) by jym
Branch: jym-xensuspend
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

Sync with HEAD.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Oct 2 10:14:20 2009 UTC (13 years, 8 months ago) by skrll
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

It's -z max-page-size, not -z maxpagesize.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Oct 1 09:15:19 2009 UTC (13 years, 8 months ago) by skrll
Branch: MAIN
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

MAXPAGESIZE got bumped to 0x200000. Use -z maxpagesize=0x100000 until
someone(tm) decides that kernels should have that alignment, etc.

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Fri Aug 7 18:33:48 2009 UTC (13 years, 10 months ago) by snj
Branch: netbsd-5
CVS Tags: 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, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.25: +3 -25 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

Pull up following revision(s) (requested by sborrill in ticket #905):
	sys/arch/alpha/conf/Makefile.alpha: revision 1.81
	sys/arch/amd64/conf/Makefile.amd64: revision 1.26
	sys/arch/i386/conf/Makefile.i386: revision 1.162
	sys/arch/macppc/conf/Makefile.macppc: revision 1.31
	sys/arch/mips/conf/Makefile.mips: revision 1.52
	sys/arch/sparc64/conf/Makefile.sparc64: revision 1.68
	sys/arch/xen/conf/Makefile.xen: revision 1.28
Clean-up makefile stub used to include in the build the binary HAL object

Revision 1.24.4.1 / (download) - annotate - [select for diffs], Mon May 4 08:10:32 2009 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.24: +6 -27 lines
Diff to previous 1.24 (colored)

sync with head.

Revision 1.24.12.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:15:54 2009 UTC (14 years, 4 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.24: +6 -27 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

Sync with HEAD.

Revision 1.23.6.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:27:49 2009 UTC (14 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.23.6.1: +5 -26 lines
Diff to previous 1.23.6.1 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored)

Sync with HEAD.

Revision 1.24.10.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:12:59 2008 UTC (14 years, 6 months ago) by haad
Branch: haad-dm
Changes since 1.24: +6 -27 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

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

Revision 1.26 / (download) - annotate - [select for diffs], Thu Dec 11 05:27:42 2008 UTC (14 years, 6 months ago) by alc
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-base2, nick-hppapmap-base, mjf-devfs2-base, jymxensuspend-base, haad-nbase2, haad-dm-base2, haad-dm-base
Branch point for: jym-xensuspend
Changes since 1.25: +3 -25 lines
Diff to previous 1.25 (colored)

Clean-up makefile stub used to include in the build the binary HAL object

Revision 1.25 / (download) - annotate - [select for diffs], Thu Oct 30 20:07:01 2008 UTC (14 years, 7 months ago) by joerg
Branch: MAIN
CVS Tags: netbsd-5-base, 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, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, ad-audiomp2-base, ad-audiomp2
Branch point for: netbsd-5, matt-nb5-mips64
Changes since 1.24: +4 -3 lines
Diff to previous 1.24 (colored)

New assym.h dependency.

Revision 1.23.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:11 2008 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Sync with HEAD.

Revision 1.23.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:14:52 2008 UTC (15 years, 2 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

sync with head.

Revision 1.14.36.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:03:53 2008 UTC (15 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.14.36.2: +2 -3 lines
Diff to previous 1.14.36.2 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

sync with HEAD

Revision 1.6.2.5 / (download) - annotate - [select for diffs], Mon Mar 17 09:14:14 2008 UTC (15 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.6.2.4: +2 -2 lines
Diff to previous 1.6.2.4 (colored) next main 1.7 (colored)

sync with head.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Mar 10 22:03:40 2008 UTC (15 years, 3 months 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, haad-dm-base1, ad-socklock-base1
Branch point for: yamt-nfs-mp, nick-hppapmap, haad-dm
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Implement an optimized, preemption-safe asm version of tsc_get_timecount().
The C version needs work to be preemption safe. Cuts the clock cycles
for microtime() from 950 down to 300 on a Pentium D.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:04:20 2008 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Sync with HEAD.

Revision 1.6.2.4 / (download) - annotate - [select for diffs], Mon Feb 4 09:21:41 2008 UTC (15 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.6.2.3: +2 -2 lines
Diff to previous 1.6.2.3 (colored)

sync with head.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Jan 25 21:12:11 2008 UTC (15 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Refactor in_cksum/in4_cksum/in6_cksum implementations:
- All three functions are included in the kernel by default.
  They call a backend function cpu_in_cksum after possibly
  computing the checksum of the pseudo header.
- cpu_in_cksum is the core to implement the one-complement sum.
  The default implementation is moderate fast on most platforms
  and provides a 32bit accumulator with 16bit addends for L32 platforms
  and a 64bit accumulator with 32bit addends for L64 platforms.
  It handles edge cases like very large mbuf chains (could happen with
  native IPv6 in the future) and provides a good base for new native
  implementations.
- Modify i386 and amd64 assembly to use the new interface.

This disables the MD implementations on !x86 until the conversion is
done. For Alpha, the portable version is faster.

Revision 1.18.2.3 / (download) - annotate - [select for diffs], Wed Jan 23 19:27:10 2008 UTC (15 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.18.2.2: +1 -1 lines
Diff to previous 1.18.2.2 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

Sync with HEAD.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jan 21 19:39:28 2008 UTC (15 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

in_cksum.S needs assym.h.

Revision 1.6.2.3 / (download) - annotate - [select for diffs], Mon Jan 21 09:35:21 2008 UTC (15 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.6.2.2: +4 -5 lines
Diff to previous 1.6.2.2 (colored)

sync with head

Revision 1.18.2.2 / (download) - annotate - [select for diffs], Sat Jan 19 12:14:10 2008 UTC (15 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.18.2.1: +0 -1 lines
Diff to previous 1.18.2.1 (colored) to branchpoint 1.18 (colored)

Sync with HEAD

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jan 17 01:56:02 2008 UTC (15 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: bouyer-xeni386-base
Changes since 1.20: +1 -2 lines
Diff to previous 1.20 (colored)

Remove unnecessary references to config_time.h.

Revision 1.14.36.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:44:50 2008 UTC (15 years, 5 months ago) by matt
Branch: matt-armv6
Changes since 1.14.36.1: +4 -4 lines
Diff to previous 1.14.36.1 (colored) to branchpoint 1.14 (colored)

sync with HEAD

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:47:06 2008 UTC (15 years, 5 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

Sync with HEAD

Revision 1.20 / (download) - annotate - [select for diffs], Sun Dec 30 16:07:02 2007 UTC (15 years, 5 months ago) by joerg
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Missing assym.h dependency.

Revision 1.17.4.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:41:58 2007 UTC (15 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Sync with head.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Dec 21 16:23:05 2007 UTC (15 years, 5 months ago) by joerg
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

lock_stubs.S needs assym.h.

Revision 1.17.6.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:20:23 2007 UTC (15 years, 6 months ago) by yamt
Branch: yamt-kmem
Changes since 1.17: +3 -4 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

sync with head.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Dec 9 20:27:43 2007 UTC (15 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.17: +3 -4 lines
Diff to previous 1.17 (colored)

Merge jmcneill-pm branch.

Revision 1.14.16.2 / (download) - annotate - [select for diffs], Mon Dec 3 18:34:41 2007 UTC (15 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.14.16.1: +2 -2 lines
Diff to previous 1.14.16.1 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

Sync with HEAD.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Tue Nov 13 15:58:09 2007 UTC (15 years, 7 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

Sync with HEAD

Revision 1.14.36.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:14:13 2007 UTC (15 years, 7 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

sync with HEAD

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Sat Oct 27 11:25:08 2007 UTC (15 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.6.2.1: +2 -2 lines
Diff to previous 1.6.2.1 (colored)

sync with head.

Revision 1.14.34.4 / (download) - annotate - [select for diffs], Fri Oct 26 15:42:09 2007 UTC (15 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.14.34.3: +2 -2 lines
Diff to previous 1.14.34.3 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Oct 24 06:26:56 2007 UTC (15 years, 7 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: yamt-kmem, vmlocking2, mjf-devfs
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

cpufunc.S depends on assym.h.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Oct 17 19:53:03 2007 UTC (15 years, 7 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-x86pmap-base4
Changes since 1.15: +1 -1 lines
Diff to previous 1.15 (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.14.24.1 / (download) - annotate - [select for diffs], Tue Oct 16 18:23:33 2007 UTC (15 years, 7 months ago) by garbled
Branch: ppcoea-renovation
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Sync with HEAD

Revision 1.14.16.1 / (download) - annotate - [select for diffs], Tue Oct 9 13:37:17 2007 UTC (15 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

Sync with head.

Revision 1.14.38.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:37:43 2007 UTC (15 years, 8 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

sync with head.

Revision 1.14.34.3 / (download) - annotate - [select for diffs], Thu Oct 4 15:44:49 2007 UTC (15 years, 8 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.14.34.2: +2 -3 lines
Diff to previous 1.14.34.2 (colored) to branchpoint 1.14 (colored)

Sync with HEAD.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Oct 4 00:00:42 2007 UTC (15 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, yamt-x86pmap-base2, vmlocking-base, ppcoea-renovation-base
Branch point for: bouyer-xenamd64
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

busfunc depends on assym.h

Revision 1.14.34.2 / (download) - annotate - [select for diffs], Mon Sep 24 16:33:00 2007 UTC (15 years, 8 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.14.34.1: +2 -3 lines
Diff to previous 1.14.34.1 (colored) to branchpoint 1.14 (colored)

Generate the ACPI wakecode image dynamically at build time.

Revision 1.14.34.1 / (download) - annotate - [select for diffs], Mon Sep 10 20:39:01 2007 UTC (15 years, 9 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

Add work-in-progress remerge of i386 changes for the ACPI wakecode
and changes to adopt it to AMD64.

Revision 1.9.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:37:18 2006 UTC (16 years, 9 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.9: +12 -16 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

sync with head

Revision 1.10.2.3 / (download) - annotate - [select for diffs], Mon Jun 26 12:44:22 2006 UTC (16 years, 11 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.10.2.2: +3 -7 lines
Diff to previous 1.10.2.2 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

sync with head.

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 14:48:25 2006 UTC (16 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.6: +29 -7 lines
Diff to previous 1.6 (colored)

sync with head.

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 03:44:01 2006 UTC (16 years, 11 months ago) by chap
Branch: chap-midi
Changes since 1.13: +3 -7 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

Sync with head.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jun 7 22:37:14 2006 UTC (17 years ago) by kardel
Branch: MAIN
CVS Tags: yamt-x86pmap-base, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, thorpej-atomic-base, thorpej-atomic, rpaulo-netinet-merge-pcb-base, reinoud-bufcleanup, post-newlock2-merge, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, newlock2-nbase, newlock2-base, newlock2, 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, mjf-ufs-trans-base, mjf-ufs-trans, matt-nb4-arm-base, matt-nb4-arm, matt-mips64-base, matt-mips64, hpcarm-cleanup, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-x86pmap, vmlocking, ppcoea-renovation, matt-armv6, jmcneill-pm
Changes since 1.13: +3 -7 lines
Diff to previous 1.13 (colored)

convert to timecounters (from branch simonb-timecounters)

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Wed May 24 15:47:50 2006 UTC (17 years ago) by tron
Branch: peter-altq
Changes since 1.11: +10 -6 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.9.6.2 / (download) - annotate - [select for diffs], Sun Apr 30 17:35:23 2006 UTC (17 years, 1 month ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.9.6.1: +3 -7 lines
Diff to previous 1.9.6.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

retire microtime.S

Revision 1.9.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:37:12 2006 UTC (17 years, 1 month ago) by simonb
Branch: simonb-timecounters
Changes since 1.9: +10 -10 lines
Diff to previous 1.9 (colored)

Sync with head.

Revision 1.10.4.1 / (download) - annotate - [select for diffs], Wed Apr 19 02:31:58 2006 UTC (17 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.10: +10 -11 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

sync with head - hopefully this will work

Revision 1.10.2.2 / (download) - annotate - [select for diffs], Tue Apr 11 11:53:25 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.10.2.1: +10 -6 lines
Diff to previous 1.10.2.1 (colored) to branchpoint 1.10 (colored)

sync with head

Revision 1.13 / (download) - annotate - [select for diffs], Tue Apr 4 03:13:12 2006 UTC (17 years, 2 months ago) by gdamore
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, yamt-pdpolicy-base4, simonb-timecounters-base, elad-kernelauth-base
Branch point for: chap-midi
Changes since 1.12: +8 -4 lines
Diff to previous 1.12 (colored)

Convert existing ath users to new Makefile, except for amd64, which needs
the rules due to needing to conditionally postprocess the HAL object file.

Macppc needs a a non-ELF HAL (EABI) object, so take care of that by default
in the atheros include file.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Apr 2 05:52:14 2006 UTC (17 years, 2 months ago) by gdamore
Branch: MAIN
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

Reorganize ath layout as requested by sam@ and suggested by dyoung@ in
http://mail-index.netbsd.org/tech-net/2006/03/15/0000.html.

The new layout almost precisely matches FreeBSD, and should make
future imports much easier.

At the same time, import the current 0.9.16.16 HAL from FreeBSD.  According
to sam@, this is the proper version we should be using.

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Mon Mar 13 09:06:51 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.10: +1 -6 lines
Diff to previous 1.10 (colored)

sync with head.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Mar 8 17:03:13 2006 UTC (17 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pdpolicy-base3, yamt-pdpolicy-base2, peter-altq-base
Branch point for: peter-altq
Changes since 1.10: +1 -6 lines
Diff to previous 1.10 (colored)

No need to create opt_ah.h here, config(8) takes care of it.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Mar 3 14:55:14 2006 UTC (17 years, 3 months ago) by he
Branch: MAIN
CVS Tags: yamt-pdpolicy-base
Branch point for: yamt-pdpolicy, elad-kernelauth
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

Before symlinking opt_ah.h, make sure the target doesn't already exist.
This fixes a build problem with UPDATE set.

Revision 1.4.2.5 / (download) - annotate - [select for diffs], Sun Dec 11 10:28:13 2005 UTC (17 years, 6 months ago) by christos
Branch: ktrace-lwp
Changes since 1.4.2.4: +8 -1 lines
Diff to previous 1.4.2.4 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Sync with head.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Nov 30 21:50:47 2005 UTC (17 years, 6 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, ktrace-lwp-base
Branch point for: simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.8: +4 -6 lines
Diff to previous 1.8 (colored)

It seems that make doesn't like testing empty() on undefined variables.
Also objdump DTRT when asked to update a file, so no need to do a mv ourselves.

Revision 1.7.6.1 / (download) - annotate - [select for diffs], Tue Nov 29 21:22:56 2005 UTC (17 years, 6 months ago) by yamt
Branch: yamt-readahead
Changes since 1.7: +10 -1 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

sync with head.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Nov 27 13:30:27 2005 UTC (17 years, 6 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-readahead-base3
Changes since 1.7: +10 -1 lines
Diff to previous 1.7 (colored)

If we are compiling with -fno-asynchronous-unwind-tables then also
remove the .eh_frame section from athhal-x86_64-elf.hal.o.

Revision 1.4.2.4 / (download) - annotate - [select for diffs], Thu Nov 10 13:50:24 2005 UTC (17 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.4.2.3: +21 -2 lines
Diff to previous 1.4.2.3 (colored) to branchpoint 1.4 (colored)

Sync with HEAD. Here we go again...

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jul 12 20:22:45 2005 UTC (17 years, 11 months ago) by sekiya
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base2, yamt-readahead-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-readahead
Changes since 1.6: +20 -1 lines
Diff to previous 1.6 (colored)

Add config goo for ath.  Tested with a PCI card, detected as:

	ath0 at pci0 dev 10 function 0
	ath0: interrupting at ioapic0 pin 17 (irq 5)
	ath0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
	ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
	ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36M bps 48Mbps 54Mbps
	ath0: mac 5.9 phy 4.3 radio 3.6

Cardbus untested, so it is commented out.

Revision 1.6 / (download) - annotate - [select for diffs], Tue May 31 04:03:09 2005 UTC (18 years ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

s/GENASSYM/GENASSYM_CONF/ so we can use "GENASSYM" as the program name.

Revision 1.4.6.1 / (download) - annotate - [select for diffs], Sun Feb 6 07:45:23 2005 UTC (18 years, 4 months ago) by jmc
Branch: netbsd-2
CVS Tags: 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
Changes since 1.4: +6 -1 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Pull up patch (requested by martti in ticket #1086)
Move ipf to sys/dist/ipf and sync w. trunk

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:12:07 2004 UTC (18 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.4.2.2: +1 -1 lines
Diff to previous 1.4.2.2 (colored) to branchpoint 1.4 (colored)

Fix the sync with head I botched.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:31:22 2004 UTC (18 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.4.2.1: +0 -0 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored)

Sync with HEAD.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:31:30 2004 UTC (18 years, 10 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.4: +6 -1 lines
Diff to previous 1.4 (colored)

Sync with HEAD

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jun 4 04:45:50 2004 UTC (19 years ago) by thorpej
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, 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, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Changes since 1.4: +6 -1 lines
Diff to previous 1.4 (colored)

Add the %MAKEOPTIONSAPPEND token at the end of the file, after the
common Makefile.kern.inc has been included.

Revision 1.4 / (download) - annotate - [select for diffs], Tue May 27 16:46:03 2003 UTC (20 years ago) by christos
Branch: MAIN
CVS Tags: netbsd-2-base, 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
Branch point for: netbsd-2, ktrace-lwp
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

another dependency on assym.h

Revision 1.3 / (download) - annotate - [select for diffs], Sat May 17 05:39:35 2003 UTC (20 years ago) by christos
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

clock.o depends on config_time.h

Revision 1.2 / (download) - annotate - [select for diffs], Sun May 4 12:03:41 2003 UTC (20 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Default to -O2.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Apr 26 18:39:35 2003 UTC (20 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.

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>