Commit Graph

185682 Commits

Author SHA1 Message Date
pooka
043ef3bc71 Use strong alias within the kernel namespace regardless of if we're
dealing with a hard or soft kernel (kernel linker doesn't support
weak symbols).
2009-11-26 07:40:34 +00:00
pooka
3c809c1925 include sys/param.h first, as is the convention 2009-11-26 07:35:39 +00:00
pooka
282ff84bcb Include kern_module_vfs and the modctl() syscall. The modctl()
syscall is here because module loading is a vfs operation.
Theoretically you shouldn't be able to have modules without vfs
support.
2009-11-26 07:30:24 +00:00
uebayasi
a8e69e8330 Don't build sh64 code even if BFD64 as suggested by uwe@ (privately). We
don't need sh64 at all.  This fixes sh3 MKCROSSGDB=yes build.
2009-11-26 06:34:22 +00:00
macallan
4016912128 cgthree works on sparc64 so let's enable it for those poor souls who can't
find at least a CG6
2009-11-26 02:03:42 +00:00
kenh
b4bb3813ef On the ARM platform, sys/param.h needs to be before sys/mutex.h, otherwise
sys/device.h will fail compilation (struct kmutex will not be defined
completely).
2009-11-26 01:23:56 +00:00
matt
c37283eb1d Back out unintended commit. 2009-11-26 01:21:50 +00:00
matt
11af2f9cfa Kill proc0paddr. Use lwp0.l_addr instead. 2009-11-26 00:19:11 +00:00
macallan
f3d037fec4 make this compile on sparc64 2009-11-25 21:10:56 +00:00
abs
2e92448c47 Fix a missed proc -> lwp change, only compiled if NWSKBD 2009-11-25 20:40:41 +00:00
tron
8fe9393167 Fix build of kernels without PCI support like "GENERIC_TINY". 2009-11-25 19:46:19 +00:00
tron
7395068839 Enable SSP (Stack Smash Protection) in x86 kernels by default (except
in i386 *TINY kernels). The NetBSD/i386 "ALL" kernel is unconditionally
compiled with SSP enabled.

Change approved by the core team.
2009-11-25 17:08:08 +00:00
pooka
9311e97e8c Don't use LDADD.progname because it duplicates all the libs. 2009-11-25 16:17:11 +00:00
njoly
a323bb797a aprintify. 2009-11-25 15:06:26 +00:00
pooka
4686e2c38a * report partition size in blocks instead of bytes
* "support" DIOCCACHESYNC.
2009-11-25 15:01:28 +00:00
pooka
64ab232858 make WAPBL_DEBUG_PRINT compile 2009-11-25 14:43:31 +00:00
rmind
9303fb5a00 Remove IPL_LPT and IPL_IPI aliases, use the actual IPLs.
Fix some broken comments.
2009-11-25 14:28:49 +00:00
cegger
6f85be6a06 By reading the ACPI dump I figured out that my
HP Pavillion dv9700 laptop features a fan sensor
in the ACPI Thermal Zone which is beyond of the ACPI
Spec.

envstat shows
[acpitz0]
  Processor Thermal Zone:     56.000   95.000                       degC
                     FAN:       2840                                 RPM

envstat -W shows the limits
[acpitz0]
  Processor Thermal Zone:     55.000                                degC
                     FAN:       2570     4500     2000               RPM

Patch presented on tech-kern@.

No comments.
2009-11-25 13:54:23 +00:00
rmind
a78f91e802 Restore exporting of lwp_getpcb() to userland and fix DDB properly.
While the header might be abstracted better, it is a separate issue.
2009-11-25 13:53:19 +00:00
rmind
fc756ae2f7 Disable kstack red-zone for now, while we decide on a nice way to fix it. 2009-11-25 13:38:38 +00:00
cegger
8ced747602 Add ACPI SLIT parser. This is part of NUMA support.
Tested on a 8-node machine.

Patch presented on tech-kern@, port-i386@ and port-amd64@.

No comments.
2009-11-25 13:21:49 +00:00
cegger
688b7ce5ae Add ACPI SRAT parser. This is a part of NUMA support.
Tested on 1-node, 2-node and 8-node machines.
Patch presented on tech-kern@, port-i386@ and port-amd64@.

No comments.
2009-11-25 13:17:06 +00:00
pooka
5fc3d70195 Remove highly questionable assert which demans that the kernel symbol
table is in memory at a lower address than the string table.
2009-11-25 13:16:55 +00:00
cube
c356562c10 Properly fix fdc@pnpbios as shown by Brian Buhrow in PR#42374.
I think it tells a lot about the relevancy of that attachment when it took
20 months for someone to experience the issue and even then, acpi had to be
disabled.
2009-11-25 13:15:17 +00:00
uebayasi
d219709b67 Actually use timestamp file's timestamps so that things rebuild correctly. 2009-11-25 11:49:36 +00:00
uebayasi
fac33cd8a3 Handle undefined USE_SSP. XXX *_SSP variables needs clean-up. 2009-11-25 09:30:04 +00:00
uebayasi
82bc011c43 Descend into ssp/ only if ${USE_SSP} is yes. 2009-11-25 09:22:36 +00:00
kiyohara
6e701b77b2 Add attribute mii to smsh(4). 2009-11-25 08:52:38 +00:00
martin
361db6b221 Remove double include that prevented the right machdep LDBL_* constants
to be used.

Noticed by Masao Uebayashi.
2009-11-25 08:43:15 +00:00
mrg
e01c3917cb s/L_ADDR/L_PCB/, requested by rmind. 2009-11-25 02:34:34 +00:00
rmind
606b1d9782 Add assert that ce->ce_func is not NULL. 2009-11-24 20:11:50 +00:00
mhitch
128c6b4d5f Remove old legacy IPL_* settings in ipl2spl_table - they are redundant
and in the case of IPL_AUDIO, results in IPL_VM blocking all interrupts.
[IPL_AUDIO is now the same as IPL_VM, and was setting the IPL_VM entry
to PSL_IPL6.  IPL_SERIAL had a duplicate entry for some reason, and
serial drivers that check and modify IPL_SERIAL now shouldn't be affected
since IPL_SERIAL is now the same as IPL_HIGH.  I'm hoping this will fix
or at least help the problem of serial interrupts being blocked too long.
2009-11-24 18:19:52 +00:00
dyoung
c8fed843e1 Address some of the concerns that SPLDEBUG is not machine-independent,
Part 1 of N:

        There is not an MI ordering of interrupt priority levels,
        so use == IPL_HIGH and != IPL_HIGH instead of >= IPL_HIGH
        and < IPL_HIGH.  Ignore 'cold' and always use curcpu(),
        since cpu_info_primary is MD.

Other changes:

        There is no need to create symbols named _spldebug_* and
        strong aliases to them.  Just use symbols spldebug_*,
        instead.  Use a temporary variable instead of repeat
        cpu_index(9) calls.  KASSERT() that cpu_index(9) is <
        MAXCPUS.
2009-11-24 17:28:32 +00:00
pooka
a16b81e8bd fix comments: st_name is index in .strtab 2009-11-24 16:55:11 +00:00
seanb
b0a8c7deed Back out fix for PR 22846 as it has issues. See PR 22846 for details. 2009-11-24 16:00:42 +00:00
njoly
b046beb10c Do not use aprint_normal for error messages. 2009-11-24 15:51:39 +00:00
uebayasi
912aaddf6c Adjust #line directive paths so that make depend works correctly. 2009-11-24 15:09:10 +00:00
wiz
bd3e59b94f Make Dt match installed file name.
Addresses that part of misc/42349 that applies on -current.
2009-11-24 14:07:30 +00:00
pooka
3fb11d6b4c For rumptest, ignore unresolved symbols which are in the
toolchain namespace:
  1) anything starting with __
  2) MD quirks as defined by sys/rump/Makefile.rump
2009-11-24 13:39:07 +00:00
tnozaki
3f8ca7c44a guard single-dot from modification by the application
(SUSv3 spec don't forbid this brutal operation).
this idea taken from OpenBSD's version of basename(3) and dirname(3).
2009-11-24 13:34:20 +00:00
tnozaki
b95326704e don't use pathname directly as msgq()'s first argument of format string. 2009-11-24 13:12:01 +00:00
cegger
1b91587f84 Remove X86_MAXPROCS. This fixes PR port-xen/41755.
This also reduces diff to x86/x86/cpu.c as a nice side effect.
'looks good' bouyer@
2009-11-24 13:04:04 +00:00
njoly
4898628cc1 Regen for personality(2) update. 2009-11-24 10:44:41 +00:00
njoly
675b20da1b Update personality(2) to match Linux definition where the argument is an
unsigned long.
2009-11-24 10:42:43 +00:00
rmind
04fb2d7bab Amend #ifdef with DIAGNOSTIC case, avoids gcc warning about unused var. 2009-11-23 18:20:46 +00:00
cegger
370d100bc1 make iasl build again.
patch from tnn@
2009-11-23 17:16:50 +00:00
pooka
1b8aa8bae0 Fix rev 1.10 a bit: currently raw devices are correct for newfs/tunefs,
and the cooked one should be used for mount.
2009-11-23 16:41:26 +00:00
cegger
29e2a7eb92 evaluate _RTV as preparation for passive cooling. 2009-11-23 14:42:39 +00:00
pooka
3d17105af3 Include link.h instead of the NetBSD-specific link_elf.h. Use
dlinfo() only if __ELF__ is defined.
2009-11-23 14:39:35 +00:00
pooka
a874bbf6dc Add more rumpdev configurations to rumptest. 2009-11-23 14:07:45 +00:00