Commit Graph

1357 Commits

Author SHA1 Message Date
jym 25f08e65cb Import rdmsr_safe(msr, *value) for x86 world. It allows reading MSRs
in a safe way by handling the fault that might trigger for certain
register <> CPU/arch combos.

Requested by Jukka. Patch adapted from one found in DragonflyBSD.
2011-09-24 10:32:52 +00:00
christos 508745a56a include wakecode after kernel rules so that the .depend rules are defined 2011-09-14 14:59:29 +00:00
christos 01dc55f76f fix reversed test. 2011-08-31 18:52:37 +00:00
christos 99970cedda on xen we don't initialize memory segment maps, so no sparse dumps for now. 2011-08-31 17:03:17 +00:00
mbalmer 2afb25b13d Add gpio entries, commented out, since I am working with them as modules atm. 2011-08-30 13:07:30 +00:00
bouyer a47e2eb758 Add getlabelusesmbr(), as proposed in
http://mail-index.netbsd.org/tech-userlevel/2011/08/25/msg005404.html
This is used by disk tools such as disklabel(8) to dynamically decide is
the undelyling platform uses a disklabel-in-mbr-partition or not
(instead of using a compile-time list of ports).
getlabelusesmbr() reads the sysctl kern.labelusesmbr, takes its value from the
machdep #define LABELUSESMBR.
For evbmips, make LABELUSESMBR 1 if the platform uses pmon
as bootloader, and 0 (the previous value) otherwise.
2011-08-30 12:39:49 +00:00
jmcneill 76898e7685 revert previous 2011-08-30 12:13:25 +00:00
jruoho bf4d7cb301 Comment out the legacy bktr(4) from the GENERICs. 2011-08-30 08:01:13 +00:00
christos 506a776d6f Implement sparse dumps for amd64 (copied from i386). Disabled for now via
sysctl.
XXX: most of the code can be merged.
2011-08-27 16:23:44 +00:00
jakllsch 844442797e Attach amdtemp(4) at pchb(4) instead of in place of pchb(4).
Should fix PR#45268.
2011-08-18 20:55:20 +00:00
cherry 92ccc4ea78 Add locking around ops to the hypervisor MMU "queue". 2011-08-13 12:09:38 +00:00
cherry 5e67834ba7 make ddb minimally MP aware 2011-08-11 19:52:52 +00:00
cherry bc1cccc8d3 unbreak the build. #include <sys/cpu.h> 2011-08-11 18:36:13 +00:00
cherry 3c3a6a3a8e Hide the MD details of specific IPIs behind semantically pleasing functions. This cleans up a couple of #ifdef XEN/#endif pairs 2011-08-11 18:11:17 +00:00
cherry fce2071912 More appropriate use of xen_send_ipi(). 2011-08-11 18:05:11 +00:00
mbalmer 6b0f67776f Add commented out sample entry for pwdog(4). 2011-08-11 07:36:17 +00:00
cherry d7b11fa417 xen ipi infrastructure 2011-08-10 11:39:44 +00:00
cherry 7e545f9bbf Correct offset calculation for ci 2011-08-10 06:33:13 +00:00
cherry 12a2f892ca Include Xen specific definitions. 2011-08-10 06:30:59 +00:00
jmcneill 952250ca3e remove commented out entries for emdtv, auvitek, and dtv 2011-08-09 02:52:29 +00:00
jmcneill 1f2ef40a47 remove dtv (available as a module) 2011-08-08 18:57:58 +00:00
jakllsch 217a815cc9 Add P1003_1B_SEMAPHORE to match i386. 2011-08-08 16:27:46 +00:00
jakllsch 0fb9ea60f8 Finish reverting premature modularization of amd64 kernels. 2011-08-08 16:13:42 +00:00
joerg 9a72c11fab Remove a number of now unnecessary -no-integrated-as cases. 2011-08-02 17:22:51 +00:00
joerg 4c8e861cc5 Remove redundant , after .balign. 2011-08-01 22:21:01 +00:00
jmcneill 4bc685899c add PCKBD_CNATTACH_MAY_FAIL to be consistent with i386 2011-07-30 18:41:34 +00:00
yamt 914d59e3d1 g/c round_pdr 2011-07-26 12:55:35 +00:00
jakllsch 4ada5b7e5e Enable or note aubtfwl(4) wherever ubt(4) is enabled or noted. 2011-07-23 21:12:57 +00:00
jakllsch 48eee3bc59 Add wmieeepc(4) to amd64 GENERIC. 2011-07-21 04:05:14 +00:00
jakllsch dd87e5f4cb Add dtv* at dtvbus? because I'll get weird looks if I introduce a #if NDTV > 0,
and also if I don't un-Break the build.
2011-07-21 04:00:25 +00:00
jakllsch f59ca6245d Add cxdtv(4) and urndis(4). Also, two slight cosmetic changes. 2011-07-20 20:29:54 +00:00
jakllsch 643db323cb Add urndis(4). 2011-07-20 20:27:41 +00:00
joerg 3eb244d801 Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
jym 4b70f9c001 CR4_PAE is always set to 1 under amd64, so indicate that PAE mode is
enabled. Can be useful for 32-bits test runs on amd64 hosts.
2011-07-17 15:16:58 +00:00
dyoung 47f9429e80 On amd64, good-bye <machine/bus.h>.
Up next: update set lists.
2011-07-17 01:17:27 +00:00
jruoho b5dc3d4af2 A driver for HP 3D DriverGuard; a LIS3LV02DL-based accelerometer. Tested on
HP NC4400. Like aps(4), this is commented out in the GENERIC kernels.
2011-07-13 07:52:48 +00:00
dyoung 24e681f5cd Implement bus_space_tag_create() and _destroy().
Factor bus_space_reserve(), bus_space_release(), et cetera out of
bus_space_alloc(), bus_space_map(), bus_space_free(), bus_space_unmap(),
et cetera.

For i386 and amd64, activate the use of <machine/bus_defs.h> and
<machine/bus_funcs.h> by #defining __HAVE_NEW_STYLE_BUS_H in
their respective types.h.  While I'm here, remove unnecessary
__HAVE_DEVICE_REGISTER #defines.
2011-07-06 18:46:04 +00:00
bouyer fd33bd72b3 Add back DIAGNOSTIC option to x86 GENERIC kernels, as discussed on tech-kern.
This will have to be commented out on release branches.
2011-07-03 10:40:16 +00:00
dyoung cf10107d5d #include <sys/bus.h> instead of <machine/bus.h>. 2011-07-01 18:51:52 +00:00
dyoung 59adf08e17 Per discussion at
<http://mail-index.netbsd.org/tech-kern/2010/04/02/msg007941.html>,
divide each machine's bus.h into bus_defs.h (constants & data types)
and bus_funcs.h (macro implementations of bus_space(9) routines and MD
prototypes).

Note that some bus_space(9) routines' implementation will move to .c
files from inline subroutines or macros in .h files.

I've only made the split for machine architectures where there is PCI.
All of the non-PCI-having architectures will require a similar split.

These #include files are not referenced by any (committed) Makefiles or
header files, yet.  Changes to Makefiles, to <sys/bus.h>, and to some
more machine-dependent files will dribble in before I throw the switch.
2011-07-01 17:09:58 +00:00
wiz 4cbd24b23f dependant -> dependent 2011-06-30 20:09:15 +00:00
jruoho 653bf25132 By default, enable wmihp(4) instead of hpqlb(4), as it has a better chance
of working with a greater number of HP laptops. Ok cegger@.
2011-06-21 05:01:17 +00:00
mrg 493d341048 various build fixes for gcc 4.5. from chuq. XXX i'm not sure all of
these work properly wtf pointer aliasing, but there are no casts at
least...

the lib/libpuffs/puffs_priv.h is definately a real bug fix.

from chuq.
2011-06-20 09:11:16 +00:00
jruoho 6e72689aa7 Try to attach hpet(4) also via a specific HPET table. Fixes PR kern/43702. 2011-06-14 13:59:23 +00:00
rmind e225b7bd09 Welcome to 5.99.53! Merge rmind-uvmplock branch:
- Reorganize locking in UVM and provide extra serialisation for pmap(9).
  New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
  the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
  Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
  kernel-lock on some ports).  Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.
2011-06-12 03:35:36 +00:00
joerg ed3851a47f Disable LLVM MC for spl.S for now. The different spllower sizes break
patchfunc.
2011-06-10 03:18:27 +00:00
joerg 59a7130266 Explicitly disable use of SSE. LLVM generates SSE by default on AMD64
and we certainly don't want that in the kernel.
2011-06-10 03:17:35 +00:00
joerg f6ced94e3b Disable -Werror for ah_regdomain.c if building with clang as workaround
for http://llvm.org/bugs/show_bug.cgi?id=10030.
2011-05-30 15:06:32 +00:00
ryo 4ae977866e many whitespace cleanup. 2011-05-28 16:58:51 +00:00
joerg a2bf8e5d19 Introduce DDB_EXPR_FMT and replace the logic around DB_EXPR_T_IS_QUAD. 2011-05-26 15:34:12 +00:00