Commit Graph

55842 Commits

Author SHA1 Message Date
kiyohara 9aa0a3c613 Fix build failed. s/consinit()/consinit(void)/. 2012-06-18 01:40:55 +00:00
dsl c72955ee27 memseg_baseaddr() is only called from valid_user_selector() and
both only locally.
Make static, remove one of the functions, and remove the never-set args.
Code is still very dubious.
2012-06-16 20:47:04 +00:00
chs 4eb0eda427 rename the global variable "cpu" to "cputype" to avoid conflicting with
dtrace, which wants to use "cpu" as a local variable.
2012-06-16 17:30:18 +00:00
joerg 80d74bd7f8 Annotate tautological if, so that clang doesn't warn about the dt usage
later on.
2012-06-16 16:42:26 +00:00
kiyohara fbd7a1ab43 Add '\n' to revision string. 2012-06-16 05:58:03 +00:00
joerg 56f9c3c6bd Don't use an empty body on the same line for the for loop. 2012-06-15 23:01:16 +00:00
yamt 9700738834 whitespace 2012-06-15 14:23:46 +00:00
yamt 42b4b1a980 update a comment 2012-06-15 14:09:26 +00:00
yamt f120cbc6a9 comment 2012-06-15 14:07:44 +00:00
yamt c6f15cd7fe assertions. use a macro. no functional changes. 2012-06-15 14:02:41 +00:00
yamt ea49698def comment 2012-06-15 13:58:34 +00:00
yamt 09d05f28e5 comments 2012-06-15 13:57:59 +00:00
yamt e5b5bd7898 comment 2012-06-15 13:55:22 +00:00
yamt c7b1cf3811 emap: reduce the number of atomic ops. 2012-06-15 13:53:40 +00:00
riz 94f4463123 Add urtw(4) to i386/amd64 GENERIC. 2012-06-14 04:23:48 +00:00
mlelstv 6e129cea4e Make detection of root on wedges (dk(4)) machine independent. Remove
MD code for zaurus.
2012-06-13 20:04:30 +00:00
perseant 35e5ee1088 Sanity check the values coming back from the int13 extensions of the bios,
so we can catch impossible return values.  Allows the bootloader to work
again on the Soekris net4501.

Fixes PR kern/46027.
2012-06-13 18:34:20 +00:00
njoly 69cf62c5e6 Add some descriptions to machdep.unaligned_* sysctls. 2012-06-13 17:13:41 +00:00
bouyer 22cc6b2833 If the user process provided a bogus signal handler address, kill it
now instead of trying to jump to the bogus address.
2012-06-12 22:16:05 +00:00
yamt 98c82cc1ae intr_find_mpmapping: comments and cosmetic. no functional changes. 2012-06-12 17:26:29 +00:00
yamt 721722497b cpu_load_pmap: disable interrupts. add a comment to explain why. PR/44995 2012-06-12 17:14:19 +00:00
tsutsui f6b04c4370 - explicitly include <machine/pcb.h> for struct pcb
- consistently use
   #if NKSYMS || defined(MODULAR) || defined(DDB) || defined(KGDB)
  to check kernel symbols otherwise build fails if none of them are defined
Reported by Yasushi Oshima.
2012-06-11 16:41:26 +00:00
tsutsui 4f16d5a2d9 Explicitly include <machine/pcb.h> for struct pcb. 2012-06-11 16:27:58 +00:00
tsutsui d64da08176 Explicitly include <machine/pcb.h> for struct pcb.
Fixes build error on GENERIC + no options DDB, reported by Yasushi Oshima.

Should be pulled up to netbsd-6.
2012-06-11 16:27:08 +00:00
chs cc6452ecfb allow more space for modules. 2012-06-11 15:18:26 +00:00
chs 6e9ead4606 make dtrace work on amd64. 2012-06-11 15:18:05 +00:00
mlelstv 5741661f64 Make detection of root on wedges (dk(4)) machine independent. Remove
MD code for x86, xen, sparc64.
2012-06-10 17:05:18 +00:00
skrll 6062ea05a5 Remove unused __NEWINTR defines 2012-06-10 13:15:24 +00:00
matt e7841c4a22 Compute softintr mask correctly. 2012-06-08 23:35:23 +00:00
dsl 8ec6b592a7 Fix type of variable passed to sysctl (int -> bool). 2012-06-08 07:53:41 +00:00
rkujawa c0da2f8bbc Regen configs. 2012-06-07 23:32:47 +00:00
rkujawa 661b5de9c5 Enable empb in GENERIC, fix build, rearrange files.amiga. 2012-06-07 23:30:52 +00:00
sborrill 469cc9aebf Fix problem where devices with ID 0 were skipped as invalid as it didn't
distinguish between numerical zero and invalid numeric string.
2012-06-07 14:05:13 +00:00
macallan aec4f24986 fix same thinko as in previous commit, in have_pending_intr_p() 2012-06-07 04:37:09 +00:00
macallan 3add50773b look at the right cpu_softints bits in pic_do_pending_int()
so we call the right softint handlers
2012-06-07 02:39:22 +00:00
kiyohara 51eeb5bd58 Fix can't assign IPv6 address. Valiable error resets to 0, if error == ENETRESET in aumac_ioctl(). 2012-06-07 00:19:29 +00:00
rmind e75fa0930a Few fixes for Xen:
- cpu_load_pmap: use atomic kcpuset(9) operations; fixes rare crashes.
- Add kcpuset_copybits(9) and replace xen_kcpuset2bits().  Avoids incorrect
  ncpu problem in early boot.  Also, micro-optimises xen_mcast_invlpg() and
  xen_mcast_tlbflush() routines.

Tested by chs@.
2012-06-06 22:22:41 +00:00
skrll 3d01a076bd Provide generic a[24]x bus_space methods (aNx is normal access, offset
multipled by N).

Use the generic method and delete the other versions.

Discussed with matt@
2012-06-06 20:21:43 +00:00
sborrill 100e1d86bf Sort vif and vbd device IDs numerically so that attach order does not depend
on the order they are passed in through xenstore. While this works for
hand-crafted Xen configuration files, it does not work for XenServer, XCP or
EC2 instances. This means that adding an extra virtual disk can make the
domU unbootable.

ID is actually based on the Linux device major/minor so this approach isn't
entirely correct (for instance, you can specify devices to be non-contiguous
which doesn't fit too well with our autoconf approach), but it works as a
first approximation.

Tested by me on XenServer and riz@ on EC2. OK bouyer@
2012-06-05 10:58:56 +00:00
abs 8f45a59205 Adjust the WSDISPLAY_COMPAT_USL comment to mention wsconscfg, to at least
give a hint that its not just for third party compat. No functional change.
2012-06-05 08:44:07 +00:00
abs 37d94841fa If a port is going to have wscons for virtual terminals then it really makes
sense to enable WSDISPLAY_COMPAT_USL so the system can switch between the
virtual terminals...
2012-06-05 08:41:36 +00:00
rkujawa e38ac060b1 Finally add support for memory space access for empb(4). Buggy but better than nothing. 2012-06-04 19:45:50 +00:00
rkujawa fca4069ffb Fix PCI interrupt handling on empb. Also, continue work on memory accesses. Now empb is good enough to handle satalink! 2012-06-04 12:56:48 +00:00
mrg 62d6a317f7 enable building with ath* at pci?. it worked but my pci atheros card
seems to make netbsd lock up when you try to use it, on at least
ofppc, macppc, amd64 platofrms and last i tried on sparc64, causes
alignment faults.  oh well.
2012-06-02 21:47:46 +00:00
dsl e21a34c25e Add some pre-processor magic to verify that the type of the data item
passed to sysctl_createv() actually matches the declared type for
  the item itself.
In the places where the caller specifies a function and a structure
  address (typically the 'softc') an explicit (void *) cast is now needed.
Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c
  sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting
  AcpiGbl_EnableAmlDebugObject.
(mostly passing the address of a uint64_t when typed as CTLTYPE_INT).
I've test built quite a few kernels, but there may be some unfixed MD
  fallout. Most likely passing &char[] to char *.
Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.
2012-06-02 21:36:41 +00:00
skrll b0ba536ed5 Whitespace. 2012-06-02 20:50:41 +00:00
rkujawa cf943d0f86 Add support for PCI_NETBSD_CONFIGURE in empb(4). Continue work on memory window. 2012-06-01 17:41:16 +00:00
rkujawa 68cabd119e More work on PCI memory accesses on empb(4). 2012-06-01 09:41:35 +00:00
matt 2ff5436688 Really fix polyf/polyd macros. Now returns expected results. 2012-06-01 06:26:38 +00:00
rkujawa 160a9cb006 Add empb(4) functions to switch memory window position. 2012-05-31 21:29:02 +00:00