CVS commit: src/sys/arch/i386/i386

2019-10-17 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Fri Oct 18 01:19:00 UTC 2019 Modified Files: src/sys/arch/i386/i386: multiboot.c Log Message: Fix multiboot1 kernel symbol load ELF_Shdr's sh_type field is a value, not a flag field To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/arch/i386/i386

2019-10-17 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Fri Oct 18 01:19:00 UTC 2019 Modified Files: src/sys/arch/i386/i386: multiboot.c Log Message: Fix multiboot1 kernel symbol load ELF_Shdr's sh_type field is a value, not a flag field To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/arch/i386/i386

2019-10-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Oct 4 15:28:00 UTC 2019 Modified Files: src/sys/arch/i386/i386: i386_trap.S locore.S spl.S Log Message: Misc reordering, to clarify and reduce the diff against amd64. To generate a diff of this commit: cvs rdiff -u -r1.18

CVS commit: src/sys/arch/i386/i386

2019-10-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Oct 4 15:28:00 UTC 2019 Modified Files: src/sys/arch/i386/i386: i386_trap.S locore.S spl.S Log Message: Misc reordering, to clarify and reduce the diff against amd64. To generate a diff of this commit: cvs rdiff -u -r1.18

CVS commit: src/sys/arch/i386/i386

2019-08-05 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Aug 6 02:04:43 UTC 2019 Modified Files: src/sys/arch/i386/i386: process_machdep.c Log Message: Do not dereference user pointer in ptrace_machdep_dorequest()/i386 Always use copyin(9) for reading user memory. To generate a

CVS commit: src/sys/arch/i386/i386

2019-08-05 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Aug 6 02:04:43 UTC 2019 Modified Files: src/sys/arch/i386/i386: process_machdep.c Log Message: Do not dereference user pointer in ptrace_machdep_dorequest()/i386 Always use copyin(9) for reading user memory. To generate a

CVS commit: src/sys/arch/i386/i386

2019-07-13 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sat Jul 13 17:04:21 UTC 2019 Modified Files: src/sys/arch/i386/i386: trap.c Log Message: Use common code for SMEP/SMAP panic to print more information and allow debugging. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/arch/i386/i386

2019-07-13 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sat Jul 13 17:04:21 UTC 2019 Modified Files: src/sys/arch/i386/i386: trap.c Log Message: Use common code for SMEP/SMAP panic to print more information and allow debugging. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/arch/i386/i386

2019-05-29 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Wed May 29 14:28:37 UTC 2019 Modified Files: src/sys/arch/i386/i386: trap.c Log Message: Use PRIxREGISTER suggested by Kamil. To generate a diff of this commit: cvs rdiff -u -r1.300 -r1.301 src/sys/arch/i386/i386/trap.c

CVS commit: src/sys/arch/i386/i386

2019-05-29 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Wed May 29 14:28:37 UTC 2019 Modified Files: src/sys/arch/i386/i386: trap.c Log Message: Use PRIxREGISTER suggested by Kamil. To generate a diff of this commit: cvs rdiff -u -r1.300 -r1.301 src/sys/arch/i386/i386/trap.c

CVS commit: src/sys/arch/i386/i386

2019-05-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun May 19 08:49:08 UTC 2019 Modified Files: src/sys/arch/i386/i386: compat_16_machdep.c Log Message: Remove useless call to fpu_sigreset(), buildcontext() already calls it. To generate a diff of this commit: cvs rdiff -u -r1.31

CVS commit: src/sys/arch/i386/i386

2019-05-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun May 19 08:49:08 UTC 2019 Modified Files: src/sys/arch/i386/i386: compat_16_machdep.c Log Message: Remove useless call to fpu_sigreset(), buildcontext() already calls it. To generate a diff of this commit: cvs rdiff -u -r1.31

Re: CVS commit: src/sys/arch/i386/i386

2016-05-31 Thread Joerg Sonnenberger
On Tue, May 31, 2016 at 11:39:08AM +0200, Joerg Sonnenberger wrote: > On Mon, May 30, 2016 at 06:58:52PM -0400, Christos Zoulas wrote: > > Module Name:src > > Committed By: christos > > Date: Mon May 30 22:58:52 UTC 2016 > > > > Modified Files: > >

Re: CVS commit: src/sys/arch/i386/i386

2016-05-31 Thread Joerg Sonnenberger
On Mon, May 30, 2016 at 06:58:52PM -0400, Christos Zoulas wrote: > Module Name: src > Committed By: christos > Date: Mon May 30 22:58:52 UTC 2016 > > Modified Files: > src/sys/arch/i386/i386: cpu_in_cksum.S > > Log Message: > Handle PIC linking for tests Except this doesn't work

Re: CVS commit: src/sys/arch/i386/i386

2014-03-06 Thread David Laight
On Thu, Mar 06, 2014 at 12:30:25PM +, NONAKA Kimihiro wrote: Module Name: src Committed By: nonaka Date: Thu Mar 6 12:30:25 UTC 2014 Modified Files: src/sys/arch/i386/i386: cpufunc.S Log Message: fix to pass collect memory address to xrstor. Gah ... :-( FWIW I

Re: CVS commit: src/sys/arch/i386/i386

2012-03-05 Thread Manuel Bouyer
On Mon, Mar 05, 2012 at 08:01:09AM +0530, Cherry G. Mathew wrote: On 5 March 2012 02:14, Manuel Bouyer bou...@netbsd.org wrote: Module Name:    src Committed By:   bouyer Date:           Sun Mar  4 20:44:17 UTC 2012 Modified Files:        src/sys/arch/i386/i386: machdep.c Log

Re: CVS commit: src/sys/arch/i386/i386

2012-03-04 Thread Cherry G. Mathew
On 5 March 2012 02:14, Manuel Bouyer bou...@netbsd.org wrote: Module Name:    src Committed By:   bouyer Date:           Sun Mar  4 20:44:17 UTC 2012 Modified Files:        src/sys/arch/i386/i386: machdep.c Log Message: Don't try to uvm_page_physload() the tmpgdt page: this always fails

Re: CVS commit: src/sys/arch/i386/i386

2012-01-21 Thread David Laight
On Fri, Jan 20, 2012 at 12:39:44PM +0100, Matthias Drochner wrote: m...@eterna.com.au said: alloc/free here for whatever is using a lot of memory would be much better than increasing the minimum each LWP requires. Agreed. In the ppbattach case, it should be sufficient to put the devinfo

Re: CVS commit: src/sys/arch/i386/i386

2012-01-20 Thread Matthias Drochner
m...@eterna.com.au said: alloc/free here for whatever is using a lot of memory would be much better than increasing the minimum each LWP requires. Agreed. In the ppbattach case, it should be sufficient to put the devinfo printf into a separate function, so that it doesn't stack up when called

Re: CVS commit: src/sys/arch/i386/i386

2012-01-20 Thread Matthias Drochner
chris...@astron.com said: /.*sub.*,%[er]sp/ very nice 18648 80494b55:stbi_gif_load_from_memory+0xd So this can never have worked on x86, with only 12k stack. best regards Matthias

Re: CVS commit: src/sys/arch/i386/i386

2012-01-19 Thread Matthias Drochner
dyo...@pobox.com said: increased stack use lead to stack overflow on amd64 with a deep PCI hierarchy Tell me more about this. It was sys/dev/pci/pci.c rev.1.141 which triggered it. Stack use must already have been tight, and the additional device number array was the last straw. The

re: CVS commit: src/sys/arch/i386/i386

2012-01-19 Thread matthew green
dyo...@pobox.com said: increased stack use lead to stack overflow on amd64 with a deep PCI hierarchy Tell me more about this. It was sys/dev/pci/pci.c rev.1.141 which triggered it. Stack use must already have been tight, and the additional device number array was the last straw.

Re: CVS commit: src/sys/arch/i386/i386

2012-01-18 Thread David Young
On Wed, Jan 18, 2012 at 09:34:39PM +, Matthias Drochner wrote: Module Name: src Committed By: drochner Date: Wed Jan 18 21:34:38 UTC 2012 Modified Files: src/sys/arch/i386/i386: mainbus.c Log Message: revert previous, the assumption all buses 1 and up must be

Re: CVS commit: src/sys/arch/i386/i386

2012-01-18 Thread Matthias Drochner
dyo...@pobox.com said: was setting pba_sub = 255 causing material problems for someone, or are you concerned that lossage will eventually occur on certain server-class machines? No, this wasn't causing damage. I was tracking another problem which was incidentally triggered by another of your

Re: CVS commit: src/sys/arch/i386/i386

2012-01-18 Thread David Young
On Wed, Jan 18, 2012 at 11:38:39PM +0100, Matthias Drochner wrote: dyo...@pobox.com said: was setting pba_sub = 255 causing material problems for someone, or are you concerned that lossage will eventually occur on certain server-class machines? No, this wasn't causing damage. I was

Re: CVS commit: src/sys/arch/i386/i386

2011-11-20 Thread YAMAMOTO Takashi
hi, On Oct 31, 2011, at 1:42 PM, YAMAMOTO Takashi wrote: Module Name: src Committed By:yamt Date:Mon Oct 31 12:42:53 UTC 2011 Modified Files: src/sys/arch/i386/i386: dumpsys.c Log Message: dumpsys_seg: don't overwrite the previous mapping With this

Re: CVS commit: src/sys/arch/i386/i386

2011-11-20 Thread Mindaugas Rasiukevicius
J. Hannken-Illjes hann...@eis.cs.tu-bs.de wrote: Module Name:src Committed By: yamt Date: Mon Oct 31 12:42:53 UTC 2011 Modified Files: src/sys/arch/i386/i386: dumpsys.c Log Message: dumpsys_seg: don't overwrite the previous mapping With this

Re: CVS commit: src/sys/arch/i386/i386

2011-11-19 Thread J. Hannken-Illjes
On Oct 31, 2011, at 1:42 PM, YAMAMOTO Takashi wrote: Module Name: src Committed By: yamt Date: Mon Oct 31 12:42:53 UTC 2011 Modified Files: src/sys/arch/i386/i386: dumpsys.c Log Message: dumpsys_seg: don't overwrite the previous mapping With this change in place core

Re: CVS commit: src/sys/arch/i386/i386

2011-01-12 Thread Grégoire Sutre
On 01/12/2011 05:09 AM, enami tsugutomo wrote: =?UTF-8?B?R3LDqWdvaXJlIFN1dHJl?=gsu...@netbsd.org writes: Assume for instance that the boot-loader left us with: +--+ ++ +--+ | string table | | kernel | | symbol table | +--+

Re: CVS commit: src/sys/arch/i386/i386

2011-01-11 Thread enami tsugutomo
=?UTF-8?B?R3LDqWdvaXJlIFN1dHJl?= gsu...@netbsd.org writes: Assume for instance that the boot-loader left us with: +--+ ++ +--+ | string table | | kernel | | symbol table | +--+ ++ +--+ The new

Re: CVS commit: src/sys/arch/i386/i386

2010-10-31 Thread David Young
On Sun, Oct 31, 2010 at 04:51:19AM +, YAMAMOTO Takashi wrote: Module Name: src Committed By: yamt Date: Sun Oct 31 04:51:19 UTC 2010 Modified Files: src/sys/arch/i386/i386: vector.S Log Message: keep interrupts disabled in NMI handler. the patch provided by IRINO

CVS commit: src/sys/arch/i386/i386

2010-02-22 Thread Jean-Yves Migeon
Module Name:src Committed By: jym Date: Mon Feb 22 23:52:17 UTC 2010 Modified Files: src/sys/arch/i386/i386: genassym.cf Log Message: Remove a duplicate entry for PTE_BASE. While here, introduce PDP_SIZE and PDE_SIZE. They will be used by asm code to make it more generic

CVS commit: src/sys/arch/i386/i386

2010-02-22 Thread Jean-Yves Migeon
Module Name:src Committed By: jym Date: Mon Feb 22 23:52:17 UTC 2010 Modified Files: src/sys/arch/i386/i386: genassym.cf Log Message: Remove a duplicate entry for PTE_BASE. While here, introduce PDP_SIZE and PDE_SIZE. They will be used by asm code to make it more generic

CVS commit: src/sys/arch/i386/i386

2010-02-21 Thread Darran Hunt
Module Name:src Committed By: darran Date: Mon Feb 22 06:42:15 UTC 2010 Modified Files: src/sys/arch/i386/i386: trap.c vector.S Log Message: DTrace: missed the opt_dtrace.h include for these. To generate a diff of this commit: cvs rdiff -u -r1.254 -r1.255

Re: CVS commit: src/sys/arch/i386/i386

2010-02-16 Thread Matthias Drochner
da...@l8s.co.uk said: I presume the panic was in the 'return to user' sequence? Yes, in the iret. Does it now SIGSEGV the program? Yes, which is a bit strange because this happened before even the first instruction was fetched, and no user-supplied data are involved (as opposed to

CVS commit: src/sys/arch/i386/i386

2010-02-14 Thread Matthias Drochner
Module Name:src Committed By: drochner Date: Sun Feb 14 11:09:54 UTC 2010 Modified Files: src/sys/arch/i386/i386: ibcs2_machdep.c svr4_machdep.c Log Message: fix confused CS selector, fixes the panic reported by Mark Davis per PR port-i386/42787 (the panic happens due to

CVS commit: src/sys/arch/i386/i386

2010-02-09 Thread Jean-Yves Migeon
Module Name:src Committed By: jym Date: Tue Feb 9 23:09:47 UTC 2010 Modified Files: src/sys/arch/i386/i386: mptramp.S Log Message: Use CR0_PE (enable protected mode) instead of hardcoding constant. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20

CVS commit: src/sys/arch/i386/i386

2010-01-17 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Jan 17 22:21:18 UTC 2010 Modified Files: src/sys/arch/i386/i386: trap.c vector.S Log Message: Fix 'fault on load of %gs during retirn to userspace' to look for the correct instruction bytes. Take the 'fault on load segment

CVS commit: src/sys/arch/i386/i386

2010-01-10 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Jan 10 15:21:36 UTC 2010 Modified Files: src/sys/arch/i386/i386: trap.c vector.S Log Message: If we fault on the 'iret' during return to userpace (eg if %eip is outside the bounds of %cs) then hack the stack to contain a normal

CVS commit: src/sys/arch/i386/i386

2010-01-10 Thread David Laight
Module Name:src Committed By: dsl Date: Sun Jan 10 15:37:36 UTC 2010 Modified Files: src/sys/arch/i386/i386: trap.c Log Message: If we fault on the iret during return to userspace, see if we need to do a lazy update of %cs to make the stack executable. If a change is

CVS commit: src/sys/arch/i386/i386

2009-12-31 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Dec 31 16:04:32 UTC 2009 Modified Files: src/sys/arch/i386/i386: apmbios.c Log Message: Fix compilation issue with time_t To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/arch/i386/i386/apmbios.c

Re: CVS commit: src/sys/arch/i386/i386

2009-11-26 Thread YAMAMOTO Takashi
hi, Hello, David Laight wrote: Module Name: src Committed By:dsl Date:Sat Nov 21 19:59:51 UTC 2009 Modified Files: src/sys/arch/i386/i386: db_trace.c Log Message: Don't call lwp_getpcb() when not KERNEL. Thanks for working this around, however it is

Re: CVS commit: src/sys/arch/i386/i386

2009-11-22 Thread Mindaugas Rasiukevicius
David Laight da...@l8s.co.uk wrote: Thanks for working this around, however it is not a right fix. With this patch, build.sh release passes: http://www.netbsd.org/~rmind/crash_pcb.diff It should have been enough to amend the argument of routine exported to userland. Do not you

Re: CVS commit: src/sys/arch/i386/i386

2009-11-21 Thread Mindaugas Rasiukevicius
Hello, David Laight wrote: Module Name: src Committed By: dsl Date: Sat Nov 21 19:59:51 UTC 2009 Modified Files: src/sys/arch/i386/i386: db_trace.c Log Message: Don't call lwp_getpcb() when not KERNEL. Thanks for working this around, however it is not a right fix. With

Re: CVS commit: src/sys/arch/i386/i386

2009-11-21 Thread Christos Zoulas
In article 20091121223029.1e0d263b...@mail.netbsd.org, Mindaugas Rasiukevicius rm...@netbsd.org wrote: Hello, David Laight wrote: Module Name: src Committed By:dsl Date:Sat Nov 21 19:59:51 UTC 2009 Modified Files: src/sys/arch/i386/i386: db_trace.c Log

Re: CVS commit: src/sys/arch/i386/i386

2009-05-11 Thread Manuel Bouyer
On Sat, May 09, 2009 at 06:58:46AM +, Andrew Doran wrote: xen isn't as vulnerable to the LDT/segreg problem as native x86 because it's not MP and doesn't do kernel preemption. For the time being I guess it would suffice to #ifdef the 'cli'. That's not enough to make the binary

Re: CVS commit: src/sys/arch/i386/i386

2009-05-05 Thread Manuel Bouyer
On Tue, May 05, 2009 at 09:20:02PM +, Andrew Doran wrote: but the test binary from the PR segfaults: truc# kdump |less 34 0 ktrace EMUL netbsd 34 0 ktrace RET ktrace 0 34 0 ktrace CALL

Re: CVS commit: src/sys/arch/i386/i386

2009-05-04 Thread Manuel Bouyer
On Mon, May 04, 2009 at 11:47:29AM +, Andrew Doran wrote: Module Name: src Committed By: ad Date: Mon May 4 11:47:29 UTC 2009 Modified Files: src/sys/arch/i386/i386: locore.S Log Message: PR kern/41342: BSDi binaries cause panic XXX Manuel, please have a look as I

Re: CVS commit: src/sys/arch/i386/i386

2009-03-30 Thread Izumi Tsutsui
dyo...@netbsd.org wrote: Module Name: src Committed By: dyoung Date: Mon Mar 30 17:48:22 UTC 2009 Modified Files: src/sys/arch/i386/i386: vm_machdep.c Log Message: Cosmetic: reduce differences from amd64/amd64/vm_machdep.c by deleting an empty line.