Erik van der Kouwe
d1b4c5be5b
Removed obsolete declarations in include/ipc.h
2009-08-16 15:12:07 +00:00
David van Moolenbroek
323f0abdd6
Support for setitimer(ITIMER_VIRTUAL/ITIMER_PROF). New test (41) for setitimer.
2009-08-15 21:37:26 +00:00
David van Moolenbroek
d82e260a90
Support for setitimer(ITIMER_REAL).
2009-08-15 16:09:32 +00:00
David van Moolenbroek
1a9e07b0e5
PM: fix ptrace(T_EXIT) 'exit_proc: not idle' race condition.
2009-07-11 13:22:56 +00:00
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
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
Ben Gras
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.
2009-04-02 15:24:44 +00:00
Ben Gras
e5079dfc02
multiple ram disks; also make release process use this
...
so temporary partitions aren't needed any more.
2009-03-19 13:48:19 +00:00
Ben Gras
59e972f074
let drivers allocate memory at 64k physical boundary.
2009-02-12 12:26:08 +00:00
Ben Gras
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.
2009-01-27 12:54:33 +00:00
Ben Gras
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.
2009-01-26 17:43:59 +00:00
Ben Gras
723a756c14
reduce kernel buffer size.
2009-01-20 13:57:24 +00:00
Ben Gras
b450c33377
sometime this will be a new release.
2009-01-14 08:38:37 +00:00
Ben Gras
b82588848d
cprofile always on; data type and definitions to include file
2009-01-09 21:40:29 +00:00
Ben Gras
128a0508c0
timing measurement code out of kernel and into library
...
(so other components can use it too)
2009-01-09 16:15:15 +00:00
Ben Gras
b740ff055f
if serial output is enabled in the boot monitor, on the first serial line,
...
enable serial debug output in the kernel too.
2008-12-19 13:21:42 +00:00
Ben Gras
f0000078c3
make kernel leave a page-sized gap in its code and data to not be
...
mapped in if so configured.
2008-12-18 14:30:55 +00:00
Ben Gras
710f44c4b8
added code for debugging pagefaults
2008-12-16 14:33:53 +00:00
Ben Gras
4be5b6f437
2008-12-16 14:32:56 +00:00
Ben Gras
a306c63e0b
2008-12-15 15:16:26 +00:00
Ben Gras
0cd26cd1c0
DEV_BOOT is obsolete.
2008-12-11 16:50:01 +00:00
Ben Gras
9bbee4f1ce
2008-12-11 14:10:37 +00:00
Ben Gras
e75e231abc
VMCTL_INCSP to increase process stack pointer.
...
(Used to change the virtual address of the stack before a process has
started executing.)
2008-12-11 14:10:17 +00:00
Ben Gras
682b9a872e
. ser_putc() goes to library
...
. another cmd for getinfo - obtaining current HZ value
2008-12-11 14:09:38 +00:00
Ben Gras
ef5b6f8cdf
. HZ no longer constant, but settable at boot time; default is DEFAULT_HZ (60)
...
. some kernel flags to <minix/const.h>
2008-12-11 14:08:53 +00:00
Ben Gras
9b33056d2b
make allocmem accept and return values in bytes, ramdisk expects this.
2008-11-19 15:40:17 +00:00
Ben Gras
c078ec0331
Basic VM and other minor improvements.
...
Not complete, probably not fully debugged or optimized.
2008-11-19 12:26:10 +00:00
Philip Homburg
60c1131b94
SYS_MAPDMAx -> SYS_MAPDMA, added IOMMU_MAP
2008-02-25 14:39:19 +00:00
Philip Homburg
82cb46af0a
Changes for asynchronous interface to character specials.
...
Removed DEV_SEL_WATCH. Added SYS_MAPDMAx. New message type (DIAG_REPL) for
replies to DIAGNOSTICS(_S).
2008-02-21 15:57:35 +00:00
Philip Homburg
698df384c3
Extra calls to PM for I/O MMUs.
2008-02-21 15:51:27 +00:00
Philip Homburg
cb2b7ada63
Nonblocking send.
2008-02-21 15:50:09 +00:00
Philip Homburg
fc4593fb42
List of service/driver names that are allowed as IPC endpoints for a new
...
driver/service.
2008-02-21 15:49:44 +00:00
Philip Homburg
9c3f85d14f
Better interface for sys_times.
2007-08-16 13:16:26 +00:00
Philip Homburg
6b0db0d181
Many changes to the VFS/FS interface.
2007-08-07 11:58:03 +00:00
Philip Homburg
d9166df3f7
Added FS_READY (from vfsif.h), and MAPDRIVER (from RS to VFS)
2007-08-07 11:57:33 +00:00
Philip Homburg
23fd914307
New message type 9: 5 longs, 3 shorts, and 2 chars.
2007-08-07 11:56:28 +00:00
Philip Homburg
498728bdbe
New call SYS_STIME, restructured fields for SYS_TIMES, removed PM_STIME,
...
added VFS_BASE.
2007-08-07 11:55:28 +00:00
Philip Homburg
fc0d7995e9
Some parts of dmap can be private (to vfs)
2007-08-07 11:53:41 +00:00
Philip Homburg
bf6620d285
Added prototypes for sys_stime and getuptime2 (tell the kernel about the
...
boot time and return the boot time together with the uptime)
2007-08-07 11:52:15 +00:00
Ben Gras
03446f5554
micro_delay in sysutil, used in ti1225, dp8390, fxp and
...
orinoco now. Uses a combination of tickdelay (where possible) and
calibrated busywait (where necessary).
2007-07-31 15:01:49 +00:00
Philip Homburg
69ca935251
getpeuid implementation. Get the uid of a process (by endpoint)
2007-04-27 12:21:06 +00:00
Philip Homburg
35c3f52d99
Renamed BUSC_PCI_ACL to BUSC_PCI_SET_ACL, added BUSC_PCI_DEL_ACL.
...
Added DL_STAT_REPLY and GET_PRIVID.
2007-04-23 12:01:47 +00:00
Philip Homburg
555bc29a0c
sys_getprivid macro to get the ID of a process' privilege structure.
...
Prototype for pci_del_acl.
2007-04-23 12:00:46 +00:00
Philip Homburg
36c764be1c
Asynchronous send.
2007-04-23 11:59:19 +00:00
Philip Homburg
a17ff08fb9
Prototype for cpf_reload.
2007-04-23 11:58:41 +00:00
Ben Gras
691b09f232
This will become 3.1.3
2007-04-12 14:31:16 +00:00
Ben Gras
6d50591226
. let kernel use read_tsc() from sysutil library
...
. read_tsc() in sysutil library saves edx and eax now
. added read_tsc_64() by Antonio Mancina to load tsc into
a 64-bit data type directly
. deleted read_tsc.h in favour of a prototype in <minix/syslib.h>
2007-03-08 15:39:14 +00:00
Ben Gras
3b08825d85
. service tells you which device it couldn't stat
...
. bigger rs and ramdisk for drivers
. sanity check for pv_set macro for oversized arguments
2007-02-23 18:22:46 +00:00
Ben Gras
168d766f32
. pci driver now returns devices, even when they have been pci_reserve()d
...
. pci_reserve() returns an error on devices that have already been reserved,
instead of panic()ing; the pci_reserve() library call still panics,
pci_reserve_ok() returns an int.
. this allows at_wini to use the instance value as intended, as all devices
are seen, even reserved ones
. only devices actually used by at_wini are pci_reserve()d
. pci doesn't release devices based on argv[0], as at_wini both have the
same name and multiple instances won't work together properly
2007-02-20 17:09:19 +00:00