Commit Graph

211124 Commits

Author SHA1 Message Date
cegger
0ef7b4d395 xc_wait() does not wait for all cpus to finish
their callback. That means the ucode buffer is released while still in use
and this causes a crash.
Quick fix: check if the ucode buffer has been freed and abort.
You may need to run 'cpuctl ucode' twice to apply it to all cpus.

Per discussion with rmind@ use low priority xcalls and splhigh.
2012-05-10 12:35:53 +00:00
skrll
b6641977d5 Typo 2012-05-10 11:47:09 +00:00
skrll
ca99b53a12 Bit more KNF 2012-05-10 11:03:22 +00:00
skrll
3542915f60 KNF 2012-05-10 11:01:35 +00:00
skrll
a79f423c7f KNF 2012-05-10 10:48:23 +00:00
skrll
9ae4f82b80 _int*_t -> uint*_t
Same code before and after.
2012-05-10 10:27:09 +00:00
skrll
9ea87d7dd7 u_int*_t -> uint*_t 2012-05-10 09:56:27 +00:00
riastradh
dae16d94fa Disable scary but probably harmless printf.
Still need to find why this harmless-but-shouldn't-happen case is
happening, but in the mean time, we can stop scaring people with it.
2012-05-10 07:57:02 +00:00
riastradh
32dd758701 Update ffs, ext2fs, and tmpfs module makefiles to add *_rename.c.
ok martin
2012-05-10 07:51:34 +00:00
riastradh
3dd1359b89 Welcome to 6.99.7, courtesy of genfs_rename.
ok martin
2012-05-10 07:48:07 +00:00
skrll
4501565ba1 KNF 2012-05-10 07:39:48 +00:00
macallan
a0fe3cc5fe use MMIO if available 2012-05-10 03:16:50 +00:00
christos
b3f77d243b dead for sigint 2012-05-10 01:25:24 +00:00
riastradh
21ca295647 Fix omitted VN_KNOTE(fvp, NOTE_RENAME) in tmpfs_rename.
Missed that line while refactoring tmpfs_rename to use genfs_rename.
2012-05-09 22:46:25 +00:00
jdf
4197d2d493 Remove an unnecessary space in the manpage. Patch provided by Bug Hunting. 2012-05-09 22:29:06 +00:00
christos
ffef77d400 add {rndc,ddns}-confgen 2012-05-09 22:04:05 +00:00
christos
85b637054a add confgen programs 2012-05-09 21:59:10 +00:00
khorben
b15b1c08b5 Extended usb_hid_usages, with help from the equivalent file from FreeBSD.
Favored NetBSD upon conflicts, except for a typo and consistency.

ok riz@
2012-05-09 16:21:06 +00:00
cegger
1daeac0d8a fix crash when booting with -x. 2012-05-09 13:58:09 +00:00
wiz
72e401ccbd Mention import of bzip2-1.0.6, and that zlib-1.2.7 is out. 2012-05-09 12:04:27 +00:00
martin
af2edddc59 Retry previous, but with proper path this time. 2012-05-09 08:17:33 +00:00
joerg
12d82dda2b Format strings don't use all arguments in the non-pluralized case. 2012-05-09 07:59:23 +00:00
martin
8cb8e6a347 PR port-acorn32/46435: type mismatch, padbuf should be unsigned char. 2012-05-09 07:52:52 +00:00
riastradh
35d57656cd Adjust t_renamerace now that ext2fs and ffs have good rename. 2012-05-09 00:22:26 +00:00
riastradh
aeadee1d6d Adapt ffs, lfs, and ext2fs to use genfs_rename.
ok dholland, rmind
2012-05-09 00:21:17 +00:00
riastradh
aff071a220 Adapt tmpfs_rename to use genfs_rename. 2012-05-09 00:16:07 +00:00
riastradh
5ecfdf8dea Implement a genfs_rename abstraction.
First major step in incrementally adapting all the file systems to a
saner rename VOP protocol.
2012-05-08 23:53:26 +00:00
tsutsui
8eac82d05c Move bfs_file_setsize() from bfs.c to sysvbfs_vnops.c
(and rename it to sysvbfs_file_setsize()) because it's actually
part of vnode ops and bfs.c is also pulled by standalone bootloaders
which don't want vnode header mess.
2012-05-08 14:28:55 +00:00
martin
e90a004d0c Fix harmless error preventing auto-finding non-ISO9660 formatted CD
partitions (when offering sets from CD).
2012-05-08 13:51:34 +00:00
martin
9ac338c2e4 Add a few modules in booke/4xx compat lists - should fix the evbppc build. 2012-05-08 13:22:36 +00:00
gson
425e23f1fe Move VFS_EXTATTRCTL to mount_domount(). This makes the
fs/puffs/t_fuzz:mountfuzz7, fs/puffs/t_fuzz:mountfuzz8,
and fs/zfs/t_zpool:create tests pass again.  Patch from
manu, discussed on tech-kern and committed at his request.
2012-05-08 08:44:49 +00:00
macallan
8b2ecf848a provide a BAT mapping for the PCI IO range on Grackle/Heathrow based macs
now drivers that need PCI IO access work again
2012-05-08 05:15:45 +00:00
macallan
c92dd73582 don't enable IO access - we don't use it and at least on some macppc machines
the IO BAR contains garbage
should probably be pulled into 6.0
2012-05-08 02:25:25 +00:00
matt
12ca21c5bb Preserve some MACCFG2 bits 2012-05-07 23:04:22 +00:00
dsl
12bb5f8f0a Rejig the way TRAP() and ZTRAP() are defined and add Z/TRAP_NJ() that
excludes the 'jmp alltraps'.
Use the _NJ versions for trap entries with non-standard code.
Move all the KDTRACE_HOOKS code into a single block inside the
  IDTVEC(trap03) code. This removes a mis-predicted from every
  trap when KDTRACE_HOOKS are enabled.
Add a few blank lines, need some comments as well :-)
No functional changes intended.
2012-05-07 21:09:29 +00:00
dsl
32a805349b Add a ';' that got deleted in a slight tidyup. 2012-05-07 21:04:09 +00:00
dsl
53a9a10f6e Move all the XEN differences to a single conditional.
Merge the XEN/non-XEN versions of INTRFASTEXIT and
  INTR_RECURSE_HWFRAME by using extra defines.
Split INTRENTRY so that code can insert extra instructions
  inside user/kernel conditional.
2012-05-07 20:51:20 +00:00
tsutsui
e197458932 Fix wrong raw keycode in xt_keymap_c860[] so that right shift properly works
on Xserver on C7x0/860.  From steleto.

Should be pulled up to netbsd-6.
2012-05-07 18:36:16 +00:00
tsutsui
485e133a8e Add dummy bus_dma(9) typedefs (enabled by __HAVE_NO_BUS_DMA) in <sys/bus.h>
for ports which don't bother to have unnecessary bus_dma(9) implementation
to appease MI driver modules that require bus_dma_tag_t.

For amiga, move <m68k/bus_dma.h> inclusion from <machine/pci_machdep.h>
to <machine/bus.h> since amiga will want actual bus_dma(9) in future
for PCI devices.

Fixes builds on sys/modules/if_axe etc on ancient ports.

"Sounds good" from martin@ on port-m68k@.
2012-05-07 18:16:38 +00:00
jym
8cf41b7663 Merge i386 and amd64 version of db_memrw.c.
Use this opportunity to skip calculating the VA of the page. Let the CPU
deal with the invalidation itself through invlpg + destination address to
avoid converting between canonical/non canonical forms.
2012-05-07 17:45:28 +00:00
joerg
1da1d2193c Raise per-image text size limit to 256MB. 64MB has seen already, so
provide some margin of grows.
2012-05-07 16:16:44 +00:00
chs
e9b012a310 allocate a separate buffer in each call to sink().
reusing the buffer across recursive calls just doesn't work right.
2012-05-07 15:22:54 +00:00
joerg
763e57918f Push logic to convert a ttyname to a device number into its own
function. Improve dealing with ptyfs by explicitly handling missing
pts/%d entries, if the kernel supports the pts device (PR 40813).
2012-05-07 13:14:31 +00:00
jym
6ddc2f08de For correctness: do not forget VA_SIGN_NEG(). 2012-05-07 12:23:05 +00:00
jym
6a8edbf721 invlpg on a non canonical address is a noop, so no chance to invalidate
the TLB and the CPU will not notice the access right change.

This results in write protection faults in supervisor mode when patching
kernel code through ddb(4) (originally mapped as read only).

Bug reported by David Laight on port-amd64@ (thanks!), patch and test by
me.

i386 is unaffected as PG_LGFRAME does not mask the sign bits. For the
sake of correctness, use VA_SIGN_NEG(...) anyway.

XXX this is the patch that will be pulled-up to -5 and -6.
2012-05-07 12:20:27 +00:00
jym
7db24764fe Use the current destination address to compute PTE, not the address of
origin.

Harmless, except when db_write_text() passes a page boundary.

From Bug Hunting.

XXX has to be pulled up to -5 and -6.
2012-05-07 12:12:03 +00:00
wiz
686542c156 Mention that you should run makemandb -f, or wait for the weekly script. 2012-05-07 11:20:24 +00:00
wiz
d099c69274 PR 46419 by Abhinav Upadhyay using his updated patch:
Clean up after removing man page aliases.
2012-05-07 11:18:16 +00:00
wiz
2d5eea808c Move dist2netbsd script out of dist/ and adapt for new path. 2012-05-07 08:55:46 +00:00
wiz
4739fc03e4 Adapt to repository move of dist from external/bsd/bzip2 to
external/bsd/bzip2/dist.
2012-05-07 08:51:47 +00:00