f9e81cb57b
remove bogus arch_map2vir calls
Ben Gras
2009-05-12 11:36:15 +00:00
6fad23f500
don't call this function with a bogus addr (done by region.c print code)
Ben Gras
2009-05-12 11:35:49 +00:00
e3ca89c0be
more sanity checking. sanity checking disabled by default.
Ben Gras
2009-05-12 11:35:01 +00:00
ebe050dbe2
large page size constant.
Ben Gras
2009-05-12 09:23:27 +00:00
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 Gras
2009-05-11 19:11:37 +00:00
ade4c03b73
Don't build arch objs more than once.
Ben Gras
2009-05-11 19:05:45 +00:00
7c88767f75
remove debug msg
Ben Gras
2009-05-11 11:57:20 +00:00
9a01c828c8
VFS-FS error codes: better safe than sorry
David van Moolenbroek
2009-05-11 11:30:04 +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 Moolenbroek
2009-05-11 10:02:28 +00:00
dcfaf50f79
wrong field index in at_wini env_parse call
David van Moolenbroek
2009-05-10 16:58:23 +00:00
a2485b346c
potential buffer overruns in env_* routines
David van Moolenbroek
2009-05-10 16:54:37 +00:00
e08b38a5c4
regression fix: vfs lookup passes incorrect chroot information after crossing mountpoints
David van Moolenbroek
2009-05-09 17:53:22 +00:00
021808b12a
fix for commands that try to include mfs constants from vfs
David van Moolenbroek
2009-05-08 20:37:06 +00:00
293be6b80b
quick cleanup of old mfs cruft from vfs
David van Moolenbroek
2009-05-08 14:12:41 +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 Gras
2009-05-08 13:56:41 +00:00
113b1ec5f3
remove unused global variable from vfs
David van Moolenbroek
2009-05-08 13:54:01 +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 Gras
2009-05-08 13:50:29 +00:00
2a48c4ad48
Reenable RS table dump from IS (Shift+F6)
David van Moolenbroek
2009-05-08 12:38:14 +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 Moolenbroek
2009-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 Moolenbroek
2009-05-07 14:52:07 +00:00
746e138036
turn off scary looking debug messages.
Ben Gras
2009-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 Gras
2009-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 Gras
2009-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 Gras
2009-04-27 16:13:51 +00:00
bb23344283
spurious debug
Ben Gras
2009-04-27 16:11:38 +00:00
02f047d008
lose -s flag for umount.
Ben Gras
2009-04-27 14:23:57 +00:00
a12113e476
process restarts are pretty rare/serious.
Ben Gras
2009-04-27 14:07:47 +00:00
4593eaec24
minor fixes to install script - allow 8kB blocksize (necessary for large filesystems)
Ben Gras
2009-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 Gras
2009-04-27 12:02:31 +00:00
e5209d51f1
bad dma fallback to pio mode
Ben Gras
2009-04-27 11:53:11 +00:00
3b3e3b36c2
some more vm bits.
Ben Gras
2009-04-23 15:21:03 +00:00
ef8a741301
set global flag for kernel pages, so tlb entries for kernel aren't thrown away on cr3 reload. minor optimization.
Ben Gras
2009-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 Thomas
2009-04-22 20:02:39 +00:00
f149733e16
Disable IOMMU warnings.
Arun Thomas
2009-04-22 16:53:46 +00:00
3b37103fa3
Make the rtl8139 and orinoco drivers handle the system shutdown case like other drivers. Also, some minor cleanups.
Arun Thomas
2009-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 Gras
2009-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 Gras
2009-04-17 13:46:37 +00:00
e5717f7aef
clarify not found error message a bit.
Ben Gras
2009-04-14 14:16:24 +00:00
4cd6875d05
don't flush output for SIGWINCH. found by Joren l'Ami.
Ben Gras
2009-04-06 09:39:42 +00:00
65a9f0253b
unnecessary debugging message
Ben Gras
2009-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 Gras
2009-04-02 15:24:44 +00:00
51596bc608
print who the message is from.
Ben Gras
2009-04-02 11:56:50 +00:00
73ee8b8b99
don't make susp_count negative.
Ben Gras
2009-04-02 11:44:26 +00:00
b560a36b20
trace fix contributed by Joren l'Ami
Ben Gras
2009-04-02 11:38:23 +00:00
dc9a1bc30c
increment nph when printing physical regions; suggested by Guanqun Lu
Ben Gras
2009-03-31 14:26:24 +00:00
45d54cf1b0
change DmaMode checks from DEV_WRITE to DEV_WRITE_S
Ben Gras
2009-03-31 14:23:33 +00:00
9e7837f63c
Tweak 64-bit integer type declarations; Fixes GCC sysutil build breakage.
Arun Thomas
2009-03-30 17:07:39 +00:00
3bb80322d9
suppress more mostly-harmless messages.
Ben Gras
2009-03-26 16:11:27 +00:00
2d1c884e35
suppress these noisy, alarming messages.
Ben Gras
2009-03-26 15:56:08 +00:00
cd2d85c13d
no 'small minix' option
Ben Gras
2009-03-26 15:54:09 +00:00
f56316a168
don't need to explicitly enable lance any more.
Ben Gras
2009-03-26 15:23:07 +00:00
cf8c4cc851
ignore linmem. don't disable the driver by default.
Ben Gras
2009-03-26 15:22:08 +00:00
4e2291fff2
SizeMB isn't used any more.
Ben Gras
2009-03-26 13:19:14 +00:00
ec50fa00c7
don't execute hlt in real mode. workaround for getting minix under qemu kvm. Ameya, ape800 at few.vu.nl.
Ben Gras
2009-03-24 16:08:10 +00:00
fc11209417
more inodes than default for /usr on cd.
Ben Gras
2009-03-24 15:41:51 +00:00
46d28c6ffb
workaround for qemu writing the configuration byte on the AUX port pre-0.10.
Ben Gras
2009-03-24 15:41:18 +00:00
d8d63f0e07
make USRMB settable
Ben Gras
2009-03-19 14:14:57 +00:00
e5079dfc02
multiple ram disks; also make release process use this so temporary partitions aren't needed any more.
Ben Gras
2009-03-19 13:48:19 +00:00
347fa61675
Increase ARG_MAX
Arun Thomas
2009-03-17 07:38:35 +00:00
5eb353ebbc
Update setup's NIC selection dialog
Arun Thomas
2009-03-06 17:45:22 +00:00
7ce582c783
Define 64 bit integer types when compiling with GCC
Arun Thomas
2009-03-06 16:56:46 +00:00
3f6e061948
fix error check
Ben Gras
2009-03-04 17:38:27 +00:00
a742aed5ad
only assign value if request went ok.
Ben Gras
2009-02-19 17:14:36 +00:00
cd37a0299c
Check for firstdatazone overflow.
Ben Gras
2009-02-17 13:01:25 +00:00
733d6c1ef6
help debugging cause of these sometimes odd calls.
Ben Gras
2009-02-17 12:09:59 +00:00
570b9cd753
Checking wrong inode pointer for refcount in mount (!)
Ben Gras
2009-02-17 09:50:02 +00:00
379be7f0fb
A serial ata pci card we have.
Ben Gras
2009-02-16 13:20:10 +00:00
1f3dd53283
We don't install the bzip2 manual, much less four copies of it, and it's quite big.
Ben Gras
2009-02-16 10:01:22 +00:00
01f1132eac
let at_wini see ata raid controllers
Ben Gras
2009-02-12 12:28:28 +00:00
59e972f074
let drivers allocate memory at 64k physical boundary.
Ben Gras
2009-02-12 12:26:08 +00:00
6ac0338584
Don't declare the cprof buf if CPROFILE isn't on.
Ben Gras
2009-02-06 16:31:28 +00:00
b696823379
stingy stack.
Ben Gras
2009-02-06 16:29:00 +00:00
95ff97d4fb
readclock easily runs out of stack with so little of it.
Ben Gras
2009-02-06 16:28:35 +00:00
eafd4730ea
check for devices that would need more blocks than 32 bits allow..
Ben Gras
2009-02-05 16:30:20 +00:00
6e86e6706d
fix compiler warning; missing memory range check
Ben Gras
2009-02-05 13:00:03 +00:00
bb18be5d06
simplified the code a little, corrected some hasty statements.
Ben Gras
2009-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 Gras
2009-02-04 17:04:16 +00:00
ba4687e519
the escaped keymap is usually the same as the original.
Ben Gras
2009-02-04 16:55:30 +00:00
113932905f
disable interrupts if necessary in kernel debug code to dump all process stacks.
Ben Gras
2009-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 Gras
2009-01-29 15:06:40 +00:00
d0a2e6b2f4
use library panic, doesn't need its own any more.
Ben Gras
2009-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 Gras
2009-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 Gras
2009-01-26 17:43:59 +00:00
4984a86f32
don't hang on disappearing filesystem.
Ben Gras
2009-01-26 13:02:41 +00:00
b784e88026
prototype
Ben Gras
2009-01-22 17:09:45 +00:00
539192f4c3
must be unsigned for base+limit check to to work
Ben Gras
2009-01-22 13:05:20 +00:00
36c12c1251
package list sanity check
Ben Gras
2009-01-20 15:49:42 +00:00
0f41416100
minor cleanup, extra check
Ben Gras
2009-01-20 15:47:00 +00:00
723a756c14
reduce kernel buffer size.
Ben Gras
2009-01-20 13:57:24 +00:00
86e7e4828e
sanity check function
Ben Gras
2009-01-20 13:43:18 +00:00
45ec30f6af
mostly harmless sanity checks.
Ben Gras
2009-01-20 13:43:00 +00:00
6a267baeb8
simplification suggested by Mark Farnsworth
Ben Gras
2009-01-15 14:42:40 +00:00
36909196cf
make bootinfo valid immediately
Ben Gras
2009-01-14 08:56:20 +00:00
4f08002c2c
RS needs a bit more memory
Ben Gras
2009-01-14 08:55:48 +00:00
ef2867de41
don't print if we're already printing to serial.
Ben Gras
2009-01-14 08:54:17 +00:00
b4934f0e12
debug twiddle.
Ben Gras
2009-01-14 08:52:50 +00:00
b450c33377
sometime this will be a new release.
Ben Gras
2009-01-14 08:38:37 +00:00
5cbcc11ed3
compile fix for new lock timings
Ben Gras
2009-01-12 22:14:43 +00:00