Re: CVS commit: [matt-nb5-mips64] src/sys/conf

2009-09-09 Thread Jason Thorpe


On Sep 4, 2009, at 9:19 PM, Matt Thomas wrote:



On Sep 4, 2009, at 8:59 PM, Izumi Tsutsui wrote:


Modified Files:
src/sys/conf [matt-nb5-mips64]: Makefile.kern.inc

Log Message:
Don't abort if DBSYM fails.


It was intentionally changed to fatal:
http://cvsweb.NetBSD.org/bsdweb.cgi/src/sys/conf/Makefile.kern.inc#rev1.70

. Make this error a fatal build time error

---
Izumi Tsutsui


I see no reason to make it fatal.  It means that when I build a  
kernel with

DEBUG, my kernel build will fail.  That's stupid.

/u1/netbsd-nb5-mips64/tools/bin/mips64el--netbsd-strip -g -X -o  
netbsd netbsd.gdb

/u1/netbsd-nb5-mips64/tools/bin/mips64el--netbsd-dbsym netbsd
mips64el--netbsd-dbsym: symbol table (6124416 bytes) too big for  
buffer (175000 bytes)

Increase options SYMTAB_SPACE in your kernel config

-rwxr-xr-x  1 matt  staff   9262360 Sep  4 20:28 MALTA64/netbsd
-rwxr-xr-x  1 matt  staff  29851080 Sep  4 20:28 MALTA64/netbsd.gdb


We should figure out a way to make symbols appendable as an ELF  
section.




  textdata bss dec hex filename
2609483  223104  267656 3100243  2f4e53 MALTA64/netbsd
2609483  223104  267656 3100243  2f4e53 MALTA64/netbsd.gdb


-- thorpej



Re: CVS commit: src/sys/dev/pci

2009-09-09 Thread Izumi Tsutsui
  Let the programmer of drivers add a bus-dependent PMF hook in the bus
  attachment routine, and a bus-independent PMF hook in the generic attach
  routine.  Something like this, for example,
 
 How much duplication between the bus-dependent frontend really exists?
 Other than PCI/Cardbus which are essentially the same...

Most shutdown hooks and pmf_class_foo_register()?
---
Izumi Tsutsui