Commit Graph

210997 Commits

Author SHA1 Message Date
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
jym 1cc61dc5c3 Use pmap_pte_*bits macros to set/clear bits in a PTE. Remove pmap_pte_flush
calls as these operations are synchronously flushed under Xen; they should
not be cached.

XXX the code can be shared between i386 and amd64, but I will merge
them once I figure out why db_write_text() can cause page faults for
certain CPUs in long mode (code looks correct, but single stepping or
adding debug printf's makes the bug magically disappear... sigh)

Bug reported by David Laight on port-amd64@ when attempting to set
breakpoints through ddb(4).
2012-05-07 02:32:09 +00:00
jym 86fb416954 Remove XXXSMP comment and explain why no TLB shootdown is required here. 2012-05-07 02:15:34 +00:00
jym 82dd894c71 I am not quite sure that __data_start (set through location counter) is
a char... declare it as int, like amd64.
2012-05-07 02:12:35 +00:00
wiz e3116df773 merge 1.0.6 2012-05-07 00:45:47 +00:00
wiz f04bd531b4 Import bzip2-1.0.6:
1.0.6 (6 Sept 10)
~~~~~~~~~~~~~~~~~

* Security fix for CVE-2010-0405.  This was reported by Mikolaj
  Izdebski.

* Make the documentation build on Ubuntu 10.04
2012-05-07 00:41:32 +00:00
wiz 3815d29a7f Finish move of bzip2 from dist/bzip2 to external/bsd/bzip2. 2012-05-07 00:35:25 +00:00
wiz 0449b68bd1 Merge changes from dist/bzip2:
man page converted to mdoc
compiler warning fixes
integer overflow fix
remove files that aren't used on NetBSD

Add adapted bzip2netbsd script.
2012-05-07 00:30:05 +00:00
wiz 4f9a14591a Re-import bzip2-1.0.5 in more appropriate location. 2012-05-07 00:21:32 +00:00
joerg a9992047e4 Consistently short cut the pattern loop on mismatches.
Don't assign 1 conditionally, if unconditional works as well.
2012-05-06 22:32:05 +00:00
joerg 0fe4b4b06b Remove matchall handling for now, it doesn't work correctly and as such,
it is a premature optimisation.
2012-05-06 22:27:00 +00:00
joerg 40b375f194 Make the matchall case a full short cut. 2012-05-06 21:56:08 +00:00
tsutsui bf4f59d877 Make x68k's floppy driver actually work with proper bounce buffer xfer ops
on machines with extended high memories:

- dev/fd.c:
 - add missing bus_dmamap_sync(9) POSTREAD/POSTWRITE ops

- x68k/machdep.c:
 - update avail_end variable (which is used to check DMA'able memory range
   in intio.c) properly per probed extended memory regions

The problem was found during debugging XM6i's FDC emulation by
Y.Sugahara, isaki@, and me.

Should be pulled up to netbsd-6.
2012-05-06 19:46:18 +00:00
martin d0518d9cf8 Comment out the expected failure, as it does not trigger anymore. 2012-05-06 17:27:22 +00:00
martin a4c413ac1a When ejecting a medium, invalidate the in core disklabel - it is not
meaningfull anymore. This makes the following cdclose() use silent
mode and finally fixes PR kern/43785.
2012-05-06 17:23:10 +00:00
martin a8e0448e41 Revert previous and add a comment - I misunderstood what this code is
emulating.
2012-05-06 16:58:31 +00:00
martin 11c99eb4d6 In cdopen: make the test for media presence always silent. In all cases
requiring a message, we will most likely get that from the spinup attempt
anyway.
This avoids the spurious "Check Condition on CDB, Not Ready, Medium Not
Present, Tray Closed" messages at boot/shutdown time.
2012-05-06 16:42:19 +00:00
martin 6dfd42c24f If we are not delivering a host iso file (USE_TOSI_ISO is undefined), use
-1 as file descriptor initially. The -2 value confused a few other checks
later and led to inconsistent "media present" reports.
2012-05-06 16:33:02 +00:00
agc b032516602 Document the new agc-netpgp-standalone branch under
src/crypto/external/bsd/netpgp, used to develop a version of netpgp
with its own BIGNUM/MPI, cipher and signature libraries.  This will
allow netpgp to be used without bootstrapping openssl first, in turn
allowing netpgp to be used in places it would otherwise not be able to
be used.
2012-05-06 07:28:48 +00:00
christos 3a2a43f2ca - match format with the linux map printing
- fix PK_32 map printing for linux processes
should fix 32 bit java stack guard setting.
2012-05-06 03:13:11 +00:00
rmind 3e491282a2 - Fix double-free case on ICMP return case.
- npf_pfil_register: handle kernels without INET6 option correctly.
- Reduce some #ifdefs.
2012-05-06 02:45:25 +00:00
christos ba12b0dcec oops, forgot to commit: add tgamma and tgammaf 2012-05-05 22:07:57 +00:00
dholland d66ac51d84 Mark these obsolete as well. 2012-05-05 21:24:19 +00:00
dholland cf2f172048 Bump date for previous. 2012-05-05 21:18:43 +00:00
dholland 1d1104dd8c rest of previous.
BQS: 1. dholland: 0.
2012-05-05 21:16:16 +00:00
dholland aa368b88e1 Describe these as obsolete. 2012-05-05 21:14:55 +00:00
christos 57ca898c48 remove ancient crap 2012-05-05 21:03:02 +00:00
dholland f88a50da82 typo in comment 2012-05-05 20:48:51 +00:00