Commit Graph

96152 Commits

Author SHA1 Message Date
pooka
2ba62ba2c7 Not everyone is building from my yet uncommitted trees, so catchup
here also.

tip-of-the-hat to simonb
2008-07-28 16:27:29 +00:00
christos
a3d2246423 lint wins again :-) From Anon Ymous:
- fix a mis-placed parenthesis.
- fix assignment to the wrong variable.
2008-07-28 15:28:27 +00:00
drochner
6a47db887e -in usbd_probe_and_attach(), split out the code for per-device and
per-interface attachment into individual functions, to ease
 maintainance and allow easier plugin of new attachment functions
-keep a counter of USB interfaces in use on a device, and try to
 keep track of interfaces claimed by drivers behind the framework's
 back
2008-07-28 15:22:01 +00:00
drochner
6b623b615a add missing device_private(), fixes crash in interrupt handler 2008-07-28 14:25:30 +00:00
drochner
a17262c3e3 Avoid NULL pointer dereference on power handler deregistration if
it was not registered before. I assume that a lot of drivers do not
proper bookkeeping in the case the attach() exits early due to
errors. This is hard to fix and to test, so just be generous here.
2008-07-28 14:22:14 +00:00
drochner
3126a6b09b Don't pmf_device_deregister() if it was not registered, which happens
if attach() encountered an error before.
In contrast, such a protection should not be needed for the register()
call, so remove it there.
2008-07-28 14:19:26 +00:00
pooka
49eea9ca9f add a comment stating why evbppc doesn't do lkm or modules 2008-07-28 14:09:55 +00:00
pooka
e575982be5 blkset.S is needed on vax by some macros, so include it in the build. 2008-07-28 13:56:59 +00:00
pooka
97f4be43e9 Install mount argument structure header just like every other file system. 2008-07-28 12:42:12 +00:00
jmcneill
25b0c73dd3 Clarify some printfs in error cases so we at least know what subsystem
reported them.
2008-07-28 12:20:35 +00:00
dsl
d7ca47879f Change how 'while (0)' is commented out to avoid /* within a comment. 2008-07-27 20:12:47 +00:00
pooka
c8ccd39051 UKFS_UIOINIT() functionality has been provided for ages by rump
function interfaces, so remove the macro.
2008-07-27 16:12:23 +00:00
pooka
f06b295c56 Adjust comment location to make it make sense.
no functional change
2008-07-27 15:08:37 +00:00
joerg
0528da675e Unbreak twa after the last two commits. 2008-07-27 13:10:11 +00:00
reinoud
7ac1927ba2 Delay physical partition spacebitmaps from volume-descriptor-checking until
the other supporting structures are read in.
2008-07-27 11:38:23 +00:00
reinoud
5c3627bcdf Unify naming scheme and source code beautify for better readablility. 2008-07-27 11:21:21 +00:00
veego
e012f27d4d Remove the '${.CURDIR}/' part in CLEANFILES, so that the files will be
deleted in the case of an objdir too.
Proposed to current-users on 20-Jul-2008 with no reply..

XXX The '*~' part should be removed too, but I leave that to someone else
    since it is used in a lot of other Makefiles too and there maybe a
    valid reason for it.
2008-07-27 07:57:40 +00:00
reinoud
4e0493c8f8 Forgot to rename those two references to write_space_bitmap too. 2008-07-26 20:52:04 +00:00
reinoud
8f7887a864 Clarify the current spacemap read/write code is reading/writing physical
partition space maps. This in preperation of Metadata spacetable
reading/writeout work.
2008-07-26 20:49:33 +00:00
reinoud
3653a53255 Clarify not implemented allocation schemes; mostly UDF 2.50
HD-DVD/BluRay-RE and UDF 2.60 for BluRay-R
2008-07-26 20:33:36 +00:00
plunky
86cf58d587 remove comment that is no longer true 2008-07-26 20:16:10 +00:00
darrenr
4dac121dab 2020447 IPFilter's NAT can undo name server random port selection
(fix output port range, was a random number in [0,max-min]
	 (byteswapped on litle endian), instead of [min,max])
2008-07-26 19:44:28 +00:00
heinz
4f58699ff4 Moved comments for some _POSIX_* constants in front of their definition,
like all the rest of them.
2008-07-26 19:37:58 +00:00
christos
081bb45d58 make sure we write little endian. From Anon Ymous 2008-07-26 15:10:34 +00:00
dsl
c43281ec80 Remove all the pending connections in soclose().
'continue' in 'do .. while (0)' doesn't do what ad@ intended.
2008-07-25 22:45:58 +00:00
dsl
a8f5b9cfc2 Comment out the 'do' and 'while (0)' from KEY_CHKSASTATE().
The expansion contains a 'continue' which is expected to continue
a loop in the callling code, not just abort the #define.
2008-07-25 20:55:43 +00:00
dsl
34519fcf41 Move the body of VLAN_INPUT_TAG() into a static inline function.
(Maybe it shouldn't even be inline - but I'd have to work out where to put it).
VLAN_INPUT_TAG() now calls vlan_input_tag() and does '_errcase' when it fails.
In reality the callers should all be changed, _errcase is ALWAYS continue,
which used to 'continue' (ie break) the do .. while (0) loop - not the
intended action!
Found by ramming all the kernel sources through a modified lint and grepping
for a specific error.
While here enclose the body of VLAN_OUTPUT_TAG() in ().
2008-07-25 20:04:50 +00:00
dsl
93b2e677b4 Add {} around VLAN_INPUT_TAG() - VLAN_INPUT_TAG() can't be a do ... while (0). 2008-07-25 19:45:06 +00:00
dsl
bc2387e293 Replace a 'do { ... } while (0);' with 'for (;;) { ... break; }'
so that the 'continue' has the (probably) desired effect.
2008-07-25 18:37:24 +00:00
christos
b00559d07e use bufsize instead of BUFFERSIZE 2008-07-25 18:36:50 +00:00
christos
3bccc0f766 Handle files with a large number of mappings gracefully. Reported by Nicholas
Joly.
2008-07-25 17:40:24 +00:00
reinoud
0dca08adcb Add metadata bitmap ICB file type 2008-07-25 15:37:56 +00:00
christos
0119da7858 PR/39203: Paul Ripke: PPPoE issues with broken MTU/MRU implementations
Allow larger frames for systems that don't negotiate MTU/MRU properly.
2008-07-25 15:10:25 +00:00
bjs
8151294949 - for DRM_NETBSD_HANDLE2ADDR/ADDR2HANDLE, do what uvm does to recover
the virtual address from a uoffset, e.g. uoffset + vm_map_min(kernel_map).

- Eliminate the bus_space_read/write-based DRM_READ/WRITE macros.  The
  memory we're reading/writing from is not always allocated with bus_space,
  and so this will not do.  Instead, since all of our bus_space maps are
  linear, volatile pointer dereferences will do just fine.

- Unify members of struct drm_dma_handle amongst freebsd and netbsd:
  the 'addr' member was superfluous; also, set dmah->tag from
  dev->pa.pa_dmat and use that.

- we don't need BUS_DMA_ALLOCNOW, as bus_dmamap_load is called immediately
  following bus_dmamap_create(), so there's no need to avoid deferring
  allocation to load time.

- Add check for nsegs != 1 in drm_pci_alloc().

- We don't need the DRM_PCI_DMAADDR macro right now--it was only
  used once.
2008-07-25 06:54:33 +00:00
bjs
f4821bc01a in the git sources, timo is jiffies + 5*DRM_HZ, not 5*DRM_HZ 2008-07-25 06:37:40 +00:00
mrg
5560b89162 merge git-change-2580a065d81be645a14af1e91b8441f7e72fcbe4. 2008-07-25 05:30:08 +00:00
mrg
3eb83a79ce import mesa-drm git from change 2580a065d81be645a14af1e91b8441f7e72fcbe4.
this pulls in a few vblank fixes.
2008-07-25 05:27:51 +00:00
bjs
42cc23f284 IRQ_HANDLED should be 1, not 0. 2008-07-25 02:37:18 +00:00
uwe
4691dacd78 Declare lwp_exit_switchaway() __dead. Add infinite loop at the end of
lwp_exit_switchaway() to convince gcc that cpu_switchto(NULL, ...) is
really not going to return in that case.  Exposed by gcc4.3.

Reported on tech-kern by Alexander Shishkin.
2008-07-25 00:48:59 +00:00
blymn
9b9ad40a56 * Add the BSS node during the auth phase so negotiation can occur
* Make the adding of a node into a function instead of duplicating code
2008-07-24 13:04:00 +00:00
njoly
c1c4ce8861 Regen for rt_sigpending. 2008-07-24 12:11:14 +00:00
njoly
efde75ae99 Add rt_sigpending syscall. 2008-07-24 12:09:56 +00:00
darrenr
9f0bfbf3da 2020447 IPFilter's NAT can undo name server random port selection 2008-07-24 09:37:57 +00:00
sborrill
474699860b Add support for Broadcom 5722 and identify 5755 ASICs. 2008-07-24 08:14:49 +00:00
apb
7cb9e72bbb Avoid using \$ in an awk script. Instead, store '$NetBSD$'
in an awk variable and interpolate it where needed.

Based on the patch by Martin Husemann in PR 38766.
2008-07-23 21:17:25 +00:00
njoly
066b9aabb5 Add linux32_getifconf, following recent linux_getifconf addition. 2008-07-23 12:32:09 +00:00
dyoung
7e7bddae2b Fix this another way: add the missing case statement. 2008-07-23 06:34:31 +00:00
gmcgarry
1d92605168 Back out rev 1.163 which broke the logic for SIOCSIFFLAGS. PR#38976. 2008-07-23 05:41:47 +00:00
reinoud
5b49df17d8 No use walking empty hashtables when purging. 2008-07-22 21:39:08 +00:00
christos
0f5d35d8d1 report local symbols too. 2008-07-22 21:18:35 +00:00
pooka
2d86f776af Make the previously library-internal "builddirs" an external interface:
ukfs_util_builddirs()

patch from Arnaud Ysmal
2008-07-22 20:02:16 +00:00
reinoud
ff7ad972a5 Limit the UDF dirhash to a configurable amount of memory. The performance
penalty even with a limited dirhash of 128kb is acceptable but it should be
set by machine memory size though.
2008-07-22 19:06:55 +00:00
hauke
3411d8045b Having read Frank Kardel's web page again, I think the XXX comment
wrt. the splhigh() guard can go.
2008-07-22 14:43:45 +00:00
matt
4886aa3da7 Implement workaround for:
arm11 Errata 364296:Possible Cache Data Corruption with Hit-Under-Miss

Remove hack in userret which is redundant with workaround.

workaround code from <imre.deak@teleca.com>
2008-07-22 07:07:23 +00:00
bjs
c7921652a6 Add pci_mapreg_submap(): This function is pci_mapreg_map() with two
additional arguments, offset and maxsize.  This new functionality
eases handling certain tasks within the direct rendering manager, though
I hope others will also find it useful.

pci_mapreg_map() is now merely a wrapper around pci_mapreg_submap();
the latter contains all of the code from the former.

ok christos@
2008-07-22 04:52:19 +00:00
joerg
26fd2cb43f Express explicitly that VGA_POST needs X86EMU. 2008-07-21 21:36:05 +00:00
lukem
09657f8798 Switch __COPYRIGHT() to using __SECTIONSTRING() now that userland
copyrights don't have \n in them.
(Tested on i386.  There might be a couple of applications specific
to a given platform that should be fixed.)
2008-07-21 15:22:19 +00:00
cegger
30e1bad82e beautify dmesg with MPVERBOSE.
before:

pci0 at hypervisor0 bus 0: configuration mode 1hypervisor0: added to list as bus 0

pchb0 at pci0 dev 0 function 0

now:

pci0 at hypervisor0 bus 0: configuration mode 1
hypervisor0: added to list as bus 0
pchb0 at pci0 dev 0 function 0
2008-07-21 11:51:59 +00:00
pooka
348d0d344d Have a COW with fscow_run(). Fixes problem of allocating files
on ffs with indirect blocks.

found by simonb
2008-07-21 10:51:03 +00:00
pooka
4a0d2098e7 Repeat after me: do not pollute sys with #ifdef _RUMPKERNEL 2008-07-21 10:40:37 +00:00
drochner
df0247d05d don't include i82365var.h, fixes build error, from Robert Swindells 2008-07-21 09:51:46 +00:00
matt
568e00fecc Add PMAP_KMPAGE defintion (forgotten commit). Also add PVF_DIRTY which will
be used by an update pmap.c shortly (to note what pages may have dirty
cache lines).
2008-07-21 07:33:54 +00:00
bjs
e2ae9c7df8 Remove #ifdef __FreeBSD__ around DRM_UPDATE_DRAW ioctl, as we have drawable
code (and if it does not work, we must make it work!).

Add missing entry for DRM_MODESET_IOCTL.
2008-07-21 07:18:11 +00:00
pooka
cb5ae8f020 Call mountpoint VFS_FSYNC() from specfs fsync.
Makes rump kern/38057-happy.
2008-07-21 00:08:30 +00:00
martin
1f71bc27ce Fix previous. 2008-07-20 22:57:19 +00:00
pooka
655d81c21a Make the user-namespaced rumpuser_cv_has_waiters() of type int
instead of bool to avoid unnecessary problems in trying to provide
the bool type.
2008-07-20 19:03:04 +00:00
martin
4956be1f47 Make struct pcib_softc explicit in our softc. 2008-07-20 17:18:21 +00:00
martin
f3b6f1bea8 Explicitly add struct pcib_softc to the softc since the pcib functions
we call expect this.
2008-07-20 16:59:53 +00:00
martin
d2849ba366 Rearange softc so it starts with a struct pcib. We reuse the x86 pcib code
which assumes this.
2008-07-20 16:52:33 +00:00
martin
e394f32ae0 Make the softc externally visible, so other bridges reusing this code
don't have to "get it right" manually.
2008-07-20 16:50:29 +00:00
tsutsui
1a160ac866 Specify volatile to some pointers to access DMA registers. 2008-07-20 16:35:27 +00:00
tsutsui
471f4d63c3 No need to specify '&' to get array's address.
No binary changes.
2008-07-20 16:28:24 +00:00
tsutsui
b55114eae7 Fix pointer arithmetic botch in rev 1.37. 2008-07-20 16:23:38 +00:00
pooka
83548151e2 assert -> KASSERT 2008-07-20 16:18:13 +00:00
pooka
0217e22507 You must untypo what you have typoed: rumpnode_if.h -> rumpvnode_if.h 2008-07-20 16:14:22 +00:00
he
6512b04025 The build options for the library parts are mostly located in this
file.  So, in order to better support UPDATE builds, add a dependency
on this file for object files in subdirectories using this file.
2008-07-20 15:56:44 +00:00
blymn
762e875434 Add locking around veriexec operations to prevent all sorts of badness
happening.  This fixes kern/38646.
2008-07-20 08:50:20 +00:00
bjs
616225d114 add forgotten initialization/destruction for tsk_lock. 2008-07-20 03:02:22 +00:00
bjs
e63e7d81db Add a forgotten mtsleep(). 2008-07-20 02:58:40 +00:00
uwe
e58a3edb13 When doing pointer arithmetic to compute limit cast bootp to pointer
type of correct signedness.  Caught by lint.
2008-07-20 02:06:37 +00:00
martin
41198d5648 Make sure callouts are initialized before any access (including stopping
them)
2008-07-20 01:05:27 +00:00
jmcneill
a9b5dcaa70 ioctl compatibility for v4l2 and drm 2008-07-19 23:01:52 +00:00
mrg
8754a8144b move an XXXNETBSD along with the assignment that moved 2008-07-19 22:23:14 +00:00
mrg
f9c3ff3858 merge cornflakes from git-change-04893aa99abfbed8eb6d7067a974fa1f31193c87. 2008-07-19 22:22:17 +00:00
mrg
acf7df4527 fix a merge error 2008-07-19 22:14:13 +00:00
mrg
b0c27870b5 merge cornflakes from git-change-04893aa99abfbed8eb6d7067a974fa1f31193c87. 2008-07-19 22:10:09 +00:00
mrg
60c992bef9 import mesa-drm git at change 04893aa99abfbed8eb6d7067a974fa1f31193c87. 2008-07-19 22:05:02 +00:00
jmcneill
a8309870a5 Pull in agp_i810.h so the agp borrow hack works on i915drm. 2008-07-19 20:08:39 +00:00
jmcneill
e3f4f88866 PCI_PRODUCT works on pa_id, not pa_device 2008-07-19 17:45:53 +00:00
bjs
61ffbe1fec dev->pci_device should be assigned PCI_PRODUCT(pa->pa_id), not the id
itself.
2008-07-19 17:44:14 +00:00
bjs
79b565981a use ALIGN() instead of rolling our own. 2008-07-19 17:28:14 +00:00
bjs
e87f5b54be set dev->kdev = kdev at open time, not in drm_ioctl. 2008-07-19 17:23:04 +00:00
reinoud
3efc85e77e Limit sectorsize to max. 4096 bytes. This prevents a panic when declaring
the node pool since standard pools are limited upto 4096 aparently.
Pagesize limit even?
2008-07-19 16:36:40 +00:00
reinoud
aa9f26d0bd Use the allocation descriptor types selected on mount when growing from an
internal to an extent recording.
2008-07-19 16:23:09 +00:00
reinoud
a2718fb081 Use ecma-167 constants instead of homegrown to prevent double mapping. 2008-07-19 16:14:09 +00:00
reinoud
a1f7916969 Choose which time of allocation descriptors to use on new nodes based on
the number of partition mappings.
2008-07-19 16:00:35 +00:00
jmcneill
4a648a5b9a Implement drm_drawable gunk and drm_locked_task, untested. i915drm links now. 2008-07-19 14:15:11 +00:00
kardel
b6ecf59844 buf_destroy() an embedded buffer before returning memory to pool
issue detected by LOCKDEBUG panicing about "allocation contains active lock"
2008-07-19 13:58:08 +00:00
kardel
ccab995bc6 Initialize timecounter_lock at IPL_HIGH. Prevents a "locking against myself"
when com.c (options PPS_SYNC) delivers a PPS time stamp during clock
interupt processing.
2008-07-19 10:33:58 +00:00
bjs
d63b70db6d Change IPL of DRM_SPININIT macro to IPL_NONE. Currently, the only
mutex initialized by this macro is the dma lock, which certainly
should not be IPL_VM.  The priorities of the other locks should be
revisited.

Also, in DRM_WAIT_ON, enforce the policy of "drm returns -errno
to shared code" (this used to be implemented via a macro).
2008-07-19 10:09:01 +00:00
mrg
41097c94f6 support new drm.
XXX: not fully enabled yet.  config(1) has a makeoptions bug
with complex conditionals.  see files.drm / files.pcidrm for
some instructions on how to enable it.
2008-07-19 07:26:54 +00:00
mrg
242955a02d XXX: remove the (volatile uint32_t *) cast from atomic_read() macro for now.
now all bsd drm drivers build except for i915 which fails to link.
2008-07-19 07:03:07 +00:00
mrg
cc28125d9e XXX: always return DRM_MIGHT_BE_AGP for now -- need to implement the
XXX: releant bus controller grovelling for netbsd pci.
2008-07-19 07:02:15 +00:00
mrg
310b3512f5 XXX rename some macro internal variable names to not clash with users. 2008-07-19 06:48:44 +00:00
mrg
c97fa01b94 rename some inner local variables away from outer scope name conflicts 2008-07-19 06:42:07 +00:00
mrg
215f2c6a8b rename a local variable from free to myfree 2008-07-19 06:40:01 +00:00
mrg
8ff8b7b272 pull over many many changes from netbsd-current sys/dev/{,pci/}drm/.
make the mesa-drm style Makefile's actually run on netbsd (but i doubt
they work yet.)

this still has a lot to go.  it doesn't work yet, but it's getting
close.

most of this is from other authors than myself:  yorrick, drochner,
jared, bjs, all contributed a lot more than i have so far, but there's
a bunch of clean up from myself in here as well.
2008-07-19 06:18:23 +00:00
mrg
3a3ec8ba5f include bsd.subdir.mk 2008-07-19 06:14:25 +00:00
mrg
d582952b83 import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
2008-07-19 05:30:36 +00:00
christos
dac1180a87 fix debugging printf 2008-07-18 21:29:48 +00:00
reinoud
a48555c3a3 Hopefully fix gcc type puned warning. 2008-07-18 16:21:12 +00:00
pooka
1d89d2370c enable DIAGNOSTIC 2008-07-18 16:20:03 +00:00
pooka
28fdf2df68 support cv_has_waiters() 2008-07-18 16:19:12 +00:00
pooka
00e37d073d emulate vlog() 2008-07-18 16:18:04 +00:00
pooka
6fed9eb99d Don't biohazardwait B_ASYNC buffers. 2008-07-18 16:15:56 +00:00
reinoud
e7c5eefcfb fix comment 2008-07-18 15:55:32 +00:00
reinoud
5f233d9346 On dirhash lookup, don't retrieve info you already have. 2008-07-18 14:18:51 +00:00
reinoud
f0040136a6 Remove double check 2008-07-18 13:39:41 +00:00
reinoud
43188548d8 First retrieve length and hash values *before* advancing to the next entry.
On hashline collision it would check a random one next.
2008-07-18 13:34:05 +00:00
reinoud
aa9cb3deaa Instead of bombing out when trying to mount a disc RW when UDF_READWRITE is
not defined, downgrade it to a read-only mount.
2008-07-18 12:45:08 +00:00
rmind
a7fc471680 PR/39155: Wolfgang Solfrank: Invalid parameter to turnstile_exit in rw_downgrade. 2008-07-17 23:00:01 +00:00
reinoud
2ac28d554b Implement directory hashing to speed up directory traversals. Speed
improvements of at least 4 times in untarring and roughly 100 to 500 times
on file creation in big directories. Lookup of files was O(n*n) and is now
O(1) even for file creation. Free spaces in the directory are kept in a
seperate list for fast file creation.

The postmark benchmark gives:

UDF old:
pm>set transactions 2000
pm>set number 3000
pm>run
Creating files...Done
Performing transactions..........Done
Deleting files...Done
Time:
        1593 seconds total
        681 seconds of transactions (2 per second)

Files:
        3956 created (2 per second)
                Creation alone: 3000 files (4 per second)
                Mixed with transactions: 956 files (1 per second)
        990 read (1 per second)
        1010 appended (1 per second)
        3956 deleted (2 per second)
                Deletion alone: 2912 files (9 per second)
                Mixed with transactions: 1044 files (1 per second)

Data:
        5.26 megabytes read (3.38 kilobytes per second)
        21.93 megabytes written (14.10 kilobytes per second)
pm>



UDF new:
pm>set transactions 2000
pm>set number 3000
pm>run
Creating files...Done
Performing transactions..........Done
Deleting files...Done
Time:
        19 seconds total
        3 seconds of transactions (666 per second)

Files:
        3956 created (208 per second)
                Creation alone: 3000 files (230 per second)
                Mixed with transactions: 956 files (318 per second)
        990 read (330 per second)
        1010 appended (336 per second)
        3956 deleted (208 per second)
                Deletion alone: 2912 files (970 per second)
                Mixed with transactions: 1044 files (348 per second)

Data:
        5.26 megabytes read (283.66 kilobytes per second)
        21.93 megabytes written (1.15 megabytes per second)
2008-07-17 19:10:22 +00:00
tsutsui
770f58015d Revert part of previous changes:
> make makeiplcookie() return PSL bits via ipl2psl_table[]
> rather than IPL_FOO indexes
because ipl2psl_table[] could be updated during autoconf(9)
and we can't use it as cookie before cpu_configure(9).
2008-07-17 16:13:33 +00:00
reinoud
441bae21b1 Dont round up nanosecond count; if its nearing wrap one could get a count
of >1 second resulting in invalid time stamps on disc.
2008-07-17 15:37:59 +00:00
cegger
2515b0ec09 make this compile 2008-07-17 14:43:38 +00:00
cegger
075c838a83 devive_private -> device_private 2008-07-17 14:39:26 +00:00
cegger
1ca90441b2 use device_xname 2008-07-17 13:39:50 +00:00
cegger
f2b690d08e remove redundant declaration of tvtohz(). It's declared in <sys/timevar.h>.
Makes i386 ALL kernel build again.
2008-07-17 13:35:07 +00:00
pooka
3e3b9ce9de Deregister fakeblock path immediately after mount to get it
deregistered also in the case of an error.
2008-07-17 11:25:07 +00:00
reinoud
31a383903d Since the rename logic now locks its source directory too, we ought to
unlock the source directory again on exit. The stub that doesn't allow
cross directory renames for now jumped to the wrong exit point and thus
left a locked directory node that paniced on next locking.
2008-07-17 11:00:29 +00:00
skrll
d2b1f0c9d9 Bump image size to deal with bloat. 2008-07-17 07:01:30 +00:00
pooka
cc7d901591 vfs_subr2 has lost its will to live. vfs_subr was originally split
into two parts so that some of the routines could be used by rump.
Now that rump uses both vfs_subr and vfs_subr2 and there is no
reason to keep two files lying around, re-unite them.
2008-07-16 20:06:19 +00:00
drochner
152044172b add a KASSERT to check the protection bits before using as array index 2008-07-16 18:56:34 +00:00
drochner
983ec2783f split device/softc for sd (tested with a USB stick) 2008-07-16 18:54:09 +00:00
drochner
a3df0dfc03 split device/softc for scsibus 2008-07-16 18:50:58 +00:00
drochner
8b720093a8 wipe out tty buffer contents after read, to avoid keeping possibly
sensitive information in memory longer than necessary
(We could make this depend on ~ECHO or so, but this would be an API
change and I don't think it is worth the effort.)
2008-07-16 18:27:49 +00:00
perry
7549434e22 Add -DM to the newvers_stand.h invocation.
Why is there a "Makefile.boot" used here, and a "Makefile.booters"
used one level up, with redundant stuff between both of them? This all
used to be so clean...
2008-07-16 16:13:38 +00:00
pooka
2707ee274f bring todo list upper-to-dater 2008-07-16 15:54:24 +00:00
pooka
76ee3b3a51 Sync data to baking storage in ukfs_write() 2008-07-16 15:44:11 +00:00
pooka
514afdda21 regen: fsync 2008-07-16 15:43:30 +00:00
pooka
b09210ace9 rumpalooza sys_fsync 2008-07-16 15:42:54 +00:00
tsutsui
a3c412626c Disable more pseudo-devices to shrink an install kernel. 2008-07-16 15:22:50 +00:00
tsutsui
6415b4ca38 Change boot messages to replace build date and maker with kernrev. 2008-07-16 14:45:17 +00:00
matt
3e3119f9fe Default PMAP_KMPAGE to 0 unless it's been previously defined by
<machine/pmap.h>
2008-07-16 14:33:09 +00:00
tsutsui
a6ea1c4a92 Change boot messages to replace build date and maker with kernrev. 2008-07-16 13:44:51 +00:00
tsutsui
fc10d3a3fc Change boot messages to replace build date and maker with kernrev. 2008-07-16 13:19:20 +00:00
perry
ab1cc5d822 Call newvers_stand.sh with -DM so we don't include the (unused) date
and builder in the data segment.
2008-07-16 12:52:37 +00:00
reinoud
d61a135a38 Make UDF allocation-sanity check optional even if the DEBUG flag is
specified. This should be sysctl-able when compiled with the DEBUG flag
eventually.
2008-07-16 09:36:08 +00:00
tonnerre
232e862b92 Don't ignore poor retarded ubt(4) devices which have vendor and product id
== 0. Discovered by mballmer@obsd, ok'd by plucky@.
2008-07-16 08:43:01 +00:00
chs
a1677d385b in pmap_map(), use pmap_kenter_pa() instead of pmap_enter()
so that we don't need to allocate memory to create the mapping.
this should help with getting crash dumps more reliably.
2008-07-16 03:22:04 +00:00
matt
1f9c1ede20 Revamp bookkeeping for pages entered by pmap_kenter_pa. Keep track of them
on pvlists so that the cacheability can be properly tracked.
2008-07-16 00:19:57 +00:00
perry
e2eca0cfb3 make vers.c also depend on the script that builds vers.c 2008-07-16 00:16:17 +00:00
matt
ad65eb54bc Add PMAP_KMPAGE flag for pmap_kenter_pa. This allows pmaps to know that
the page being entered is being for the kernel memory allocator.  Such pages
should have no references and don't need bookkeeping.
2008-07-16 00:11:27 +00:00
perry
ac6f476b2b Update the version numbers following commit, and make them all identical. 2008-07-15 23:16:26 +00:00
tonnerre
5bc4657a0a Regen. 2008-07-15 22:27:31 +00:00
tonnerre
8d218a9ef7 Add some PCI IDs from the Thinkpad T61/X61/R61 series as observed in
PR 37988 and on my own T61.
2008-07-15 22:26:42 +00:00
christos
460ae70d0a make l_flags contain more stuff. Fixes top thread display where system processes
were always displayed.
2008-07-15 22:25:30 +00:00
perry
17bba44783 Change the x86 boot blocks so they don't include builder login and date.
For now, we include kernel revision as a way of allowing users to
notice that boot blocks have gotten very old, so the first line of the
printout looks like this (depending on the particular block):

  >> NetBSD/x86 BIOS Boot, Revision 3.4 (from NetBSD 5.0)

This may be changed a bit pending feedback. (Some people think that
the kernel revision shouldn't be there at all, for example.)

Part of the project to assure that bit-identical sources produce
bit-identical release binaries.
2008-07-15 21:29:37 +00:00
perry
9b5b7fcda3 Add the kernel revision to vers.c, as in:
const char bootprog_kernrev[] = "4.99.70";

For now, we still also include the builder name and date and such, so
that we don't break anything, but those are (probably) on the way out.

Part of the "bit-identical sources yield bit-identical release files"
project.
2008-07-15 20:10:06 +00:00
pooka
aa652b7453 Nuke the "-p" argument to ukfs_mkdir(). It's not a particularly
brilliant idea to provide that functionality at this level.
2008-07-15 16:21:19 +00:00
dyoung
2e4b9b5581 Make acpilid(4) detachable. 2008-07-15 16:19:37 +00:00
christos
aa389c698d Use more timespecs internally. From Alexander Shishkin and me.
Welcome to 4.99.70, 30 more to go for 100.
2008-07-15 16:18:08 +00:00
dyoung
03df89373a Introduce acpi_clear_wake_gpe() to undo acpi_set_wake_gpe().
Extract common code from acpi_clear_wake_gpe() and acpi_set_wake_gpe(),
creating acpi_wake_gpe_helper().
2008-07-15 16:15:28 +00:00
christos
799fe367ce explicitly set birthtime to VNOVAL, since there is no such thing in nfsv{2,3} 2008-07-15 16:06:58 +00:00
reinoud
e4424d53b1 Keep the directory to read '..' from locked until its dirent is read and
its location is extracted.

Also lock the source directory so its contents can safely be changed...
patch from tmpfs.
2008-07-15 15:49:05 +00:00
pooka
e6891fd321 Honor PGO_FREE in putpages.
Fixes cp-then-rm ukfs panic reported by Arnaud Ysmal.
2008-07-15 15:04:42 +00:00
hannken
f67742b3c8 expunge_ufs*(): Use the buffer cache to update the inodes on the snapshot like
the rest of snapshot creation does.
2008-07-15 08:20:56 +00:00
cegger
fddc51df07 Configure /dev/power for domu as in src/sys/arch/i386/conf/majors.i386.
See discussion on port-xen for the details at http://mail-index.netbsd.org/port-xen/2008/06/14/msg003904.html
2008-07-15 06:50:02 +00:00
hannken
0d6dbadf45 bdwrite(): The COWDONE check may fire for special vnodes with mounted
non-ffs file system.  Remove VBLK vnodes from the check.

Should fix PR kern/38892
2008-07-14 16:22:42 +00:00
matt
cfd3ec1da9 Remove OMAP gunk in com_activate, it's not needed.
Spotted by Matthias Drochner.
2008-07-14 15:40:55 +00:00
drochner
cc7bfbe664 set the buffer's "resid" if a raw SCSI command fails, otherwise a
diagnostic check in kern_physio is set up
2008-07-14 12:36:44 +00:00
blymn
a7db4edf3b Take care not to dereference NULL datapointer from fd table
Make output more readable and label what lock we are examining.
2008-07-14 10:15:11 +00:00
rmind
7c330ba82f Fix the locking against oneself, migrate LWPs only from runqueue.
Part of the fix for PR/38882.
2008-07-14 01:27:15 +00:00
rmind
4f91cff093 - Disallow setting of affinity for zombie LWPs.
- Fix the possible NULL dereference when LWP exiting.
- Fix the inhertance of affinity.
2008-07-14 01:19:37 +00:00
rmind
d489642431 sched_migratable: add KASSERT since this function cannot be called
without lock held now.  Few cosmetic changes, while here.
2008-07-14 01:18:10 +00:00
chris
889823f09a Remove repeated setting of cpuctl bit for vectors being high in cpu setup
code.

Pointed out in private email by Kevin Lo.
2008-07-13 09:12:14 +00:00
gmcgarry
fb80c8cd2d Disable INCLUDE_CONFIG_FILE if compiling with PCC, since PCC cannot
handle 80KB string literals.  Documented as hack.
2008-07-12 11:50:07 +00:00
tsutsui
b7ae6e7fa1 Set SDA High (it means turning off open-collector driver
regardless of DIR() on the formal I2C hardware implementation)
during DIR() is set to INPUT. Some MD drivers might assume it.

tl(4) still works with this change.
2008-07-12 02:11:32 +00:00
tsutsui
ce1887dc69 - if SDA is set to low during DIR(INPUT) in gpiic_set_bits(),
store the SDA status into softc and enable it once after
  DIR() is changed to OUTPUT in gpiic_set_dir()
- remove "Read in output mode" warning in gpiic_read_bits()
  since it's a vaild operation (to read SCL during SDA output is low)

Tested by kiyohara@ on OPENBLOCKS266.
2008-07-12 02:04:07 +00:00
dyoung
4f2602786e Don't write a register on the device until PCI I/O access has been
enabled on both the bus bridge and on the device.
2008-07-11 21:02:53 +00:00
dyoung
fa90a906d3 Don't write a memory-mapped register on the device until PCI memory
access has been enabled on both the bus bridge and on the device.
2008-07-11 20:57:51 +00:00
kiyohara
c8c9d3de59 Apply changes missed in "cardbus interrupt stuff cleanup" by drochner@:
http://mail-index.netbsd.org/source-changes/2008/06/24/msg207339.html
2008-07-11 17:50:45 +00:00
reinoud
b62b494f22 Fix spelling in comment 2008-07-11 15:16:53 +00:00
cube
ec7745c68a device_t split fallout [hi joerg!] 2008-07-11 11:58:37 +00:00
cyber
76c8d40dd1 Add IANA allocation and header for RFC 5006 (RA RDNSS) IPv6 Router
Advertisement option.
2008-07-11 07:35:05 +00:00
skrll
84009eaecf English improvement in comments.
"seems good to me :)" from yamt.
2008-07-11 07:09:18 +00:00
simonb
27ae933bee Fix potential 32-bit overflow problem in the blockpref code.
mlelstv@ points out FreeBSD fixed the same thing a couple of years
ago - here's the commit message they used on rev 1.127:

   Fixes a bug that caused UFS2 filesystems bigger than 2TB to
   prematurely report that they were full and/or to panic the kernel
   with the message ``ffs_clusteralloc: allocated out of group''.

   Submitted by:   Henry Whincup <henry@jot.to>
2008-07-11 05:31:44 +00:00
reinoud
4503919107 Fix chtimes permission checking. This sanitised version is hopefully DTRT. 2008-07-10 17:38:31 +00:00
reinoud
cb6e2404af On node creation, follow tmpfs and UFS by generating the uid/gid pair. This
fixes the lack of file ownership preservation on file/directory creation.

See PR kern/39124
2008-07-10 16:41:00 +00:00
tsutsui
1644c2b297 Cosmetic changes to sync with other m68k ports:
- rename ipl2spl_table[] to ipl2psl_table[] and make it uint16_t
- rename _spl member in ipl_cookie_t to _psl
- sort some splbio entries
2008-07-10 16:14:16 +00:00
tsutsui
4c483f361d Remove __P(). 2008-07-10 16:07:30 +00:00
nakayama
edb7368453 Use proper CCR. 2008-07-10 15:38:40 +00:00
reinoud
0381f71bf3 Allow the renaming of directories *within* their current directory. No
cross-directory renaming is allowed yet.
2008-07-10 15:29:51 +00:00
nakayama
3eac605929 sparc64_ipi_save_fpstate:
- use primary MMU context for consistency with other trap/interrupt handlers.

sparc64_ipi_save_fpstate, savefpstate:
- avoid storing fp registers as we can.

sparc64_ipi_save_fpstate, savefpstate, loadfpstate:
- remove unaligned case since buffers allocated with pool_cache are ensured
  64-byte aligned.

Ok by martin@.
2008-07-10 15:23:58 +00:00
nakayama
b74ec3e6b6 Switch fpstate buffer allocation from malloc to pool_cache.
Ok by martin@.
2008-07-10 15:04:41 +00:00
reinoud
e3eced36a8 Clarifying comments 2008-07-10 14:16:02 +00:00
blymn
380be0c111 Fix indents. 2008-07-10 13:28:23 +00:00
blymn
8a19e9911c Add a show files command that prints the vnodes associated with a
given struct proc and, if LOCKDEBUG is built in, the lock status of
the uvmobject.
2008-07-10 12:42:24 +00:00
blymn
8070795214 Whitespace clean up. 2008-07-10 12:38:28 +00:00
cegger
5a5486f956 make this compile again 2008-07-10 05:15:32 +00:00