Commit Graph

7566 Commits

Author SHA1 Message Date
xtraeme
4ba09b41c3 Remove System V semaphores and share memory options to set the limits:
SEMMNI, SEMMNS, SEMUME and SHMMAXPGS.

They can be tweaked via sysctl now. Ports that were setting values on
them weren't touched, I only removed the ones that were commented out.
2007-11-04 14:34:19 +00:00
xtraeme
ad0f60a40b Check ci_cpuid_level before calling coretemp_register().
Fixes a panic reported (and tested) by hankenn@.
2007-11-03 21:55:23 +00:00
xtraeme
7fbec51a9c Revert previous, thanks wikipedia :-) 2007-11-01 13:54:28 +00:00
xtraeme
42e2977633 Fix typo "iff" -> "if" reported by leot via freenode@irc. 2007-11-01 13:48:52 +00:00
joerg
9a8b72309e The only alternative to the GENERIC kernel with ACPI is current
GENERIC_LAPTOP, which is not derived from that and misses a lot of
drivers and options. The NOACPI kernel doesn't have this issue, so make
it more useful by including apm and also the PCIBIOS fixup options
needed on many non-ACPI system. Tested by freza@ on an older system
where APM and ne@PCMCIA had issues in the past and which works fine with
-current.
2007-10-31 21:18:46 +00:00
xtraeme
c9ebd528c1 options<space><tab>FOO 2007-10-30 00:03:50 +00:00
ad
e7976c8a86 Mark cpu_info::ci_tlbstate volatile to ensure that the compiler doesn't
reorder accesses to it. It's updated from the TLB IPI handlers and we don't
block those, so the order in which things are read/updated is important.
2007-10-29 01:35:36 +00:00
xtraeme
1d390936f8 Enable "options INTEL_CORETEMP". 2007-10-29 00:47:16 +00:00
xtraeme
e3b08fdabe Add coretemp(4). A new driver for Intel Core's on-die thermal sensor,
available on Intel Core or newer CPUs.

Ported from FreeBSD. Tested by rmind on i386 and joerg on amd64.

Enabled with "options INTEL_CORETEMP".
2007-10-29 00:42:28 +00:00
xtraeme
358f1bd73f Comment out piixpcib(4) until the multiple PRs are fixed. 2007-10-26 22:42:43 +00:00
xtraeme
72b98e9287 Add amdpcib(4). 2007-10-26 22:21:20 +00:00
xtraeme
19affc8a1a - Add amdpcib(4) commented out.
- Comment out piixpcib(4) until the multiple PRs are fixed, this driver
  has been broken for long time in some machines.
2007-10-26 22:20:43 +00:00
xtraeme
7e8be191f1 Share pcib(4) and amdpcib(4) between i386 and amd64; one copy is enough. 2007-10-26 22:17:13 +00:00
xtraeme
3338a139da - Share pchb(4) between i386 and amd64; one copy is enough for both.
- Move some of the x86 PCI devices into x86/pci/files.pci.
- Add more x86 stuff into x86/conf/files.x86.

ok joerg.
2007-10-26 21:49:50 +00:00
joerg
930e1f6e1d Match delay/DELAY on x86 with delay(9). It takes an unsigned int as
argument. Use this and replace the inline assembly (mul + div using the
64bit intermediate result) with normal 32bit multiplication and
division. The compiler can turn the division into a multiplication and
shift, making it even cheaper then the original assembly. For extreme
long delays, just use 64bit arithmetic.
2007-10-26 13:24:39 +00:00
dogcow
91db0cdea5 oh, for lack of a query... 2007-10-25 08:15:32 +00:00
xtraeme
f444ee7a2f Add jmide(4). 2007-10-24 23:20:06 +00:00
ad
bccf777b72 Make ras_lookup() lockless. 2007-10-24 14:50:38 +00:00
joerg
05911100fa cpufunc.S depends on assym.h. 2007-10-24 06:26:56 +00:00
joerg
d238692c3e Initialise the callbacks for tty.t_rstrt_ch in ttymalloc
as all drivers but Sun/SPARC's kd.c use the same arguments.
Separate callout_reset into callout_schedule and the initial
callout_setfunc using that.
2007-10-18 18:54:56 +00:00
yamt
24a1632cb3 merge yamt-x86pmap branch.
- reduce differences between amd64 and i386.  notably, share pmap.c
  between them.  it makes several i386 pmap improvements available to
  amd64, including tlb shootdown reduction and bug fixes from Stephan Uphoff.
- implement deferred pmap switching for amd64.
- remove LARGEPAGES option.  always use large pages if available.
  also, make it work on amd64.
2007-10-18 15:28:31 +00:00
garbled
d974db0ada Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
2007-10-17 19:52:51 +00:00
ad
c90404d176 Match amd64:
-#if defined(_KERNEL) || defined(_LKM)
+#if defined(_KERNEL)
2007-10-17 17:33:22 +00:00
joerg
19459bd736 Bump default size of the message buffer from 16 KB to 32 KB.
This is large enough that boot -v on most systems fits into the
message buffer, which makes it easier for debugging.
2007-10-13 14:46:54 +00:00
ad
972c6ae552 crit_enter/crit_exit are now available. 2007-10-12 13:38:08 +00:00
ad
1666230f45 +DEBUG, +VNODE_LOCKDEBUG 2007-10-10 22:41:15 +00:00
ad
36a1712707 Merge run time accounting changes from the vmlocking branch. These make
the LWP "start time" per-thread instead of per-CPU.
2007-10-08 20:06:17 +00:00
xtraeme
8b2678bd7e Use a two clause license for all the code I contributed.
The envsys code will be changed later.
2007-10-06 07:21:02 +00:00
joerg
04512a3ea9 Add re* at cardbus. 2007-10-05 17:58:38 +00:00
ad
5939a3f4b8 Make the atomics inline unless !__GNUC__. 2007-10-03 12:24:48 +00:00
ad
14b1d38f4d Back out the ALIGNBYTES change. There are structures used in userspace
that depend on the constant.
2007-10-03 12:23:44 +00:00
ad
a06455d0e5 Now that the bootblocks are the same, share loadfile_machdep.h between
amd64 and i386.
2007-10-01 20:31:41 +00:00
xtraeme
d6f5cb72fc Fix DEBUG builds and use %lx to print vaddr_t. 2007-09-27 22:43:15 +00:00
ad
04e7f7c43b Remove -DBOOT_ELF64 to make build on amd64. 2007-09-27 01:57:23 +00:00
ad
e82393efae - Make i386 bootblocks boot amd64 kernels, and change to say "NetBSD/x86..."
- Don't bother booting a.out kernels any more.
2007-09-27 00:13:16 +00:00
ad
b43233552c - Make it compile again.
- Don't use (very dodgy) inline assembly.
2007-09-26 23:47:43 +00:00
ad
df53c71d4f Enable mcount for more of the assembly stubs. 2007-09-26 22:05:23 +00:00
ad
54b8a96958 Inline interrupt disable for _mcount, so the real function calls don't
screw with profiling.
2007-09-26 22:04:33 +00:00
ad
22eb464a6d Only include machine/cpufunc.h if _KERNEL. 2007-09-26 21:27:48 +00:00
ad
b9b18708f9 Make build in userspace again. 2007-09-26 21:05:21 +00:00
xtraeme
66ed18bcf1 Fix profiling kernels:
read_psl -> x86_read_psl
write_psl -> x86_write_psl
disable_intr -> x86_disable_intr
2007-09-26 20:27:26 +00:00
ad
9c412e0cbf x86 changes for pcc and LKMs.
- Replace most inline assembly with proper functions. As a side effect
  this reduces the size of amd64 GENERIC by about 120kB, and i386 by a
  smaller amount. Nearly all of the inlines did something slow, or something
  that does not need to be fast.
- Make curcpu() and curlwp functions proper, unless __GNUC__ && _KERNEL.
  In that case make them inlines. Makes curlwp LKM and preemption safe.
- Make bus_space and bus_dma more LKM friendly.
- Share a few more files between the ports.
- Other minor changes.
2007-09-26 19:48:34 +00:00
xtraeme
051ba08b8f Remove two \t at the end of DDB_VERBOSE_HELP, caught by Patrick Welche. 2007-09-25 17:14:11 +00:00
ad
b684adf6ed ci_astpending is no more. 2007-09-25 17:08:08 +00:00
xtraeme
b6d883518d Add DDB_VERBOSE_HELP. 2007-09-22 21:44:38 +00:00
xtraeme
4b775b6037 options<tab><space>OPTION for previous. 2007-09-22 18:51:13 +00:00
martin
d9a407bba2 Add a new option DDB_VERBOSE_HELP that adds online help to ddb.
From Adam Hamsik.
Minor modifications by me, all bugs are probably mine.
2007-09-22 18:40:20 +00:00
ad
97af1559fd Don't subtract CR4_PGE from %cr4, just clear it. Otherwise bad things could
happen if we are unlucky and interrupt tlbflushg().
2007-09-17 21:41:53 +00:00
xtraeme
6da6e7a3b7 GENERIC_LAPTOP -> add aps(4) commented out
ALL -> add aps(4)
2007-09-11 21:59:10 +00:00
xtraeme
1dac9ede4d New aps(4) driver for IBM Thinkpad Active Protection System.
Exports some sensors through the envsys(4) framework available
in some Thinkpad laptops.

Ported by Pierre Pronchery from OpenBSD, via PR port-i386/36852.

Tweaks, LKM and misc improvements by me. Added into i386/GENERIC
commented out.
2007-09-11 21:46:52 +00:00