Re: serial console "detection" during boot

2012-09-22 Thread Olivier Cochard-Labbé
On Mon, Sep 17, 2012 at 10:23 PM, Andriy Gapon wrote: > > Guys, > > With this patch I am able to boot with > boot_multicons="YES" > console="vidconsole,comconsole" > in loader.conf on hardware where serial ports are disabled in BIOS. > Previously loader would just hang trying to apply the console

Re: serial console "detection" during boot

2012-09-22 Thread Andriy Gapon
on 22/09/2012 11:40 Olivier Cochard-Labbé said the following: > On Mon, Sep 17, 2012 at 10:23 PM, Andriy Gapon wrote: >> >> Guys, >> >> With this patch I am able to boot with >> boot_multicons="YES" >> console="vidconsole,comconsole" >> in loader.conf on hardware where serial ports are disabled in

Re: serial console "detection" during boot

2012-09-22 Thread Andriy Gapon
Here is an update on the changes: http://people.freebsd.org/~avg/boot-comconsole.diff Please note that the file is actually a patchset that consists of three individual changes: - a generic change in common boot code - libi386 comconsole change - BTX and boot2-ish comconsole change All the code

kern_exec: check p_tracecred instead of p_cred

2012-09-22 Thread Andriy Gapon
Currently even if root ktraces an unprivileged process that execs a sguid executable, then tracing aborted at that point. I think that that happens because wrong credentials are checked at that point. What do you think about the following patch? commit 956a80783bc39162b1d64383188c5037f9767413 A

Re: cpu_spinwait in cngetc

2012-09-22 Thread Andriy Gapon
on 18/09/2012 16:25 Andriy Gapon said the following: > > (Why[*]) Would anyone object to a change like this? > > diff --git a/sys/kern/kern_cons.c b/sys/kern/kern_cons.c > index 5346bc3..d17846a 100644 > --- a/sys/kern/kern_cons.c > +++ b/sys/kern/kern_cons.c > @@ -384,7 +384,7 @@ cngetc(void) >

Re: serial console "detection" during boot

2012-09-22 Thread Olivier Cochard-Labbé
On Sat, Sep 22, 2012 at 5:35 PM, Andriy Gapon wrote: > > Here is an update on the changes: > http://people.freebsd.org/~avg/boot-comconsole.diff > Patch applied on 9.1-RC1 with success. Tested under virtualbox with /boot.config that include "-D" and multi-console in /boot/loader.conf with these V

Re: [CFT/RFC]: refactor bsd.prog.mk to understand multiple programs instead of a singular program

2012-09-22 Thread Garrett Cooper
On Sun, Sep 2, 2012 at 11:01 PM, Garrett Cooper wrote: > Hello, > I've been a bit busy working on porting over ATF from NetBSD, and > one of the pieces that's currently not available in FreeBSD that's > available in NetBSD is the ability to understand and compile multiple > programs. In order

Re: cpu_spinwait in cngetc

2012-09-22 Thread Julian Elischer
On 9/22/12 10:46 AM, Andriy Gapon wrote: on 18/09/2012 16:25 Andriy Gapon said the following: (Why[*]) Would anyone object to a change like this? diff --git a/sys/kern/kern_cons.c b/sys/kern/kern_cons.c index 5346bc3..d17846a 100644 --- a/sys/kern/kern_cons.c +++ b/sys/kern/kern_cons.c @@ -384,

Re: [CFT/RFC]: refactor bsd.prog.mk to understand multiple programs instead of a singular program

2012-09-22 Thread Garrett Cooper
On Sat, Sep 22, 2012 at 11:30 PM, Poul-Henning Kamp wrote: > In message > > , Garrett Cooper writes: > >>Without the change: >> >>$ python calc_runtime.py bw.*_without.log | ministat -w 72 >>[...] >>$ python calc_runtime.py bw.*.log | ministat -w 72 > > Try: >python calc_runtime.py bw.*_with