Commit Graph

185892 Commits

Author SHA1 Message Date
pooka 9fd1bf7eef call cache_cpu_init() for all cpus 2009-12-01 09:56:59 +00:00
pooka 612479bd5e Include cpu crosscall support (instead of stubbing it out). 2009-12-01 09:52:29 +00:00
pooka 62e84772b7 Almost there for virtual CPU MP support:
* support bound kernel threads
* bind softint threads to specific virtual cpus
  + remove now-unnecessary locks from softint code

Now, if we only had MI CPU_INFO_FOREACH() .... (hi rmind ;)
2009-12-01 09:50:51 +00:00
pooka 3f331fa147 Call VOP_CLOSE() in mount error branch with the device locked to
prevent crash when specfs attempts to unlock the vnode.
2009-12-01 09:28:02 +00:00
martin a789139b96 Revert part of previous - the removal of the "first cpu to attach is
bootstrap cpu" requirement already fixed everything - no need to use
cf_unit for a bogus test here.
2009-12-01 09:26:36 +00:00
uebayasi 6519114ccc Pass ${TOOL_PKG_CREATE} to scripts for syspkg creation. 2009-12-01 09:11:45 +00:00
uebayasi f7393e813f Add ${TOOL_PKG_CREATE}. 2009-12-01 09:09:40 +00:00
uebayasi ab788f10b4 Use ${NETBSDSRCDIR} for deep tools/* directories. 2009-12-01 09:08:25 +00:00
skrll b7b0345e3d Remove U_PCB as requested by rmind.
Same code before and after.
2009-12-01 09:06:16 +00:00
pooka 03735afa20 whitespace 2009-12-01 09:04:21 +00:00
uebayasi ba9e6e8ae6 Add pkg_install as a tool. 2009-12-01 09:01:45 +00:00
pooka 3cf07ff872 Remove vinum-removal sentence fragment, similarly to newfs(8). 2009-12-01 08:47:25 +00:00
wiz 9e3ffe49a3 Make HTML-ready, use standard section headers, fix Xr. 2009-12-01 08:15:50 +00:00
agc f17a59eb6a Turns out that swig and tainted don't play well together - perl has no way
of knowing whether the memory will be modified. For now, the gross hack is
to switch off tainting
2009-12-01 08:02:50 +00:00
agc e1d61885e2 Add language bindings for tcl and perl 2009-12-01 06:43:57 +00:00
agc 6b13238156 Use the right field for the prefix 2009-12-01 06:33:31 +00:00
martti 77ad51d8d2 Initial version. 2009-12-01 06:27:57 +00:00
agc e502623fdd Add a swig interface file, and a wrapper script, for calling swig for
various language bindings for netpgp.
2009-12-01 05:19:51 +00:00
uebayasi 3cb0739866 Skip parameters for multilib build for now. 2009-12-01 04:59:24 +00:00
uebayasi 87bb55865b Handle cases where *.asm is listed in LIB2FUNCS_EXTRA (gcc/config/rs6000). 2009-12-01 03:13:26 +00:00
snj b8cfd4e74c Remove two different explorer@ acknowledgements. 2009-12-01 02:37:07 +00:00
agc b4d6642e10 Recognise the hash algorithm in a case-insensitive manner. 2009-12-01 02:36:32 +00:00
uebayasi 45cbcdc3c9 Top level reach-over directory for extsrc. 2009-12-01 01:53:46 +00:00
explorer 7ba2798f6e Assign copyright to TNF 2009-12-01 01:33:25 +00:00
dyoung 066dc95eb2 KNF: define struct pareg near the top of the file. 2009-12-01 01:08:45 +00:00
dyoung 8a18e16048 Delete wdcactivate() prototype, it's gone away for good. 2009-12-01 01:06:31 +00:00
dyoung 85acc87516 Simplify the device activation routine. 2009-12-01 01:05:23 +00:00
dyoung e3f50d6767 KNF: whitespace. 2009-12-01 01:03:54 +00:00
dyoung 7e597f6140 Cosmetic: fix indentation, change some spaces to tabs. 2009-12-01 01:01:34 +00:00
roy 3490b83a1f Protect getdelim when used internally. 2009-12-01 00:52:13 +00:00
martin 4bcbcf2131 Remove restriction that cpu0 has to attach first.
Make sure cpu0 attaches to the bootstrap cpu only (equivalent of previous
change but not restricted to UP kernels).
2009-12-01 00:06:31 +00:00
roy 755657be4b Remove __getdelim and just use getdelim.
fgetstr now works with strings up to SSIZE_MAX as a result, but may
reallocate buffers needlessly just like it used to when the buffer size
exceeds INT_MAX.
fgetstr converts errno EOVERFLOW to EINVAL on getdelim error.
2009-12-01 00:03:53 +00:00
roy ec4d484515 Note that callers should use feof(3) or ferror(3) to distinguish between
EOF or an error.
2009-11-30 23:23:29 +00:00
roy 4cf0472d7d Note that EOF returns -1 when no characters are read.
Add code example.
2009-11-30 22:51:46 +00:00
dsl 1555a88fff Move relocation address to lower memory (0x1000) further away from the
BIOS 40:0 segment than previously but giving more room for heap that 0x8800.
2009-11-30 21:40:35 +00:00
dsl e7bcc5c7fd Update 'oemname' to NetBSD60. 2009-11-30 21:37:16 +00:00
pooka 56a6edc13a Use getprogname() instead of hardcoding "mount_nfs" to get the
right info in rump_nfs.
2009-11-30 17:17:55 +00:00
skrll 7e531c1c6e KNF 2009-11-30 16:58:40 +00:00
tsutsui 5c63a432af Mention udl(4) USB display device support. 2009-11-30 16:22:33 +00:00
tsutsui bd2a7b1b60 Add udl(4) and wsdisplay(4) as its child. 2009-11-30 16:19:55 +00:00
tsutsui 47f87355eb Add a driver for DisplayLink DL-1x0/1x5 based USB LCDs and USB-VGA adaptors.
Ported by FUKAUMI Naoki from OpenBSD with many modification.
No particular comments (except from me) on tech-kern@.

There are still many TODO even in MI wscons(4) API to handle this device:

 * No detach function for wsdisplay(9).
   Unpluging a device causes a panic. (should be trivial?)

 * ioctl() for X server support is currently commented out. ("notyet")
   OpenBSD allows device depedent ioctl()s and they introduced
   UDLIO_DAMAGE ioctl for the damage extension ops of X servers for udl(4).
   Before blindly pulling such ioctl(), probably we should discuss
   how such specific operations should be handled in MI wscons(4) API.

 * Screen text of wsemul tty could be mangled during large scroll ops.
   All tty output operations are invoked via ttstart() with the giant
   tty_lock mutex held, so we can't call cv_wait(9) to wait resources
   for data xfers via usbdi(9).h, then text output is silently discarded
   on resource shortage. To handle this without tty_lock reorganization,
   we have to change wsdisplay(9) APIs (especially wsdisplaystart()) to
   return a number of actually handled characters as OpenBSD does, but
   it may require whole API changes around child rasops(9) etc.

 * No MI API definition to convert mmap(9) cookie to physical address.
   The conversion is required to create a cookie which will be passed to
   pmap_phys_address(9) in uvm/uvm_device.c:udv_fault(). Most other
   drivers use bus_dmamem_mmap(9) or bus_space_mmap(9), but udl(4) uses
   kmem_alloc(9)'ed memory for bitmap data.
   Furthermore, pmap(9) man page says about pmap_phys_address(9):

     "This function is provided to accommodate systems which have
      physical address spaces larger than can be directly addressed
      by the platform's paddr_t type. The existence of this function is
      highly dubious, and it is expected that this function will be
      removed from the pmap API in a future release of NetBSD."

   As the man page says we have already had split paddr_t and vaddr_t,
   so it's time to remove such old ugly cookie and change all mmap(4)
   functions (mostly in MD bus_dma(9) and bus_space(9) APIs) to return
   simple physical address in paddr_t?

 * We need proper device names for wsdisplay1 (and more devices).
   Currently wsdisplay0 uses ttyE0 through ttyE253 (minor 0 to 253)
   for screens, ttyEstat (254) for status, and ttyEcfg (255) for config.
   The next wsdisplay1 will use 256 through 509 for screens, 510 for stat,
   and 511 for config but what names should we use for them? ttyFxxx?

 * How to handle multiple sets of wskbd/wsdisplay on a single machine.
   rc.d/wscons doesn't provide method to specify wscons control devices.
   There is no proper interface to specify which keyboard should be connected
   to which wsdisplay, etc.

 * And maybe more...
2009-11-30 16:18:34 +00:00
uebayasi ce65c065ae Note "extsrc" support. 2009-11-30 16:16:53 +00:00
uebayasi d166c4bf28 Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org.  (These sets are not included as TNF releases.)
2009-11-30 16:13:22 +00:00
he 4e1270dfab Cast a vaddr_t to void* before passing to memset, so that this builds again. 2009-11-30 16:09:14 +00:00
pooka debaf78619 explicitly initialize static boolean 2009-11-30 15:37:56 +00:00
uebayasi 3a3e699038 Handle cases where database text files don't exist. 2009-11-30 14:34:17 +00:00
uebayasi 3650871eaa Correct CLEANFILES in the new style case. 2009-11-30 13:24:32 +00:00
uebayasi ceb0a5e740 Enable the new style build if the new style generated makefiles exist. 2009-11-30 13:07:38 +00:00
pooka d772942437 test for error in creating root vnode before using it 2009-11-30 12:32:13 +00:00
uebayasi 0f821b2360 Minor clean up. No functional changes. 2009-11-30 12:07:28 +00:00