CVS commit: src/sys/arch/amd64/amd64

2015-11-20 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Nov 20 11:58:00 UTC 2015

Modified Files:
src/sys/arch/amd64/amd64: genassym.cf locore.S

Log Message:
A few changes:
 - remove cpu_id and cpu_brand_id (unused)
 - copy a comment from i386 about fillkpt
 - define PDE_SIZE (i386)


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/sys/arch/amd64/amd64/genassym.cf
cvs rdiff -u -r1.79 -r1.80 src/sys/arch/amd64/amd64/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2015-11-21 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sat Nov 21 12:34:48 UTC 2015

Modified Files:
src/sys/arch/amd64/amd64: copy.S

Log Message:
Remove the amd64 implementation of fuword and suword. They are not used in
the MI+amd64 code - Christos replaced them yesterday by copy*.

They are both buggy:
 - suword does not properly check the userspace limit: 64 bits are copied,
   but the max address checked is VM_MAXUSER_ADDRESS-4, which means that 4
   bytes may overflow. Reported by Ed Schouten.
 - fuword is supposed to be symmetrical with suword. But it uses 32bit
   registers, so it stores 32bit values! Spotted by Chuck (chs@).


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/amd64/amd64/copy.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2015-11-22 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Nov 22 10:19:00 UTC 2015

Modified Files:
src/sys/arch/amd64/amd64: locore.S

Log Message:
Clarify:
 - add some comments
 - rename some jumps
 - KNF
No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/sys/arch/amd64/amd64/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2015-11-22 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Nov 22 13:41:24 UTC 2015

Modified Files:
src/sys/arch/amd64/amd64: amd64_trap.S autoconf.c bios32.c gdt.c
kgdb_machdep.c linux32_sigcode.S machdep.c mptramp.S
netbsd32_machdep.c spl.S trap.c vector.S

Log Message:
KNF a bit, so I don't get scared each time I open a file


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/amd64/amd64/amd64_trap.S \
src/sys/arch/amd64/amd64/linux32_sigcode.S
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/amd64/amd64/autoconf.c
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/amd64/amd64/bios32.c
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/amd64/amd64/gdt.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/amd64/amd64/kgdb_machdep.c
cvs rdiff -u -r1.213 -r1.214 src/sys/arch/amd64/amd64/machdep.c
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/amd64/amd64/mptramp.S
cvs rdiff -u -r1.93 -r1.94 src/sys/arch/amd64/amd64/netbsd32_machdep.c
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/amd64/amd64/spl.S
cvs rdiff -u -r1.80 -r1.81 src/sys/arch/amd64/amd64/trap.c
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/amd64/amd64/vector.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2015-11-22 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Nov 22 14:06:08 UTC 2015

Modified Files:
src/sys/arch/amd64/amd64: locore.S

Log Message:
Remove cpu_vendorname (unused). It is retrieved later in identcpu.c.


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 src/sys/arch/amd64/amd64/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2015-11-25 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Nov 25 16:00:10 UTC 2015

Modified Files:
src/sys/arch/amd64/amd64: locore.S

Log Message:
Cosmetic changes.


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/sys/arch/amd64/amd64/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2015-11-28 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sat Nov 28 15:06:55 UTC 2015

Modified Files:
src/sys/arch/amd64/amd64: trap.c

Log Message:
If the kernel jumps to NULL, print where it came from instead of trying
to dereference and faulting again.


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 src/sys/arch/amd64/amd64/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2015-12-09 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Dec  9 16:55:18 UTC 2015

Modified Files:
src/sys/arch/amd64/amd64: copy.S mptramp.S

Log Message:
KNF, and use C-style comments. Also, remove fusword/susword.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/amd64/amd64/copy.S
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/amd64/amd64/mptramp.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2016-02-15 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Mon Feb 15 20:35:59 UTC 2016

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
Use KASSERTs supported by CTASSERTs, not __builtin_unreachable.

pcc has no __builtin_unreachable, and this is clearer anyway.


To generate a diff of this commit:
cvs rdiff -u -r1.214 -r1.215 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2016-03-25 Thread Mateusz Kocielski
Module Name:src
Committed By:   shm
Date:   Fri Mar 25 10:14:43 UTC 2016

Modified Files:
src/sys/arch/amd64/amd64: db_disasm.c

Log Message:
Add support for clac and stac instructions.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/amd64/amd64/db_disasm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2016-04-11 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Mon Apr 11 14:14:27 UTC 2016

Modified Files:
src/sys/arch/amd64/amd64: lock_stubs.S

Log Message:
__cpu_simple_unlock() is called from _mcount(), so don't call mcount() from
__cpu_simple_unlock().
Kernel profiling should work again


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/amd64/amd64/lock_stubs.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2016-05-07 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sat May  7 11:49:21 UTC 2016

Modified Files:
src/sys/arch/amd64/amd64: locore.S

Log Message:
clarify


To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 src/sys/arch/amd64/amd64/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2016-05-07 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sat May  7 13:08:30 UTC 2016

Modified Files:
src/sys/arch/amd64/amd64: mptramp.S

Log Message:
clarify


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/amd64/amd64/mptramp.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2016-05-08 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun May  8 08:22:58 UTC 2016

Modified Files:
src/sys/arch/amd64/amd64: locore.S

Log Message:
Use killkpt for the PML4 entries as well.


To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.85 src/sys/arch/amd64/amd64/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2016-05-11 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed May 11 19:35:08 UTC 2016

Modified Files:
src/sys/arch/amd64/amd64: locore.S mptramp.S

Log Message:
There is a bug in the way the secondary CPUs are launched on amd64.

When CPU0 is launched, EFER_NXE is enabled in it, and it allows it to
handle pages that have the NOX bit. When the secondary CPUs are
launched, however, EFER_NXE is enabled only after paging is set in their
%cr0. And therefore, between the moment when paging is enabled and the
moment when EFER_NXE is enabled, the secondary CPUs cannot access pages
that have the NOX bit - they crash if they try to.

The funny thing is that in order to enable EFER_NXE, the secondary CPUs
give a look at cpu_feature[2], which is in the DATA segment, which in
turn could have the NOX bit. In other words, the secondary CPUs crash if
the DATA segment is mapped with the NOX bit.

Fix this by enabling EFER_NXE in the secondary CPUs before enabling
paging. CPU0 initializes nox_flag to the 32bit version of PG_NX if NOX
is supported; the secondary CPUs then use nox_flag to know whether NOX
is supported.

nox_flag will be used for other purposes soon.


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 src/sys/arch/amd64/amd64/locore.S
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/amd64/amd64/mptramp.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2016-05-12 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Thu May 12 07:51:10 UTC 2016

Modified Files:
src/sys/arch/amd64/amd64: locore.S

Log Message:
Define fillkpt_nox, which sets up a set of pages and puts the NOX bit on
them by using nox_flag. Use fillkpt_nox to map the rodata segment
without X permissions.


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sys/arch/amd64/amd64/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2016-05-22 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun May 22 10:11:55 UTC 2016

Modified Files:
src/sys/arch/amd64/amd64: locore.S

Log Message:
Save L4's physical address earlier. Also, PDE_SIZE has nothing to do
here, we are just zeroing out the upper 32bits of the 64bit pointer.


To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 src/sys/arch/amd64/amd64/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2016-05-28 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sat May 28 08:43:17 UTC 2016

Modified Files:
src/sys/arch/amd64/amd64: locore.S

Log Message:
Move proc0's stack out of the BOOTSTRAP TABLES, and map it independently
with RW permissions. Reduces the impact of a stack overflow.


To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 src/sys/arch/amd64/amd64/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2016-05-28 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sat May 28 09:03:16 UTC 2016

Modified Files:
src/sys/arch/amd64/amd64: locore.S

Log Message:
Define fillkpt_blank, which creates blank entries in a page table. Use
it to map the first MB. No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.95 -r1.96 src/sys/arch/amd64/amd64/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2016-05-29 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun May 29 09:04:20 UTC 2016

Modified Files:
src/sys/arch/amd64/amd64: locore.S

Log Message:
Revert rev1.94. It apparently raises a page fault from SMEP. I need to
investigate the whole kernel mappings anyway, so I'll recommit this
patch later.


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/sys/arch/amd64/amd64/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2016-07-01 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Jul  1 12:41:28 UTC 2016

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
Don't confuse between VM_PROT and UVM_PROT. This should be VM_PROT.


To generate a diff of this commit:
cvs rdiff -u -r1.218 -r1.219 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2016-07-02 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sat Jul  2 07:22:10 UTC 2016

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
Explain why we should use kernel_map instead of module_map, and why we
can't.

We should probably add some GCC flags in the modules makefiles to make
sure the relocations generated are not 32bit.

Related to PR/43438.


To generate a diff of this commit:
cvs rdiff -u -r1.219 -r1.220 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2016-07-11 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Mon Jul 11 14:52:54 UTC 2016

Modified Files:
src/sys/arch/amd64/amd64: locore.S

Log Message:
KNF and simplify.


To generate a diff of this commit:
cvs rdiff -u -r1.106 -r1.107 src/sys/arch/amd64/amd64/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2016-07-20 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Jul 20 13:49:18 UTC 2016

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
This comment is wrong. In fact, we are in low physical memory, but in high
virtual memory, and only the latter matters. I'm not exactly sure why, but
it appears that the kernel modules must be placed above the kernel image.
Just make this comment more ambiguous, in case the next passer-by gets
inspired.


To generate a diff of this commit:
cvs rdiff -u -r1.224 -r1.225 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2016-07-25 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Mon Jul 25 15:29:06 UTC 2016

Modified Files:
src/sys/arch/amd64/amd64: mptramp.S

Log Message:
Unused.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/amd64/amd64/mptramp.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2010-04-18 Thread Jean-Yves Migeon
Module Name:src
Committed By:   jym
Date:   Sun Apr 18 15:24:54 UTC 2010

Modified Files:
src/sys/arch/amd64/amd64: locore.S

Log Message:
When kernel remaps to high memory in amd64 locore, the GDT used before
becomes invalid. As such, split it in two parts, one for use when system
boots in low memory, and one for use when it jumps to high memory.


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/sys/arch/amd64/amd64/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2010-04-20 Thread Jean-Yves Migeon
Module Name:src
Committed By:   jym
Date:   Tue Apr 20 15:42:21 UTC 2010

Modified Files:
src/sys/arch/amd64/amd64: mptramp.S

Log Message:
Enable the NX bit feature early in the MP trampoline code (do not rely on
cpu_init_msrs() to do it). Having NX bit set on a page will raise a #GP
on fetch if NXE is not enabled, which can happen early when structures
(like idlelwp) are allocated with just rw- rights.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/amd64/amd64/mptramp.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2010-05-05 Thread David Young
Module Name:src
Committed By:   dyoung
Date:   Wed May  5 16:53:58 UTC 2010

Modified Files:
src/sys/arch/amd64/amd64: busfunc.S

Log Message:
As Andrew Doran points out, _ALIGN_TEXT is unused, and to test that
X86_BUS_SPACE_IO equals 0 is no longer necessary.  Get rid of the
_ALIGN_TEXT definition, and do not "assert" that X86_BUS_SPACE_IO == 0.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/amd64/amd64/busfunc.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2010-05-10 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue May 11 02:34:40 UTC 2010

Modified Files:
src/sys/arch/amd64/amd64: netbsd32_machdep.c

Log Message:
Fix indentation


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/arch/amd64/amd64/netbsd32_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2010-06-22 Thread Mindaugas Rasiukevicius
Module Name:src
Committed By:   rmind
Date:   Tue Jun 22 18:26:05 UTC 2010

Modified Files:
src/sys/arch/amd64/amd64: copy.S

Log Message:
Fix ucas_32/ucas_64 on amd64.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/amd64/amd64/copy.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2010-07-06 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Wed Jul  7 01:13:29 UTC 2010

Modified Files:
src/sys/arch/amd64/amd64: copy.S

Log Message:
fix more bugs in ucas_*():
move the "old" value to %*ax so that cmpxchg* can work.
remove the PCB_ONFAULT stuff, onfault_handler() handles this already.
return the error from fault handler in ucas_fault rather than forcing EFAULT.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/amd64/amd64/copy.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2010-07-06 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Wed Jul  7 01:15:35 UTC 2010

Modified Files:
src/sys/arch/amd64/amd64: trap.c

Log Message:
clean up the check for tracing into a syscall handler.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/arch/amd64/amd64/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2010-07-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jul 26 12:39:04 UTC 2010

Modified Files:
src/sys/arch/amd64/amd64: trap.c

Log Message:
follow suit with the i386, and correct the siginfo codes for integer overflow
and zerodivide.


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/sys/arch/amd64/amd64/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2010-07-31 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sat Jul 31 18:38:33 UTC 2010

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
Add machdep.fpu_present, machdep.sse and machdep.sse2 sysctls for
compatibility with i386 and compat32.


To generate a diff of this commit:
cvs rdiff -u -r1.146 -r1.147 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2010-09-05 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Sun Sep  5 20:52:38 UTC 2010

Modified Files:
src/sys/arch/amd64/amd64: netbsd32_machdep.c

Log Message:
accept the LDT selector in check_sigcontext32() too.


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/sys/arch/amd64/amd64/netbsd32_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2010-09-22 Thread Jonathan A. Kollasch
Module Name:src
Committed By:   jakllsch
Date:   Wed Sep 22 16:16:52 UTC 2010

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
Avoid fault if acpi_softc is NULL at attempted power-off.
XXX at least some of this should be factored off into arch/x86.


To generate a diff of this commit:
cvs rdiff -u -r1.148 -r1.149 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2010-10-21 Thread YAMAMOTO Takashi
Module Name:src
Committed By:   yamt
Date:   Thu Oct 21 11:22:55 UTC 2010

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
cpu_fsgs_zero: always clear tf_fs and tf_gs.


To generate a diff of this commit:
cvs rdiff -u -r1.150 -r1.151 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2010-10-21 Thread YAMAMOTO Takashi
Module Name:src
Committed By:   yamt
Date:   Thu Oct 21 11:27:46 UTC 2010

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
cpu_fsgs_zero: clear %fs and %gs even in the case of !PK_32.


To generate a diff of this commit:
cvs rdiff -u -r1.151 -r1.152 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2010-10-21 Thread YAMAMOTO Takashi
Module Name:src
Committed By:   yamt
Date:   Thu Oct 21 11:28:34 UTC 2010

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
cpu_setmcontext: add a comment


To generate a diff of this commit:
cvs rdiff -u -r1.152 -r1.153 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2010-10-21 Thread YAMAMOTO Takashi
Module Name:src
Committed By:   yamt
Date:   Thu Oct 21 11:39:45 UTC 2010

Modified Files:
src/sys/arch/amd64/amd64: locore.S

Log Message:
Xsyscall: save %es before enabling interrupts.  otherwise it can be
clobbered by preemption.  PR/43903.


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/sys/arch/amd64/amd64/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2010-10-21 Thread YAMAMOTO Takashi
Module Name:src
Committed By:   yamt
Date:   Thu Oct 21 11:41:31 UTC 2010

Modified Files:
src/sys/arch/amd64/amd64: locore.S

Log Message:
Xsyscall: remove an unused label.


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/sys/arch/amd64/amd64/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2010-10-21 Thread YAMAMOTO Takashi
Module Name:src
Committed By:   yamt
Date:   Thu Oct 21 11:42:27 UTC 2010

Modified Files:
src/sys/arch/amd64/amd64: locore.S

Log Message:
Xsyscall: remove a stale comment.


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/sys/arch/amd64/amd64/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2010-10-21 Thread YAMAMOTO Takashi
Module Name:src
Committed By:   yamt
Date:   Thu Oct 21 11:43:23 UTC 2010

Modified Files:
src/sys/arch/amd64/amd64: locore.S

Log Message:
Xosyscall: sync with Xsyscall.


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/sys/arch/amd64/amd64/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2010-11-14 Thread Masao Uebayashi
Module Name:src
Committed By:   uebayasi
Date:   Mon Nov 15 06:12:28 UTC 2010

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
struct lwp * and struct proc * derefs.


To generate a diff of this commit:
cvs rdiff -u -r1.156 -r1.157 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2010-11-17 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Wed Nov 17 18:22:17 UTC 2010

Modified Files:
src/sys/arch/amd64/amd64: netbsd32_machdep.c

Log Message:
Fix build with COMPAT_13.


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/sys/arch/amd64/amd64/netbsd32_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2010-12-18 Thread Jean-Yves Migeon
Module Name:src
Committed By:   jym
Date:   Sat Dec 18 13:53:34 UTC 2010

Modified Files:
src/sys/arch/amd64/amd64: locore.S

Log Message:
Free tables are already zeroed in xen_pmap_bootstrap. No need to
do it a second time in assembly code.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/arch/amd64/amd64/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-01-26 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Wed Jan 26 21:44:32 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: netbsd32_machdep.c

Log Message:
Do mask the upper 16 bits, when sanity checking fs/gs register values.
Fix my own PR/43842.


To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/sys/arch/amd64/amd64/netbsd32_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-02-18 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Fri Feb 18 18:00:52 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: db_disasm.c

Log Message:
fix misinterpretation of REX prefixes where use of the accumulator
as operand is hardwired into the instruction code,
mostly from Wolfgang Stukenbrock per PR port-amd64/44405


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/amd64/amd64/db_disasm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-02-21 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Feb 22 05:07:36 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: cpufunc.S

Log Message:
Be explicit about the member of the fld family wanted here.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/amd64/amd64/cpufunc.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-02-21 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Tue Feb 22 07:12:29 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: mainbus.c

Log Message:
Fix build in admittedly quixotic case with IPMI but no PCI or ACPI.
(ACPI currently doesn't work without PCI, fwiw.)


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/amd64/amd64/mainbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-02-22 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Feb 23 03:31:49 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: netbsd32_machdep.c

Log Message:
C&P error


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/arch/amd64/amd64/netbsd32_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-03-06 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Mon Mar  7 02:24:57 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: fpu.c

Log Message:
Use macros clts/stts instead of directly manipulating CR0 flags.
Expose fpuinit to XEN build. (remove #ifdef XEN)


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/amd64/amd64/fpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-05-20 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Fri May 20 13:32:35 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: locore.S

Log Message:
Be more explicit that the "w" part of %r11 is meant.


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/sys/arch/amd64/amd64/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-05-20 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Fri May 20 13:33:11 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: busfunc.S

Log Message:
The %dx argument of in/out is not a memory reference, so don't use it as
such.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/amd64/amd64/busfunc.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-07-01 Thread David Young
Module Name:src
Committed By:   dyoung
Date:   Fri Jul  1 19:24:14 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: fpu.c genassym.cf rbus_machdep.c

Log Message:
#include  instead of .


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/amd64/amd64/fpu.c
cvs rdiff -u -r1.47 -r1.48 src/sys/arch/amd64/amd64/genassym.cf
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/amd64/amd64/rbus_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-07-17 Thread Jean-Yves Migeon
Module Name:src
Committed By:   jym
Date:   Sun Jul 17 15:16:59 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
CR4_PAE is always set to 1 under amd64, so indicate that PAE mode is
enabled. Can be useful for 32-bits test runs on amd64 hosts.


To generate a diff of this commit:
cvs rdiff -u -r1.161 -r1.162 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-08-01 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Mon Aug  1 22:21:01 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: linux32_sigcode.S

Log Message:
Remove redundant , after .balign.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/amd64/amd64/linux32_sigcode.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-08-31 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Aug 31 17:03:17 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
on xen we don't initialize memory segment maps, so no sparse dumps for now.


To generate a diff of this commit:
cvs rdiff -u -r1.165 -r1.166 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-08-31 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Aug 31 18:52:38 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
fix reversed test.


To generate a diff of this commit:
cvs rdiff -u -r1.166 -r1.167 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-10-05 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Wed Oct  5 20:39:24 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: trap.c

Log Message:
Remove extra space.


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/sys/arch/amd64/amd64/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-10-31 Thread YAMAMOTO Takashi
Module Name:src
Committed By:   yamt
Date:   Mon Oct 31 12:42:36 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
dumpsys_seg: don't overwrite the previous mapping


To generate a diff of this commit:
cvs rdiff -u -r1.167 -r1.168 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-11-06 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sun Nov  6 15:51:09 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
DTRT with macros and use xen's info page when initialising pmap_pa_start and 
pmap_pa_end.


To generate a diff of this commit:
cvs rdiff -u -r1.168 -r1.169 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-11-06 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Sun Nov  6 15:53:04 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: trap.c

Log Message:
Use the right format strings with printf


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/sys/arch/amd64/amd64/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-11-20 Thread YAMAMOTO Takashi
Module Name:src
Committed By:   yamt
Date:   Sun Nov 20 18:42:56 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
revert machdep.c rev. 1.168 because it's likely to have the same problem
as i386's one.
http://mail-index.NetBSD.org/source-changes-d/2011/11/19/msg004283.html


To generate a diff of this commit:
cvs rdiff -u -r1.170 -r1.171 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-11-22 Thread Jean-Yves Migeon
Module Name:src
Committed By:   jym
Date:   Wed Nov 23 01:15:02 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: db_memrw.c

Log Message:
Kill dependency to xpmap_update(), and use setbits/clearbits to update
kernel PTE rights.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/amd64/amd64/db_memrw.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2011-12-20 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Dec 20 13:17:05 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: process_machdep.c

Log Message:
from 
http://www.freshbsd.org/commit/openbsd/ae7f934ae5bdf57dcf3431ba55fd1da93b8f1963

Initialize abridged tag word properly. x87 spec says FNINIT says tag word
contains h (all stack locations empty) which would make abridged tag
word 00h. From the Intel 64 and IA-32 Architectures Software Developer's
Manual:

"The FXSAVE instruction saves an abridged version of the x87 FPU tag word
in the FTW field (unlike the FSAVE instruction, which saves the complete
tag word). The tag information is saved in physical register order (R0
through R7), rather than in top-of- stack (TOS) order. With the FXSAVE
instruction, however, only a single bit (1 for valid or 0 for empty) is
saved for each tag."

ok rmind@


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/amd64/amd64/process_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2012-02-04 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Sat Feb  4 22:45:42 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: trap.c

Log Message:
Fix address of SIGILL instruction on amd64 as previously fixed on i386. It
used to return the effective address of the faulted memory access but on
SIGILL its obviously wrong since there is no MMU fault.

Instead return the instruction counter register.
OK by releng


To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/sys/arch/amd64/amd64/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2012-02-19 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Sun Feb 19 23:15:24 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
Remove extern variables defined in headers.


To generate a diff of this commit:
cvs rdiff -u -r1.176 -r1.177 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2012-02-22 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Wed Feb 22 14:12:04 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: db_machdep.c

Log Message:
fix stack backtraces through traps.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/amd64/amd64/db_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2012-02-24 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sat Feb 25 00:13:28 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: bios32.c

Log Message:
Avoid empty loop bodies.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/amd64/amd64/bios32.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2012-04-14 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr 15 00:34:09 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
Fix check_mcontext for PK_32 binaries. Makes gdb work for i386 binaries on
amd64.


To generate a diff of this commit:
cvs rdiff -u -r1.180 -r1.181 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2012-04-21 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Apr 21 18:52:37 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: vector.S

Log Message:
Alignment fault traps push the error code automatically, so don't use ZTRAP!


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/arch/amd64/amd64/vector.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2012-04-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr 29 21:54:51 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
tidy up...


To generate a diff of this commit:
cvs rdiff -u -r1.181 -r1.182 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2012-05-07 Thread Jean-Yves Migeon
Module Name:src
Committed By:   jym
Date:   Mon May  7 12:20:27 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: db_memrw.c

Log Message:
invlpg on a non canonical address is a noop, so no chance to invalidate
the TLB and the CPU will not notice the access right change.

This results in write protection faults in supervisor mode when patching
kernel code through ddb(4) (originally mapped as read only).

Bug reported by David Laight on port-amd64@ (thanks!), patch and test by
me.

i386 is unaffected as PG_LGFRAME does not mask the sign bits. For the
sake of correctness, use VA_SIGN_NEG(...) anyway.

XXX this is the patch that will be pulled-up to -5 and -6.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/amd64/amd64/db_memrw.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2012-05-07 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Mon May  7 21:09:29 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: vector.S

Log Message:
Rejig the way TRAP() and ZTRAP() are defined and add Z/TRAP_NJ() that
  excludes the 'jmp alltraps'.
Use the _NJ versions for trap entries with non-standard code.
Move all the KDTRACE_HOOKS code into a single block inside the
  IDTVEC(trap03) code. This removes a mis-predicted from every
  trap when KDTRACE_HOOKS are enabled.
Add a few blank lines, need some comments as well :-)
No functional changes intended.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/amd64/amd64/vector.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2012-05-22 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Tue May 22 21:10:26 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: vector.S

Log Message:
If we get a fault setting the user %gs, or on a iret that is returning
to userspace, we must do a 'swapgs' to reload the kernel %gs_base.
Also save the %ds, %es, %fs, %gs selector values in the frame so
they can be restored if we finally return to user (probably after
an application SIGSEGV handler has fixed the error).
Without this any such fault leaves the kernel running with the wrong
%gs offset and it will most likely fault again early in trap().
Repeats until the stack tramples on something important.
iret change works, invalid %gs is a little harder to arrange.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/amd64/amd64/vector.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2012-05-22 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Tue May 22 21:14:37 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: trap.c

Log Message:
Treat traps in kernel mode during the 'return to user' iret sequence
as user faults.
Based heavily in the i386 code with the correct opcode bytes inserted.
iret path tested, arranging for segment register errors is harder.
User %fs and %gs (32bit apps) are loaded much earlier and any errors
will generate kernel panics - there is probably code to try to stop
the invalid values being set.


To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 src/sys/arch/amd64/amd64/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2012-06-12 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Tue Jun 12 22:16:05 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: machdep.c netbsd32_machdep.c

Log Message:
If the user process provided a bogus signal handler address, kill it
now instead of trying to jump to the bogus address.


To generate a diff of this commit:
cvs rdiff -u -r1.183 -r1.184 src/sys/arch/amd64/amd64/machdep.c
cvs rdiff -u -r1.76 -r1.77 src/sys/arch/amd64/amd64/netbsd32_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2012-06-16 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sat Jun 16 16:42:27 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
Annotate tautological if, so that clang doesn't warn about the dt usage
later on.


To generate a diff of this commit:
cvs rdiff -u -r1.184 -r1.185 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2012-08-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 28 15:54:41 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: trap.c

Log Message:
don't undef TRAP_SIGDEBUG


To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.74 src/sys/arch/amd64/amd64/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2012-09-02 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Mon Sep  3 05:01:45 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
Revert to unmanaged x86 memory mapped isa and pci space.
This is a revert of commit r1.169:
http://mail-index.netbsd.org/source-changes/2011/11/06/msg028702.html

This should allow X to run on NetBSD/xen amd64 dom0, and fixes PR #46634


To generate a diff of this commit:
cvs rdiff -u -r1.189 -r1.190 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2012-10-03 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed Oct  3 17:43:22 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: db_machdep.c

Log Message:
Use db_read_value to read the trapframe fields in db_nextframe.

Fixes SIGSEGV on bt in crash(8) when the stack trace ends in syscall,
and probably other problems as well.

ok christos


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/amd64/amd64/db_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2012-11-02 Thread YAMAMOTO Takashi
Module Name:src
Committed By:   yamt
Date:   Fri Nov  2 08:31:29 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: spl.S

Log Message:
fix a comment


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/amd64/amd64/spl.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2012-11-02 Thread YAMAMOTO Takashi
Module Name:src
Committed By:   yamt
Date:   Fri Nov  2 08:33:16 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: vector.S

Log Message:
comment


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/sys/arch/amd64/amd64/vector.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2012-11-07 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Thu Nov  8 02:00:44 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: autoconf.c

Log Message:
add include of opt_intrdebug.h.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/amd64/amd64/autoconf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2012-11-13 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Tue Nov 13 14:09:36 UTC 2012

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
fix sparse crash dumps to contain enough data to be useful,
in particular the top-level page table pages.
use pmap_kremove_local() while writing crash dumps
to avoid spurious warning messages.


To generate a diff of this commit:
cvs rdiff -u -r1.190 -r1.191 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2013-01-12 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Sat Jan 12 16:56:11 UTC 2013

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
enable sparse dumps by default.


To generate a diff of this commit:
cvs rdiff -u -r1.191 -r1.192 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2013-01-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan 14 00:06:12 UTC 2013

Modified Files:
src/sys/arch/amd64/amd64: trap.c

Log Message:
print the lid too.


To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/sys/arch/amd64/amd64/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2013-04-02 Thread Takahiro Kambe
Module Name:src
Committed By:   taca
Date:   Tue Apr  2 13:28:42 UTC 2013

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
Use printf_nolog() as i386 when print remaing bytes at crash dump to
prevent message buffer with cound down.


To generate a diff of this commit:
cvs rdiff -u -r1.192 -r1.193 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2013-06-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jun  5 14:37:04 UTC 2013

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
declaring mtrr_funcs once should be enough.


To generate a diff of this commit:
cvs rdiff -u -r1.194 -r1.195 src/sys/arch/amd64/amd64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2013-06-21 Thread Masao Uebayashi
Module Name:src
Committed By:   uebayasi
Date:   Sat Jun 22 02:33:44 UTC 2013

Modified Files:
src/sys/arch/amd64/amd64: amd64func.S

Log Message:
Use END() to set ELF symbol size.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/amd64/amd64/amd64func.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2013-06-21 Thread Masao Uebayashi
Module Name:src
Committed By:   uebayasi
Date:   Sat Jun 22 05:56:32 UTC 2013

Modified Files:
src/sys/arch/amd64/amd64: cpu_in_cksum.S

Log Message:
Use END() to set ELF symbol size.  Set local string type/size too.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/amd64/amd64/cpu_in_cksum.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2013-06-21 Thread Masao Uebayashi
Module Name:src
Committed By:   uebayasi
Date:   Sat Jun 22 06:23:28 UTC 2013

Modified Files:
src/sys/arch/amd64/amd64: lock_stubs.S

Log Message:
Use END() to set ELF symbol size.  Set local data type/size too.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/amd64/amd64/lock_stubs.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2013-06-25 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Tue Jun 25 21:08:07 UTC 2013

Modified Files:
src/sys/arch/amd64/amd64: netbsd32_machdep.c

Log Message:
Improve the dodgy code that writes the FP regs into core dumps of 32bit apps.
(I'm not pretending it is correct yet!)
The 'struct fpreg32' (written to coredumps) is shorter than 'struct save87'
so netbsd32_process_read_fpregs() hadn't better write to the extra items.
Doing so overwrites stack in coredump_note() in core_elf32.c - I'm amazed
it doesn't cause a panic!
Also correct (I think) the code and data addresses associated with the FP
unit.
This probably wants pulling up.


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/sys/arch/amd64/amd64/netbsd32_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2014-11-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Nov 25 19:54:08 UTC 2014

Modified Files:
src/sys/arch/amd64/amd64: linux32_syscall.c

Log Message:
CID 981752: printf format


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/amd64/amd64/linux32_syscall.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2014-11-26 Thread Masao Uebayashi
Module Name:src
Committed By:   uebayasi
Date:   Thu Nov 27 04:48:39 UTC 2014

Modified Files:
src/sys/arch/amd64/amd64: spl.S

Log Message:
Comments.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/amd64/amd64/spl.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2014-12-14 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 14 21:27:49 UTC 2014

Modified Files:
src/sys/arch/amd64/amd64: netbsd32_machdep.c
Added Files:
src/sys/arch/amd64/amd64: compat_13_machdep.c compat_16_machdep.c

Log Message:
Move the empty sigreturn functions to their own files to allow the compat
module to load by itself.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/arch/amd64/amd64/compat_13_machdep.c
cvs rdiff -u -r0 -r1.5 src/sys/arch/amd64/amd64/compat_16_machdep.c
cvs rdiff -u -r1.92 -r1.93 src/sys/arch/amd64/amd64/netbsd32_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2015-02-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Feb 27 15:35:10 UTC 2015

Modified Files:
src/sys/arch/amd64/amd64: trap.c

Log Message:
Tidy up error handling, and return SIGBUS for mmap past the end of file
as required by the spec.


To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/sys/arch/amd64/amd64/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2015-03-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Mar  7 18:41:40 UTC 2015

Modified Files:
src/sys/arch/amd64/amd64: linux32_syscall.c linux_syscall.c
netbsd32_syscall.c

Log Message:
add dtrace hooks


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/amd64/amd64/linux32_syscall.c \
src/sys/arch/amd64/amd64/linux_syscall.c
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/amd64/amd64/netbsd32_syscall.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2015-05-12 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue May 12 23:16:47 UTC 2015

Modified Files:
src/sys/arch/amd64/amd64: db_disasm.c

Log Message:
When in Rome... use true or false, instead of TRUE and FALSE.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/amd64/amd64/db_disasm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



  1   2   3   >