Re: Building my own release ISOs

2010-11-22 Thread Andriy Gapon
on 22/11/2010 03:31 Sean Bruno said the following: Does this look about right to build from a test branch? sudo make release SVNROOT=ssh+svn://svn.freebsd.org/base SVNBRANCH=projects/sbruno_64cpus MAKE_ISOS=y MAKE_DVD=y NO_FLOPPIES=y NODOC=y NOPORTSATALL=y WORLD_FLAGS=-j32 KERNEL_FLAGS=-j32

Re: Remove printf in acpi_tz_sanity()

2010-11-22 Thread Andriy Gapon
on 22/11/2010 01:18 Paul B Mahol said the following: On Sun, Nov 21, 2010 at 9:17 PM, Andriy Gapon a...@freebsd.org wrote: As is - this is a perfect candidate for a local only patch. To be included into the tree - this, most probably, has to be controlled by a tunable/sysctl. So solution

Can I execute a C/C++ program from HTML?

2010-11-22 Thread the newbie
Hi, I know that this is not necessarily a FreeBSD related question, but it is definitely programming related and this forum seems to me to be the best to ask... As indicated in the subject line, is it possible to call a C or C++ program from HTML or any of the related internet languages? I got

Re: Can I execute a C/C++ program from HTML?

2010-11-22 Thread Harald Servat
2010/11/22 the newbie thefreebsdnew...@gmail.com Hi, I know that this is not necessarily a FreeBSD related question, but it is definitely programming related and this forum seems to me to be the best to ask... As indicated in the subject line, is it possible to call a C or C++ program

Re: FreeBSD development on Mac OS

2010-11-22 Thread Achim Patzner
Am 22.11.2010 um 05:44 schrieb m...@freebsd.org: There is no /var/log/messages on the mac, or at least not on mine. You could take a look at /var log/system or read syslog(1). On a decently recent Mac OS syslog has been replaced by something more advanced called ASL. /var/log/*.log !.

Re: Remove printf in acpi_tz_sanity()

2010-11-22 Thread Lars Engels
On Sun, Nov 21, 2010 at 10:18:13PM -0200, Carlos A. M. dos Santos wrote: On Sun, Nov 21, 2010 at 9:18 PM, Paul B Mahol one...@gmail.com wrote: On Sun, Nov 21, 2010 at 9:17 PM, Andriy Gapon a...@freebsd.org wrote: on 21/11/2010 13:07 Paul B Mahol said the following: This patch removes printf

Re: Remove printf in acpi_tz_sanity()

2010-11-22 Thread Paul B Mahol
On 11/22/10, Andriy Gapon a...@freebsd.org wrote: on 22/11/2010 01:18 Paul B Mahol said the following: On Sun, Nov 21, 2010 at 9:17 PM, Andriy Gapon a...@freebsd.org wrote: As is - this is a perfect candidate for a local only patch. To be included into the tree - this, most probably, has to be

Re: [patch] reminding developers to check for duplicates in ObsoleteFiles.inc and tools/build/mk/OptionalObsoleteFiles.inc

2010-11-22 Thread Alexander Leidinger
Quoting Alexander Best arun...@freebsd.org (from Thu, 18 Nov 2010 18:58:37 +): this change has been discussed on develop...@. Committed (r215669) with a little modification to the description. Bye, Alexander. -- Nature is a mother. http://www.Leidinger.netAlexander @

Re: new cpuid bits

2010-11-22 Thread John Baldwin
On Friday, November 19, 2010 10:39:53 am Andriy Gapon wrote: Guys, I would like to add definitions for couple more useful CPUID bits, but I am greatly confused about how to name them. I failed to deduce the naming convention from the existing definitions and I am not sure how to make

printf doesn't work from kernel modules

2010-11-22 Thread Dmitry Krivenok
Hello Hackers, Recently I installed 8.1 on my laptop and recompiled the kernel. The system works fine, but I have a strange problem with my own trivial kernel module. I noticed that printf function doesn't produce any output (according to dmesg) if I call it from a module. Note, that the same

Unhappy with loader and ZFS's obeyence of zpool.cache's path

2010-11-22 Thread rank1seeker
As I decided to use GELI, I've split / into 2 UFS partitions /boot is an empty dir (mount point), at encrypted root partition(ada0s3d) The only unencrypted partition is ada0s3a, which contains CONTEST of /boot and is mounted under /boot So, once everything is mounted at boot, FreeBSD's layout is

Re: Quick i386 question...

2010-11-22 Thread John Baldwin
On Saturday, November 20, 2010 3:38:58 pm Sergio Andrés Gómez del Real wrote: If received an interrupt while in protected-mode and paging enabled, is linear address from IDT stored at the idtr translated using the paging-hierarchy structures? I have looked at the interrupt/exception chapter in

Re: Best way to determine if an IRQ is present

2010-11-22 Thread John Baldwin
On Saturday, November 20, 2010 4:58:02 pm Garrett Cooper wrote: Trying to do a complete solution for kern/145385, Andriy has raised concerns about IRQ mapping to CPUs; while I've have put together more pieces of the puzzle, I'm a bit confused how I determine whether or not an IRQ is

Re: Building my own release ISOs

2010-11-22 Thread John Baldwin
On Sunday, November 21, 2010 8:31:22 pm Sean Bruno wrote: Does this look about right to build from a test branch? sudo make release SVNROOT=ssh+svn://svn.freebsd.org/base SVNBRANCH=projects/sbruno_64cpus MAKE_ISOS=y MAKE_DVD=y NO_FLOPPIES=y NODOC=y NOPORTSATALL=y WORLD_FLAGS=-j32

Logical vs. bitwise AND in sbin/routed/parms.c

2010-11-22 Thread Bruce Cran
I've been going through src/bin and src/sbin seeing how easy it would be to remove warnings clang generates. During the work I came across routed/parms.c which appears to be doing a logical instead of bitwise AND. Would the following change be correct? Index: /usr/src/head/sbin/routed/parms.c

Re: printf doesn't work from kernel modules

2010-11-22 Thread Garrett Cooper
On Mon, Nov 22, 2010 at 5:38 AM, Dmitry Krivenok krivenok.dmi...@gmail.com wrote: Hello Hackers, Recently I installed 8.1 on my laptop and recompiled the kernel. The system works fine, but I have a strange problem with my own trivial kernel module. I noticed that printf function doesn't

Re: Logical vs. bitwise AND in sbin/routed/parms.c

2010-11-22 Thread Alexander Best
On Mon Nov 22 10, Bruce Cran wrote: I've been going through src/bin and src/sbin seeing how easy it would be to remove warnings clang generates. During the work I came across routed/parms.c which appears to be doing a logical instead of bitwise AND. Would the following change be correct?

Re: printf doesn't work from kernel modules

2010-11-22 Thread Dmitry Krivenok
Just tried dys_sysctl. It doesn't work as well. Below are the results I got: r...@olimpico-freebsd 22:04:17 /usr/share/examples/kld/dyn_sysctl # [0] uname -a FreeBSD olimpico-freebsd 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Nov 22 21:35:15 MSK 2010

Re: Logical vs. bitwise AND in sbin/routed/parms.c

2010-11-22 Thread Artem Belevich
There's another case of '' used improperly. http://svn.freebsd.org/viewvc/base?view=revisionrevision=90385 if (hdr.elf.e_ident[EI_OSABI] ELFOSABI_FREEBSD) { is_shlib = 1; } else { hdr.elf.e_ident[EI_OSABI] is not a bitmask and '==' should've been used instead. Now ldd.c has

Re: Quick i386 question...

2010-11-22 Thread Sergio Andrés Gómez del Real
Maybe my issue does not belong here, because it is not FreeBSD-related, but I can't find any other source for this kind of technical issue. My problem is that I am trying to design and now implement a small and simple operating system. I know that it is very difficult to follow for someone not

Re: Logical vs. bitwise AND in sbin/routed/parms.c

2010-11-22 Thread Bruce Cran
On Mon, 22 Nov 2010 10:48:09 -0800 Artem Belevich fbsdl...@src.cx wrote: hdr.elf.e_ident[EI_OSABI] is not a bitmask and '==' should've been used instead. Now ldd.c has two instances of this bug due to copy/pasting of orignal code. Fixed in r215705. Thanks! -- Bruce Cran

Another small error. Re: Logical vs. bitwise AND in sbin/routed/parms.c

2010-11-22 Thread Artem Belevich
While it's not directly related to hunting for ''/'' typos, here's another seemingly wrong place in the code: --- a/sys/dev/ahci/ahci.c +++ b/sys/dev/ahci/ahci.c @@ -852,7 +852,7 @@ ahci_ch_attach(device_t dev) ch-caps = ctlr-caps; ch-caps2 = ctlr-caps2; ch-quirks =

Re: anyone got advice on sendmail and TLS on 8.1?

2010-11-22 Thread Nick Hibma
Don't forget to add the following to /etc/make.conf SENDMAIL_CFLAGS+= -I/usr/local/include -DSASL=2 SENDMAIL_LDFLAGS+= -L/usr/local/lib SENDMAIL_LDADD+=-lsasl2 so it will be compiled correctly on the next buildworld. Nick On 11 Oct 2010, at 18:14, John Baldwin

CFLAGS and kernel builds

2010-11-22 Thread Alexander Best
share/examples/etc/make.conf states that: # To compile just the kernel with special optimizations, you should use # this instead of CFLAGS (which is not applicable to kernel builds anyway). # There is very little to gain by using higher optimization levels, and doing # so can cause problems. #

Re: Another small error. Re: Logical vs. bitwise AND in sbin/routed/parms.c

2010-11-22 Thread Alexander Motin
On 23.11.2010 00:07, Artem Belevich wrote: While it's not directly related to hunting for ''/'' typos, here's another seemingly wrong place in the code: --- a/sys/dev/ahci/ahci.c +++ b/sys/dev/ahci/ahci.c @@ -852,7 +852,7 @@ ahci_ch_attach(device_t dev) ch-caps = ctlr-caps;

Re: Quick i386 question...

2010-11-22 Thread Sergio Andrés Gómez del Real
Never mind... I already got some help. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org

smp_rendezvous_cpus() vs sched_bind()

2010-11-22 Thread Andriy Gapon
If I need to call a function func on a specific CPU which one of the following I should use? 1. smp_rendezvous_cpus(1 cpuid, ..., func, ...); 2. sched_bind(cpuid); func(); sched_unbind(); Or does it depend on some additional factors? What are the main differences here? And also by extension.

dtrace/cyclic deadlock

2010-11-22 Thread Andriy Gapon
I think that I've run into the known issue of dtrace/cyclic deadlock. Just would like to run my understanding and ideas by you. The problem is that the cyclic_fire() callback is executed in the interrupt filter context (and thus with interrupts disabled) and it tries to obtain a spin mutex lock