Ben Gras
bdab3c4cfb
Library call for cpu features; make kernel and vm use this to query cpu
...
features (specifically: 4MB pages and TLB global bit). Only enable
these features in CR4 if available. 4MB pages to be used in the near
future.
2009-05-15 17:07:36 +00:00
Ben Gras
d0b6e76bfb
correct the revision variable used in /etc/version
2009-05-15 13:02:23 +00:00
Arun Thomas
d749b3b965
-Remove qemu_pci boot variable. Useres no longer need to set qemu_pci when
...
booting MINIX under QEMU/KVM.
-Kept the diagnostic message, however.
2009-05-14 19:07:37 +00:00
Ben Gras
143422fa0a
C CPUID interface.
2009-05-14 15:55:28 +00:00
Arun Thomas
db4faccbf9
-Installation info is on the wiki now, so remove setup guides and update
...
README.
-Remove obsolete FAT partitioning utility.
-Update startup banner.
2009-05-14 15:54:02 +00:00
David van Moolenbroek
c2aef85eda
Clear trace bit for child on fork.
...
Without this, a forking single-stepped process will have its child
die from a TRAP signal right away.
2009-05-13 21:58:10 +00:00
David van Moolenbroek
fe8c612aa4
support in 'mount' for specifying file system type and options
2009-05-13 15:39:44 +00:00
David van Moolenbroek
3affa4c796
'service' null pointer dereference fix
2009-05-12 16:52:00 +00:00
Ben Gras
dd56aa321f
to let tty run with its own page table (instead of with the kernel identity
...
map table), make it map in video memory.
sadly, this breaks tty in non-paged mode.
happily, this simplifies the code by throwing out the messing
around with segments, and throws out vidcopy.s.
2009-05-12 12:43:18 +00:00
Ben Gras
909c1bb8a7
don't bother with unmapping physical memory in non-sanitycheck mode.
2009-05-12 11:51:53 +00:00
Ben Gras
581e68433a
basic sparepage optimisation
...
some simplification of linear/virtual address translation
(less hardcoding and more use of arch_*2* functions)
2009-05-12 11:38:29 +00:00
Ben Gras
f9e81cb57b
remove bogus arch_map2vir calls
2009-05-12 11:36:15 +00:00
Ben Gras
6fad23f500
don't call this function with a bogus addr (done by region.c print code)
2009-05-12 11:35:49 +00:00
Ben Gras
e3ca89c0be
more sanity checking. sanity checking disabled by default.
...
give every process a full pagetable by default now.
first step to disabling kernel page table code (processes
might not have page tables -> no address translation).
2009-05-12 11:35:01 +00:00
Ben Gras
ebe050dbe2
large page size constant.
2009-05-12 09:23:27 +00:00
Ben Gras
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.
2009-05-11 19:11:37 +00:00
Ben Gras
ade4c03b73
Don't build arch objs more than once.
2009-05-11 19:05:45 +00:00
Ben Gras
7c88767f75
remove debug msg
2009-05-11 11:57:20 +00:00
David van Moolenbroek
9a01c828c8
VFS-FS error codes: better safe than sorry
2009-05-11 11:30:04 +00:00
David van Moolenbroek
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).
2009-05-11 10:02:28 +00:00
David van Moolenbroek
dcfaf50f79
wrong field index in at_wini env_parse call
2009-05-10 16:58:23 +00:00
David van Moolenbroek
a2485b346c
potential buffer overruns in env_* routines
2009-05-10 16:54:37 +00:00
David van Moolenbroek
e08b38a5c4
regression fix: vfs lookup passes incorrect chroot information after crossing mountpoints
2009-05-09 17:53:22 +00:00
David van Moolenbroek
021808b12a
fix for commands that try to include mfs constants from vfs
2009-05-08 20:37:06 +00:00
David van Moolenbroek
293be6b80b
quick cleanup of old mfs cruft from vfs
2009-05-08 14:12:41 +00:00
Ben Gras
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.
added sanity checks, turned off by default.
made the {NOT_,}{SUSPENDING,REVIVING} constants weirder to
help sanity checking.
2009-05-08 13:56:41 +00:00
David van Moolenbroek
113b1ec5f3
remove unused global variable from vfs
2009-05-08 13:54:01 +00:00
Ben Gras
ece26e2731
don't suspend the process as a side-effect if
...
device returns SUSPEND if it's select; select already
does this.
2009-05-08 13:50:29 +00:00
David van Moolenbroek
2a48c4ad48
Reenable RS table dump from IS (Shift+F6)
2009-05-08 12:38:14 +00:00
David van Moolenbroek
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 .
2009-05-08 12:29:57 +00:00
David van Moolenbroek
4af032bbfe
Kernel interrupt hook management fixes:
...
- properly assign unique hook IDs
- after hook removal, remove hook-specific interrupt disable flag
2009-05-07 14:52:07 +00:00
Ben Gras
a38287067a
disable scary looking debug messages.
2009-05-07 09:58:16 +00:00
Ben Gras
746e138036
turn off scary looking debug messages.
2009-05-07 09:57:43 +00:00
Ben Gras
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
2009-05-06 15:38:32 +00:00
Ben Gras
fd7ef243e4
cleanup of vfs shutdown logic; makes clean unmounts easier (but
...
needs checking if fp_wd or fp_rd is NULL before use)
2009-04-29 16:59:18 +00:00
Ben Gras
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)
2009-04-27 16:13:51 +00:00
Ben Gras
bb23344283
spurious debug
2009-04-27 16:11:38 +00:00
Ben Gras
02f047d008
lose -s flag for umount.
2009-04-27 14:23:57 +00:00
Ben Gras
a12113e476
process restarts are pretty rare/serious.
2009-04-27 14:07:47 +00:00
Ben Gras
4593eaec24
minor fixes to install script - allow 8kB blocksize (necessary for
...
large filesystems)
2009-04-27 12:59:49 +00:00
Ben Gras
60e7602aad
When we receive a PROC_EVENT message from PM, exit nicely; avoids
...
annoying graceful RS timeout on unmount.
2009-04-27 12:02:31 +00:00
Ben Gras
e5209d51f1
bad dma fallback to pio mode
2009-04-27 11:53:11 +00:00
Ben Gras
3b3e3b36c2
some more vm bits.
2009-04-23 15:21:03 +00:00
Ben Gras
ef8a741301
set global flag for kernel pages, so tlb entries for kernel aren't thrown
...
away on cr3 reload. minor optimization.
2009-04-23 15:11:16 +00:00
Arun Thomas
e9e1ae1cfc
Move queue.h to include/sys so that it can be used elsewhere. Pull in
...
FreeBSD's r179210 queue.h.
2009-04-22 20:02:39 +00:00
Arun Thomas
f149733e16
Disable IOMMU warnings.
2009-04-22 16:53:46 +00:00
Arun Thomas
3b37103fa3
Make the rtl8139 and orinoco drivers handle the system shutdown case
...
like other drivers. Also, some minor cleanups.
2009-04-22 12:42:37 +00:00
Ben Gras
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.
some a sanity check of SLAB-allocated pointers.
vm gets its own _exit and __exit like PM, so the stock (library) panic works.
2009-04-22 12:39:29 +00:00
Ben Gras
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()
reported by Joren l'Ami.
2009-04-17 13:46:37 +00:00
Ben Gras
e5717f7aef
clarify not found error message a bit.
2009-04-14 14:16:24 +00:00