Commit Graph

102723 Commits

Author SHA1 Message Date
tsutsui d2151f7f4f Use common pmap_bootstrap_finalize() to initialize lwp0 uarea etc.
Tested on HP9000/382.
2009-12-02 15:51:12 +00:00
tsutsui 3c345377fe Add a common pmap_bootstrap_finalize() function which initializes
lwp0 uarea, curlwp, and curpcb after MMU is turned on, using
lwp0uarea variable saved during pmap_bootstrap() (or equivalent functions)
for pmap_motorola based ports.  Discussed with rmind@.
2009-12-02 15:47:45 +00:00
skrll 52d0d7030d Define DPRINTF and use it. 2009-12-02 13:49:32 +00:00
skrll 44ff25d90b Whitespace. 2009-12-02 13:45:13 +00:00
kiyohara daaee09935 Call pxa2x0_clkman_config() instead of ioreg_write(). 2009-12-02 13:10:09 +00:00
kiyohara 21d3db4d12 Enable latest bluetooth module (Infineon PBA31308). 2009-12-02 13:05:09 +00:00
stacktic 21c947db1b KNF 2009-12-02 12:52:28 +00:00
kiyohara 7fe24103db Maybe supported LAN9218 Family. 2009-12-02 12:51:50 +00:00
stacktic 994ec2b614 Added RCS id. 2009-12-02 12:40:12 +00:00
nakayama 64324c2947 In calculating initial tstate, cast to 64-bit first to avoid sign extension. 2009-12-02 10:18:42 +00:00
uebayasi 5eef0d3167 Declare global pointers as extern, otherwise they become common symbols.
Fix mips build in lib/librumpnet.
2009-12-02 08:31:56 +00:00
mrg 8a6ed6746c print the fplwp in "mach cpu" list. 2009-12-02 07:55:53 +00:00
mrg e02bb3d217 count IPI's as interrupts, not misc counters. 2009-12-02 07:55:01 +00:00
mrg d9950bd46e print pid, lid and p_comm in some diag messages that indicate killed processes. 2009-12-02 07:34:57 +00:00
skrll 17b0854823 Spell busy correctly. 2009-12-01 23:16:00 +00:00
skrll 48ec6057bf Fix build. Hi rmind. 2009-12-01 23:14:02 +00:00
haad f26bfe28da Revert my commit which have added knowledge about dm targets to libdevmapper,
this breaks abstraction. Because only lvmtools/lvmlib and device-mapper can
have knowledge about target mapping and libdevmapper only passes requests
from lvmtools to kernel and back. Bump major library and driver version.

Requested by: yamt@
2009-12-01 23:12:09 +00:00
skrll 702079ad35 Typo in comment. 2009-12-01 22:36:31 +00:00
martin 9e0d6893b8 Remove restriction of "mach prom" to cpu0 - it does not make sense now
that cpu0 is not always the bootstrap cpu, and in the majority of cases
the prom abort will just work fine on any cpu.
2009-12-01 18:51:20 +00:00
skrll 16ac0b772d Add a missing '\n' from a printf. 2009-12-01 16:20:52 +00:00
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
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
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
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
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
skrll 7e531c1c6e KNF 2009-11-30 16:58:40 +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
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
pooka d772942437 test for error in creating root vnode before using it 2009-11-30 12:32:13 +00:00
pooka 051b421f3f Create CTL_HW before creating nodes on top of it (sysctl constructors
run in "random" order).
2009-11-30 11:28:35 +00:00
pooka 0c5879110f Use genfs_statvfs() for now. 2009-11-30 11:18:22 +00:00
pooka ea0564ea28 fix comment 2009-11-30 11:14:58 +00:00
pooka 1643f3a7a1 Introduce genfs_statvfs() as pretty much a no-info statvfs and
convert several pseudo file systems to use it.
2009-11-30 10:59:19 +00:00
pooka 307d8134c0 support lookup of pathname component "." 2009-11-30 10:11:09 +00:00
nakayama b0c0987db9 sparc64_ipi_flush_ctx and sparc64_ipi_flush_all have been removed,
so remove its event counters as well.
2009-11-30 09:34:39 +00:00
sborrill 57a76ebb19 Add support for Intel 3400 SATA 2009-11-30 09:33:48 +00:00
sborrill c3a158ad84 Regen 2009-11-30 09:32:11 +00:00
sborrill 599b5d0177 Add Intel 3400 devices 2009-11-30 09:31:11 +00:00