181374 Commits

Author SHA1 Message Date
yamt
cef9767a7a don't describe internal details. 2009-06-01 22:04:54 +00:00
martin
476755a88c Do not use lwp_trampoline for cpu_setfunc, but a simplified setfunc_trampoline
that does not call lwp_startup() instead.
2009-06-01 20:58:16 +00:00
pgoyette
da6eeb0e4d Replace a flag that was accidentally removed. 2009-06-01 20:36:43 +00:00
pgoyette
5a84f3060e Since we no longer have individual events for each sensor value limit,
we don't need individual flag bits.  Clean up extra bit definitions.
Bump kernel version - welcome to 5.99.13
2009-06-01 20:08:44 +00:00
christos
cb3a6fdee7 Delete GPT partitions if we overwrite with MBR to avoid confusion with disks
that have both MBR and a secondary left over GPT partition signature. From
Mike M. Volokhov
2009-06-01 19:57:33 +00:00
christos
477a0ba90e Add an NetBSD id for ease of maintenance. 2009-06-01 19:07:55 +00:00
he
7f447b4ade The sparc miniroot actually doesn't use "file" anymore to distinguish
between a.out and ELF objects, so omit the now no-longer-present "magic"
file (deprecated after latest "file" update).
2009-06-01 13:06:03 +00:00
njoly
7e10d34f2a Note that fcntl(2) returns EINVAL for invalid command. 2009-06-01 09:56:06 +00:00
skrll
f86cbcc8bf Enforce strong ordering (for now) on PA2.0. 2009-06-01 07:10:14 +00:00
yamt
99122f39e6 qsort: remove the "switch to insertion sort" optimization because it
causes catastrophic performance for certain inputs.
2009-06-01 06:37:40 +00:00
yamt
8a29be6be3 fix NULL dereferences in the compat versions of getpwent, getpwnam,
and getpwuid.
2009-06-01 06:04:37 +00:00
dholland
e5909fd6fe Don't use a variable-size array here. There's not really that much point. 2009-06-01 04:03:26 +00:00
macallan
db706a8f23 #define BUS_SPACE_MAP_LARGE 0 so SBus framebuffer drivers compile again 2009-06-01 01:14:06 +00:00
agc
d21b929e26 CHANGES 1.99.7 -> 1.99.8
+ get rid of __ops_malloc_passphrase() - strdup() works just as well
+ generalise __ops_seckey_forget() to become __ops_forget(), give it a size
  parameter, and make it work on things other than secret keys (passphrases
  for instance)
+ minor struct field enum renaming
+ minor function call renaming
+ add ops_io_t struct to hold pointers to IO streams, and pass it down
  where necessary
2009-05-31 23:26:20 +00:00
phx
b1d183bf84 Fixed format string from %x to %llx for dev_t. 2009-05-31 23:07:18 +00:00
yamt
de0c01fd1d do_posix_fadvise: turn some KASSERTs into CTASSERTs. 2009-05-31 22:15:13 +00:00
mrg
54e81f636d make sure to initialise the cpuinfo sz in all cases. noted by martin. 2009-05-31 20:28:51 +00:00
mrg
5dbfb3ccb3 - bump the size of cpus[] by one, so we have a NULL pointer at the end,
from tsutsui
- for MP kernels, copy the loop to find the bootcpu in mainbus_attach()
  into getcacheinfo_obp() so we can get cache properties on the bootcpu
  before calling main()
- in getcpuinfo(), move the call of getmid() before the call to
  getcacheinfo() so that the above change to getcacheinfo_obp() can work
- move the struct cpu_info setup to the end of the initial kernel page
  setup and don't access this space until after we have switched to the
  kernel pagetables
- revive most of the old CPUINFO_VA alignment/congruency code from the
  old alloc_cpuinfo_global_va() function, and ensure that all cpuinfo
  structures are sanely aligned.  this makes hypersparc work again
- introduce a new way to free the wasted pages back to UVM, as we can't
  simply uvm_unmap() them this early in bootstrap


i believe that the first used cpuinfo_data page is still being wasted,
but i haven't checked.
2009-05-31 20:09:44 +00:00
he
5bfe080527 Adapt to changes in sa11x0 code, with struct device * -> device_t changes. 2009-05-31 17:47:26 +00:00
martin
900e24968a Properly initialize child attach args to zero - we could end up with
various devices having different ideas about being console otherwise.
2009-05-31 17:09:03 +00:00
he
6425d6dcfd Don't include <machine/mtpr.h> anymore since it has been removed
(at least from the amiga port) and appears to no longer be required.
2009-05-31 14:11:17 +00:00
martin
f8047b2aa2 Per discussion with <simonb> also block the interrupts from icu 1 for
splvm(), even if we don't currently support any handlers for gpio
interrupts.
2009-05-31 11:34:01 +00:00
martin
114a7832a7 For consistency add COMPAT_50 2009-05-31 11:09:01 +00:00
martin
839da53f59 Block MIPS_INT_MASK_1 for splvm() too - if_aumac.c establishes it's
interrupt handler at icu 0 req 1, which needs to be blocked by splvm().
2009-05-31 09:39:10 +00:00
tsutsui
a6363f7d5a Two fixes for RX hwcsum on DESCV2 chips:
* On checking TCPv4/UDPv4 RX checksum on DESCV2 chips, also check
   RE_RDESC_VLANCTL_IPV4 bit because those DESCV2 chips may also recognize
   IPv6 packets and set RE_PROTOID_TCPIP or RE_PROTOID_UDPIP bits for
   TCPv6/UDPv6 packets.  This may fix PR kern/40605.
 * According to Realtek's Linux driver, DESCV2 chips don't set RE_PROTOID_IP
   for non-TCP/UDP IP packets (set only RE_RDESC_VLANCTL_IPV[46]) so
   remove PROTOID check for IPv4 RX cheksum on DESCV2 chips.
2009-05-31 05:10:47 +00:00
yamt
31a7ec7dc7 sched_pstats_hook: fix estcpu decay.
this makes my desktop usable when running "make -j4".
2009-05-31 04:13:33 +00:00
martin
250d329095 Do not use the same trampoline for cpu_lwp_fork and cpu_setfunc - only
the former needs to call lwp_startup().
2009-05-30 18:26:06 +00:00
martin
18d36d7f38 Do not use lwp_trampoline for cpu_setfunc, we do not want to call
lwp_startup() after a setfunc. Grow a simplified setfunc_trampoline
instead.
2009-05-30 17:52:05 +00:00
skrll
90a08c6ee8 Give pdc_scanbus some help.
Use aprint* while here.
2009-05-30 17:45:59 +00:00
martin
72ad694b88 Remove unused file (merge error?) 2009-05-30 17:20:45 +00:00
martin
7f65d1375e cpu_setfunc() can not use lwp_trampoline, as that has additional lwp startup
semantics. Use a simpler setfunc_trampoline instead.
2009-05-30 16:52:32 +00:00
phx
9bae1e8ed5 No longer used since migrating from sicallback-softints to MI-softints. 2009-05-30 16:42:40 +00:00
hannken
d68670a54c ufsdirhash_lookup(): call ufs_blkatoff() with "modify == false".
This buffer is used read-only here and from caller.
2009-05-30 13:54:36 +00:00
hannken
ae5722dac0 No need to include bsd.subdir.mk as bsd.kinc.mk already includes it. 2009-05-30 09:04:35 +00:00
snj
1992ce74e1 Terminate 3.x. 2009-05-30 06:58:12 +00:00
skrll
e03976623a Add TLS relocation definitions. 2009-05-30 05:56:52 +00:00
yamt
5ebfa691fe wrap long lines. 2009-05-30 04:26:16 +00:00
mrg
2cbddcfe99 print the curpcb in "mach cpu" output as well. 2009-05-30 01:19:29 +00:00
dyoung
2bc3b9efe1 In config_detach(9), if device deactivation fails with EOPNOTSUPP,
don't treat it as an error.  This should stop the kernel from
panicking in config_detach(9) when sd(4)/wd(4) detach.
2009-05-29 23:27:08 +00:00
nonaka
84b5216c59 It is avoided that the error occurs when the card attaches it,
when wedge is supported.
2009-05-29 22:27:40 +00:00
mrg
05c64062d1 fix up cpu_setfunc() as noted by uwe:
- don't call lwp_startup for cpu_setfunc() users
- introduce lwp_setfunc_trampoline instead
- no need to set the "new" lwp for setfunc
2009-05-29 22:06:55 +00:00
rjs
850a493aca Pass correct argument to q_to_b(). 2009-05-29 20:10:39 +00:00
plunky
78fb2cc482 add missing NetBSD RCS ID tags 2009-05-29 18:49:21 +00:00
njoly
d22e6f64ab Add native to linux siginfo si_status translation, used on i386 and
amd64.
2009-05-29 14:19:12 +00:00
rjs
4c494f7678 Make the following changes:
struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
2009-05-29 14:15:44 +00:00
rjs
01ff2d54d9 Add some definitions for alternative GPIO assignments. 2009-05-29 14:06:53 +00:00
skrll
1ab05af11c Missed in previous WIP commit. 2009-05-29 12:33:34 +00:00
njoly
05d61dcbbd Make getdirentries set a correct block read position for basep
argument.
2009-05-29 09:32:41 +00:00
skrll
c45d1c88b1 Tidyup error handling around PDC_PIM.
CTASSERT -> KASSERT
2009-05-29 08:44:29 +00:00
skrll
a029156d61 Save screen space and make machine check output easier to read (for me) 2009-05-29 08:39:05 +00:00