d2caeb6146
start all processes, including VM, in VM_PROCSTART in linear address space, to make space for kernel to be able to map in things below there.
Ben Gras2009-05-11 19:11:37 +00:00
ade4c03b73
Don't build arch objs more than once.
Ben Gras2009-05-11 19:05:45 +00:00
0ac1aaccca
Limited support for nested FS->VFS requests during VFS->FS call. - Changed VFS-FS protocol to only store OK or negative error code in m_type field of reply messages. - Changed VFS to treat nonzero positive replies from FS as requests. - Added backwards compatibility to VFS and MFS. No protection of global data structures is provided in VFS, so many VFS calls cannot be made safely by FS servers during many FS calls. Use with caution (or, preferably, not at all).
David van Moolenbroek2009-05-11 10:02:28 +00:00
dc1238b7b9
make unpause() decrease susp_count, as it shouldn't be decreased if the process was REVIVING. (susp_count doesn't count those processes.) this together with dev_io SELECT suspend side effect for asynch. character devices solves the hanging pipe bug. or at last vastly improves it.
Ben Gras2009-05-08 13:56:41 +00:00
ece26e2731
don't suspend the process as a side-effect if device returns SUSPEND if it's select; select already does this.
Ben Gras2009-05-08 13:50:29 +00:00
e9e347f5b6
Fix for large transfer operations not advancing buffer address offset when DMA transfer unit is smaller than given buffer size. Bug tracker item #82.
David van Moolenbroek2009-05-08 12:29:57 +00:00
4af032bbfe
Kernel interrupt hook management fixes: - properly assign unique hook IDs - after hook removal, remove hook-specific interrupt disable flag
David van Moolenbroek2009-05-07 14:52:07 +00:00
a38287067a
disable scary looking debug messages.
Ben Gras2009-05-07 09:58:16 +00:00
746e138036
turn off scary looking debug messages.
Ben Gras2009-05-07 09:57:43 +00:00
8b72765e39
ignore errors of pipe read (can happen with shutdown now, now that all fd's are closed neatly in vfs), change messaging in unexpected restarts
Ben Gras2009-05-06 15:38:32 +00:00
fd7ef243e4
cleanup of vfs shutdown logic; makes clean unmounts easier (but needs checking if fp_wd or fp_rd is NULL before use)
Ben Gras2009-04-29 16:59:18 +00:00
b7e23b70e8
- delete unused .h files - slight code cleanup - neater exit procedure: exit when unmount message received and kill signal (from RS 'down' or reboot/shutdown) received (speed up unmount, but don't confuse VFS by exiting before/during unmount msg)
Ben Gras2009-04-27 16:13:51 +00:00
a12113e476
process restarts are pretty rare/serious.
Ben Gras2009-04-27 14:07:47 +00:00
4593eaec24
minor fixes to install script - allow 8kB blocksize (necessary for large filesystems)
Ben Gras2009-04-27 12:59:49 +00:00
60e7602aad
When we receive a PROC_EVENT message from PM, exit nicely; avoids annoying graceful RS timeout on unmount.
Ben Gras2009-04-27 12:02:31 +00:00
e5209d51f1
bad dma fallback to pio mode
Ben Gras2009-04-27 11:53:11 +00:00
ef8a741301
set global flag for kernel pages, so tlb entries for kernel aren't thrown away on cr3 reload. minor optimization.
Ben Gras2009-04-23 15:11:16 +00:00
e9e1ae1cfc
Move queue.h to include/sys so that it can be used elsewhere. Pull in FreeBSD's r179210 queue.h.
Arun Thomas2009-04-22 20:02:39 +00:00
3b37103fa3
Make the rtl8139 and orinoco drivers handle the system shutdown case like other drivers. Also, some minor cleanups.
Arun Thomas2009-04-22 12:42:37 +00:00
2dd02cc560
mark pages whose refcount were >1 and drop to 1 and are read/write writable in the pagetable right away instead of waiting for a pagefault. minor optimization.
Ben Gras2009-04-22 12:39:29 +00:00
e0f3a5acf1
- enable ipc warnings by default - ipc checking code in kernel didn't properly catch the sendrec() to self case; added special case check - triggered by PM using stock panic() - needs its own _exit()
Ben Gras2009-04-17 13:46:37 +00:00
e5717f7aef
clarify not found error message a bit.
Ben Gras2009-04-14 14:16:24 +00:00
4cd6875d05
don't flush output for SIGWINCH. found by Joren l'Ami.
Ben Gras2009-04-06 09:39:42 +00:00
65a9f0253b
unnecessary debugging message
Ben Gras2009-04-02 16:43:35 +00:00
9647fbc94e
moved type and constants for random data to include file; added consistency check in random; added source of randomness internal to random using timing; only retrieve random bins that are full.
Ben Gras2009-04-02 15:24:44 +00:00
51596bc608
print who the message is from.
Ben Gras2009-04-02 11:56:50 +00:00
73ee8b8b99
don't make susp_count negative.
Ben Gras2009-04-02 11:44:26 +00:00
b560a36b20
trace fix contributed by Joren l'Ami
Ben Gras2009-04-02 11:38:23 +00:00
dc9a1bc30c
increment nph when printing physical regions; suggested by Guanqun Lu
Ben Gras2009-03-31 14:26:24 +00:00
45d54cf1b0
change DmaMode checks from DEV_WRITE to DEV_WRITE_S
Ben Gras2009-03-31 14:23:33 +00:00
95ff97d4fb
readclock easily runs out of stack with so little of it.
Ben Gras2009-02-06 16:28:35 +00:00
eafd4730ea
check for devices that would need more blocks than 32 bits allow..
Ben Gras2009-02-05 16:30:20 +00:00
6e86e6706d
fix compiler warning; missing memory range check
Ben Gras2009-02-05 13:00:03 +00:00
bb18be5d06
simplified the code a little, corrected some hasty statements.
Ben Gras2009-02-04 17:30:01 +00:00
6a0e8e3b80
Added a separate keymap for escaped scancodes. This makes the code a little cleaner (escaped scancodes are less of a special case) and lets us be completely flexible when assigning meaning to them.
Ben Gras2009-02-04 17:04:16 +00:00
ba4687e519
the escaped keymap is usually the same as the original.
Ben Gras2009-02-04 16:55:30 +00:00
113932905f
disable interrupts if necessary in kernel debug code to dump all process stacks.
Ben Gras2009-01-29 15:13:54 +00:00
80f5eea8b8
If serial debugging in the boot monitor / kernel is enabled, don't touch the serial line in use for it (mostly so that input isn't eaten by tty).
Ben Gras2009-01-29 15:06:40 +00:00
d0a2e6b2f4
use library panic, doesn't need its own any more.
Ben Gras2009-01-29 14:41:44 +00:00
c628f24bc2
moved stacktrace to sysctl, as vmctl is very privileged so can't be used outside VM. IS code cleanup. added stacktrace feature to IS.
Ben Gras2009-01-27 12:54:33 +00:00
3cc092ff06
. new kernel call sysctl for generic unprivileged system operations; now used for printing diagnostic messages through the kernel message buffer. this lets processes print diagnostics without sending messages to tty and log directly, simplifying the message protocol a lot and reducing difficulties with deadlocks and other situations in which diagnostics are blackholed (e.g. grants don't work). this makes DIAGNOSTICS(_S), ASYN_DIAGNOSTICS and DIAG_REPL obsolete, although tty and log still accept the codes for 'old' binaries. This also simplifies diagnostics in several servers and drivers - only tty needs its own kputc() now. . simplifications in vfs, and some effort to get the vnode references right (consistent) even during shutdown. m_mounted_on is now NULL for root filesystems (!) (the original and new root), a less awkward special case than 'm_mounted_on == m_root_node'. root now has exactly one reference, to root, if no files are open, just like all other filesystems. m_driver_e is unused.
Ben Gras2009-01-26 17:43:59 +00:00
4984a86f32
don't hang on disappearing filesystem.
Ben Gras2009-01-26 13:02:41 +00:00