5654996c07
New Makefiles for mkdep script.
Jorrit Herder
2005-06-24 16:21:54 +00:00
042c4ac395
Changed Makefiles for mkdep script. Updated debugging dumps at IS server, and function key control.
Jorrit Herder
2005-06-24 16:21:21 +00:00
0979014807
Renamed some types Uid_t, Gid_t, Mode_t, etc. for perl5. More space for synctree.
Philip Homburg
2005-06-23 11:07:31 +00:00
82c0b45aeb
Newer version of anm. Should be taken from the ACK source tree.
Philip Homburg
2005-06-23 09:50:54 +00:00
4ab7f34ea0
Workaround for fishy situation that caused checksum on outgoing packets to be broken in certain cases. (Seemingly when 2 short packets sent back-to-back.) Buffer alignment seems to fix this ...
Ben Gras
2005-06-22 15:22:34 +00:00
3bb4d191d7
Corrected buffer size calculation from MAX(bufsize,realsize) to MIN(bufsize,realsize) while copying boot params.
Ben Gras
2005-06-21 16:18:23 +00:00
355a10864b
Fixed various GCC compiler warnings for the kernel. Only main() now gives a warning about the return type (GCC wants an int).
Jorrit Herder
2005-06-21 10:47:46 +00:00
3eeff022fb
Added function read_cpu_flags() that returns current cpu flags as a long. This is used to check for interrupts being disabled at the time of a lock() call, if enabled in config.h. The number of times this happens is then counted in the kinfo structure. These events (recursive lockings) lead to nasty race conditions.
Ben Gras
2005-06-20 14:53:13 +00:00
c60302c1e7
Print re-locking event count if enabled.
Ben Gras
2005-06-20 14:52:00 +00:00
538e8ba2f1
Added header file that decodes the intel x86 flags register.
Ben Gras
2005-06-20 14:51:38 +00:00
d78cf7fbaf
New bit map manipulation header. General purpose.
Jorrit Herder
2005-06-20 14:29:09 +00:00
ec24a0798c
Updated function key mapping because of possible changes to NOTIFY.
Jorrit Herder
2005-06-20 14:23:31 +00:00
c0f83b4033
Fix for gzip make clean if Makefile doesn't exist..
Ben Gras
2005-06-20 13:30:24 +00:00
e40c757038
connected ps and ftpd200 to commands build
Ben Gras
2005-06-20 12:01:15 +00:00
403580e95b
Removed unused code in proc.c. New message passing code with pointer pointers is now in use. Rewrote ready() and unready() fuctions.
Jorrit Herder
2005-06-20 11:26:48 +00:00
c9c6983cc1
Fixed a few quirks in misc.c . MAX used where it should've been MIN . buffer byte too short . inobvious use of & with && without parantheses . funny length checking
Ben Gras
2005-06-20 09:35:23 +00:00
5e17902a0d
Connected ps to build
Ben Gras
2005-06-20 09:23:55 +00:00
45ddea1cdd
Fixed bug that caused the PM to brutalize the contents of the 'memory' variable. Parsing worked, but future requests for the variable (such as by the sysenv command) returned truncated data. This caused the system (e.g. setup script) to think the amount of memory was tiny, and caused the enabling of swapspace, while it is unnecessary.
Ben Gras
2005-06-19 23:16:08 +00:00
400169e960
select-test-set compile fixes.
Ben Gras
2005-06-19 23:13:57 +00:00
d844d2a547
Fixed nasty bug that would cause FS to loop forever in rw_scattered (while syncing, for instance) if blocks are unwritable. This could happen if:
Ben Gras
2005-06-19 22:33:49 +00:00
34a9677a5b
Made mkfs a little smarter about how to report empty devices.
Ben Gras
2005-06-19 22:28:05 +00:00
9aae3002ed
Made libpci recognize my pci controller at home (again)
Ben Gras
2005-06-19 22:11:04 +00:00
6e99cc494d
Fixed various nits in the make/release process.
Ben Gras
2005-06-17 16:28:36 +00:00
5954c7e303
Part of fs timers library, forgot to add this in previous commit.
Ben Gras
2005-06-17 13:49:56 +00:00
3ba1ddb037
Fixes for /root homedir.
Ben Gras
2005-06-17 13:48:16 +00:00
39c90d6c90
Added (fake) readlink().
Ben Gras
2005-06-17 13:47:29 +00:00
ed2a024d47
Select test-set imported from the minix contributions, with permission to modify and distribute from Jose Manuel Gomez, the author (jmgomez@linuxmail.org).
Ben Gras
2005-06-17 13:45:40 +00:00
f81ac6ae5c
Various compile fixes.
Ben Gras
2005-06-17 13:42:53 +00:00
47474b6341
Renamed commands to cmds - make is confused that the commands directory exists.
Ben Gras
2005-06-17 13:42:06 +00:00
9664ba0c4f
Started select() implementation.
Ben Gras
2005-06-17 13:41:12 +00:00
471e0448c3
Changed timer library function args.
Ben Gras
2005-06-17 13:37:41 +00:00
3c7120d830
Changed arguments of timer library functions.
Ben Gras
2005-06-17 13:36:01 +00:00
2f25279105
Started select() manpage.
Ben Gras
2005-06-17 13:35:21 +00:00
c40770ce68
Various select() support flags, prototypes, definitions.
Ben Gras
2005-06-17 13:34:47 +00:00
2f588c50ea
Added back boot banner for CD
Ben Gras
2005-06-17 13:25:06 +00:00
7279bb68ef
Applied MINIX 2.0.4 pathes provides by Al Woodhull.
Jorrit Herder
2005-06-17 13:00:04 +00:00
37a1e3f8e3
Removed mem chunks dump. (No longer available from kernel.)
Jorrit Herder
2005-06-17 09:13:32 +00:00
92f9bd02f8
Parsing of free memory chunks is now done at the process manager.
Jorrit Herder
2005-06-17 09:10:30 +00:00
e0a98a4d65
* Fixed bug relating to nested locking in interrupt handlers. The nested lock caused interrupts to be reenabled (due to unlock), which caused a race. The problems were especially visible on slower machines. * Relocated free memory parsing to process manager. This saved quite some code at the kernel level. Text size was reduced by about 650 bytes. * Removed locks for updating the realtime in the clock's main loop and the get_uptime function. Interrupts are no longer reentrant, so realtime is immediately updated.
Jorrit Herder
2005-06-17 09:09:54 +00:00
90b80ad31e
Relocated echo "Multiuser startup in progress ..." to top.
Jorrit Herder
2005-06-17 09:00:31 +00:00
4a2817cea1
Changed uname to retrieve actual OS release and version number at runtime.
Jorrit Herder
2005-06-17 08:53:33 +00:00
f673723b1f
Minor changes in PM interface affected these commands. Getty now retrieves the actual release and version number at runtime.
Jorrit Herder
2005-06-17 08:52:53 +00:00
8621d392b0
Fixed typo in run output; Reduced NR_ITERATIONS for tests dealing with MAX_LINKS.
Jorrit Herder
2005-06-17 08:51:28 +00:00
85f2038c7c
Undid \c from default leader and trailer
Ben Gras
2005-06-17 08:00:13 +00:00
dc23e18cef
Improved compatibility with other Unix systems.
Philip Homburg
2005-06-10 15:12:03 +00:00
d9b609c70f
Hack for buffer overflow, should be fixed properly.
Philip Homburg
2005-06-08 11:05:27 +00:00
c2cd510adf
Removed debug dumps from the PM and FS servers. The dumps are now done by the IS servers, which obtains a copy of the data through the getsysinfo() system call. CTRL-F1 now is a special TTY key to shows function key mappings.
Jorrit Herder
2005-06-07 14:43:35 +00:00
4de736535c
fix for ~root being / and buggering up system with chroot -R
Ben Gras
2005-06-07 13:33:57 +00:00
0e2a7a9730
Kernel cleanup. Reduced kernel size by 512KB by moving private buffer into cstart() function. Replaced assertions with erroneous return values. Removed assertions relating to isuserp(rp), since all processes should become user processes; system processes are now treated similar to other processes.
Jorrit Herder
2005-06-07 12:34:25 +00:00
bb2ef4e039
Added welcome message to POSIX test suite.
Jorrit Herder
2005-06-07 11:52:35 +00:00
b658df42d0
Use relative paths.
Philip Homburg
2005-06-06 16:18:05 +00:00
aca763443a
removed debug message
Ben Gras
2005-06-06 14:58:47 +00:00
2f74381dcc
Fixed 'ps' utility: now get process table addresses with getsysinfo() calls. To be done: get copies of process tables instead of using /dev/(k)mem.
Jorrit Herder
2005-06-06 13:51:50 +00:00
cde16504a1
check relaxation for bios memory
Ben Gras
2005-06-06 11:54:58 +00:00
e44e9ad261
small compile fixes; initial select() stubs; release.sh script doesn't need /tmp any more since 16MB root device; increase to 3.0.5 to make new CD with working FXP driver. (not tagged 3.0.5 yet as at driver bios-copy workaround hasn't been done.)
Ben Gras
2005-06-06 11:40:32 +00:00
9392dde997
bugfix
Ben Gras
2005-06-06 11:31:20 +00:00
c281867f46
Fixed bug relating to FS and MEMORY during startup; Relocated some syslib functions to utils library; Changed location of 'Multiuser startup ..." echo in /etc/rc
Jorrit Herder
2005-06-06 09:30:44 +00:00
f2a85e58d9
Various updates. * Removed some variants of the SYS_GETINFO calls from the kernel; replaced them with new PM and utils libary functionality. Fixed bugs in utils library that used old get_kenv() variant. * Implemented a buffer in the kernel to gather random data. Memory driver periodically checks this for /dev/random. A better random algorithm can now be implemented in the driver. Removed SYS_RANDOM; the SYS_GETINFO call is used instead. * Remove SYS_KMALLOC from the kernel. Memory allocation can now be done at the process manager with new 'other' library functions.
Jorrit Herder
2005-06-03 13:55:06 +00:00
4904a5537a
process manager must be able to send to rtl driver
Ben Gras
2005-06-03 09:02:19 +00:00
308d9a693c
prettified rtl driver: . no more kmalloc . no more umaps + physcopies / abscopies . the status register is directly readable from the drivers own address space now, and no physcopy is needed to read it . map+physcopy call combinations are replaced by vircopy calls
Ben Gras
2005-06-03 08:59:54 +00:00
d0b5cf84cb
Undid usage of vector-copy function. It's a good idea but there's a bug there somewhere. I'll debug first, then recommit.
Ben Gras
2005-06-02 16:49:33 +00:00
e782e76944
Created new findproc system call to the PM (to replace similar kernel functionality). Currently working on memory allocation (not yet finished).
Jorrit Herder
2005-06-02 12:43:21 +00:00
f926f1209d
Minor commit to remove conflict with update.
Jorrit Herder
2005-06-01 14:34:59 +00:00
6d23f072f3
Cleaned up src/lib/utils library. Renamed server_ functions to more logical names. All system processes can now either use panic() or report() from libutils, or redefine their own function. Assertions are done via the standard <assert.h> functionality.
Jorrit Herder
2005-06-01 14:31:00 +00:00
75689debe3
fixed bug that caused number of inodes to make estimation to be terrible in most cases
Ben Gras
2005-06-01 11:39:45 +00:00
0d31130d29
Make needs a little more memory
Ben Gras
2005-06-01 11:14:08 +00:00
25d2f4666c
Removed mm files (obsolete; it's pm now)
Ben Gras
2005-06-01 09:40:42 +00:00
bd12703b76
Able to dump lock()/unlock() timing data
Ben Gras
2005-06-01 09:40:27 +00:00
66dab193f3
function key notifications became notifies fix
Ben Gras
2005-06-01 09:40:02 +00:00
447b988154
exec now uses phys_zero system call to zero bss segments (instead of using phys_copy to copy zeroes there for every kb), which is a big optimisation in some cases
Ben Gras
2005-06-01 09:39:45 +00:00
c977bd8709
Added args to lock() and unlock() to tell them apart, for use when lock timing is enabled in minix/config.h.
Ben Gras
2005-06-01 09:37:52 +00:00
b4335679cb
Added sys_physzero library call for corresponding system call; modified system-printf() so it returns number of characters printed (for use in smart formatting)
Ben Gras
2005-06-01 09:36:07 +00:00
dfe2b4513f
Moved timing structs around to be more standard
Ben Gras
2005-06-01 09:34:37 +00:00
e0ffcdadd1
Added support for lock()/unlock() timing registration; also phys_zero system call
Ben Gras
2005-06-01 09:34:18 +00:00
39a2fc72dd
different way of dealing with fd's so chmem <arg> <long list of files> doesn't fail due to file descriptor leaks
Ben Gras
2005-06-01 09:31:14 +00:00
a3d2f35993
Fixed minor bug in PM's child time administration.
Jorrit Herder
2005-06-01 08:55:22 +00:00
5a43b84e2d
Fix for 'the kermit problem' (keyrepeats happening before the keyrepeat timeout). A fix is to treat the alarm and interrupt cases differently and only call the interrupt handler when an actual interrupt has been seen. No apparent adverse effects.
Ben Gras
2005-05-31 15:22:06 +00:00
0165662cd9
Replaced flagalrm() timers with another technique to check for timeouts. This allowed removing the p_flagarlm timer from the kernel's process table. Furthermore, I merged p_syncalrm and p_signalrm into p_alarm_timer to save even more space. Note that processes can no longer have both a signal and synchronous alarm timer outstanding as of now.
Jorrit Herder
2005-05-31 14:43:04 +00:00
e673eeee20
compile fixes for kermit and postmort
Ben Gras
2005-05-31 12:32:35 +00:00
135328ac59
Fixed some compiler warnings.
Ben Gras
2005-05-31 11:14:37 +00:00
9e5e6e7b51
Reverse trailer/delay order (delay first)
Ben Gras
2005-05-31 11:11:47 +00:00
322ec9ef8b
Moved stime, time, times POSIX calls from FS to PM. Removed child time accounting from kernel (now in PM). Large amount of files in this commit is due to system time problems during development.
Jorrit Herder
2005-05-31 09:50:51 +00:00
cd72f80639
Disabled clearing screen in tty driver, started console printing after an initial 1-line scroll at last line. If clearing screen in trailer of boot monitor is disabled, all previous boot monitor and console messages are preserved on rebooting.
Ben Gras
2005-05-30 15:09:51 +00:00
5927788cdd
Added 'bootdelay' feature in boot monitor, it pauses a given number of ms so the list of programs in the image and their sizes can be seen before the kernel starts filling the screen.
Ben Gras
2005-05-30 15:02:52 +00:00
b421423c77
SENDREC now always has flag FRESH_ANSWER to prevent pending notifications to be used as answer to a SENDREC call.
Jorrit Herder
2005-05-30 11:11:40 +00:00
826fee4c6d
Fixed clear_proc(): properly release resources (IRQ hooks, notify buffers); Cleaned up comments in proc.c (old code still present for comparison);
Jorrit Herder
2005-05-30 11:05:42 +00:00
fcd113da7b
Imported kermit v2.11
Ben Gras
2005-05-30 10:55:32 +00:00