Commit Graph

185625 Commits

Author SHA1 Message Date
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
pooka
09dbb89b44 If cpu_disklabel includes struct dkbad, define __HAVE_DISKLABEL_DKBAD.
This allows use of subr_disk_mbr on all archs.  Default to it for
the rump disk component.  No functional change for regular kernels.
(The other option would've been to include dkbad in disklabels
everywhere, but arguably this approach has less possible side-effects,
especially given that wedges and related magic will take over the
world any second now).
2009-11-23 13:40:08 +00:00
tsutsui
64dbdb6579 Don't try installboot(8) if offset of PART_A is not zero.
As man page says, installboot(8) is required only OpenFirmware 1 and 2
machines and even on such machines the root partition has to be at the
beginning of the disk to make installboot(8) work.

On OpenFirmware version 3 machines, the strategy provided by
installboot(8) doesn't work, and they need to have an extra
native partition (HFS or FAT16) which can be recognized by
the newer firmware to put a loadable bootloader.
If PART_A has some offset, we can assume the disk is partitioned
for a machine with OF3, which does't require installboot(8).

Eventually, we should provide an independent partitioning method
for OpenFirmware 3 machines (fdisk MBR partition + FAT16 partition
for ofwboot.xcf as OpenBSD does), but it may require some new API
to get OF version in sysinst.
2009-11-23 13:25:02 +00:00
pooka
f8d9830a1a Add rf_paritymap.c, which is now required for raidframe. 2009-11-23 12:23:20 +00:00
pooka
bb7f50bcca kern_physio is already provided by rumpvfs 2009-11-23 11:20:25 +00:00
cegger
9d14eb5043 Update ACPI_SRAT_CPU_AFFINITY to match ACPI specification 4.0.
XXX I don't know if this already happened upstream but it will sooner or later
if not.
2009-11-23 10:50:38 +00:00
plunky
369de522d5 fix VIS_HTTPSTYLE to not convert "safe" ($-_.+) and "extra" (!*'(),)
characters as mentioned in rfc1738 and rfc1808 and, I think intended
all along in this code but the logic was inverted.

Don't use strchr as it also matches the NUL character which we want
to escape, just compare against the chars directly as done in the
FreeBSD code.
2009-11-23 10:08:47 +00:00
kiyohara
d3d39bd6e8 - Wait the ready 5sec, not 5msec.
- Set IFM_ACTIVE to ifm_status instead of ifm_active.  ifconfig(8) always said
  'no carrier'...
2009-11-23 09:41:53 +00:00