Philip Homburg
a3fce7ce8d
Changed to use sys_readbios get the 'machine ID'.
2006-07-10 12:35:55 +00:00
Philip Homburg
dcb7cae67c
Changed to use sys_readbios to get BIOS parameters.
2006-07-10 12:34:41 +00:00
Philip Homburg
6f4091eb8c
Added do_readbios. Added debugging output for unexpected use of unsafe copy
...
functions.
2006-07-10 12:27:26 +00:00
Philip Homburg
73e5de6354
Added sys_readbios.
...
Changed pci_dev_name and pci_slot_name to use safecopies.
Mae it possible to disable the use of safecopies in kputc for debugging.
2006-07-10 12:17:16 +00:00
Philip Homburg
d7174ec0ab
Added SI_CALL_STATS and ENABLE_SYSCALL_STATS for system call statistics.
...
Added BUSC_PCI_DEV_NAME_S and BUSC_PCI_SLOT_NAME_S to support safecopies in PCI.
Added DL_WRITEV_S, DL_READV_S, DL_GETSTAT_S, DL_GRANT, and iovec_s_t to support
safecopies in ethernet drviers. Renamed DL_INIT to DL_CONF, and DL_INIT_REPLY
to DL_CONF_REPLY.
Added SYS_READBIOS and sys_readbios to read from BIOS data areas.
Added GET_KMESS_S for safecopy support in LOG.
Added sys_safe_insb and sys_safe_outsb.
2006-07-10 12:13:29 +00:00
Ben Gras
cac387bc1e
Clean ramdisk image .s too
2006-07-06 14:09:54 +00:00
Ben Gras
5c55d94007
Bigger BUFSIZ for bigger fs block size.
2006-07-06 10:02:25 +00:00
Ben Gras
1561067ee4
Grant system dynamic-only.
2006-06-30 14:40:29 +00:00
Ben Gras
b654c02f55
Give pm its own brk() so malloc() works in pm. pm needs more stack for this.
2006-06-30 14:36:11 +00:00
Ben Gras
b5179d7025
Split do_brk in a stub and a function that does the real work, so that
...
the real work can be called from elsewhere too. Specifically, to allow PM
its own brk().
2006-06-30 14:35:38 +00:00
Ben Gras
0323892f71
3rd fix for improper behaviour on crashing driver with safe_io_conversion
2006-06-29 14:24:07 +00:00
Ben Gras
407eefe63a
Compile fix
2006-06-29 14:23:33 +00:00
Ben Gras
f1222a09a6
Make stack traces on exceptions possible.
2006-06-29 13:35:27 +00:00
Ben Gras
bfca7d68ba
Fix another bug related to trying i/o more than once
2006-06-28 12:20:30 +00:00
Ben Gras
46646a49a8
Don't print cloexec
2006-06-28 10:04:32 +00:00
Ben Gras
f9fb0ff546
Fix bug where safe conversion doesn't happen after 1st time in loop
2006-06-28 10:03:18 +00:00
Ben Gras
6b1f8de38a
Added _select() stub for select().
2006-06-27 18:28:33 +00:00
Ben Gras
bd535a120b
. satisfy some gcc warnings (uninitialized/unused variables)
...
. change cloexec mask from long to fd_set to remove 32 fd's per
process restriction (from cloexec at least)
2006-06-27 16:47:35 +00:00
Ben Gras
a0f8161fe7
Stopgap for tar creating insane group ownerships due to tiny gid_t.
2006-06-27 16:30:46 +00:00
Ben Gras
59bedc2074
let dynamic allocation of table work
2006-06-27 14:15:47 +00:00
Ben Gras
607fb6bf7f
Add a flag to grants system indicating a slot is VALID; so a slot
...
can be reserved (USED), while toggling VALID on and off.
2006-06-27 12:19:45 +00:00
Ben Gras
a587273c56
. expanded grant manipulation interface to more direct
...
manipulation
. made fs allocate a grant for every ioctl, even if no data
is being copied, in order to disambiguate concurrent ioctls
on the same minor
2006-06-26 16:08:42 +00:00
Philip Homburg
2f50f92eb3
Move inet to safe copies.
2006-06-26 16:03:35 +00:00
Ben Gras
961a173573
Fix to let elle understand window size.
2006-06-26 15:15:40 +00:00
Philip Homburg
de07a562d1
Vectored safe copies for inet.
2006-06-26 14:20:11 +00:00
Philip Homburg
14c9743ecf
First cut at safe copies for inet. Breaks tcpstat.
2006-06-26 11:17:19 +00:00
Ben Gras
48a6203ae7
A backup of the readclock command that shouldn't have been imported into cvs.
2006-06-26 08:58:11 +00:00
Ben Gras
3b814d36d1
Rename paramctl to setgrant.
2006-06-23 15:35:05 +00:00
Philip Homburg
add4be444f
get_sys_bits
2006-06-23 15:32:24 +00:00
Ben Gras
002922fa4c
New kernel call, SYS_PARAMCTL, that sets parameters of the caller
...
and is therefore unprivileged. Used to set grant tables.
2006-06-23 15:07:41 +00:00
Philip Homburg
8dfac43a75
Print ipc_to in hex. Also print the 'system' call mask.
2006-06-23 13:27:03 +00:00
Ben Gras
777dbbe3f7
Everyone's endpoint number
2006-06-23 12:16:22 +00:00
Ben Gras
0e9c6932c4
use malloc() + copy + free() instead of realloc()
2006-06-23 12:07:41 +00:00
Ben Gras
3ffa1684ae
New option -E for ps that prints endpoint numbers instead of pids.
2006-06-23 11:59:20 +00:00
Ben Gras
31318a8ce5
library interface for vectored safecopy variant.
2006-06-23 11:54:35 +00:00
Ben Gras
d402047222
Added vectored variant of sys_safecopy*.
2006-06-23 11:54:03 +00:00
Ben Gras
82855e9cf5
. leave out dead code from device.c
...
. don't loop doing a receive() after sendrec() - chance of recovering is not
high, and can lead to receive()ing a notify() (which can't happen in sendrec()),
which is terrible
. return status from device when DEV_CANCEL is done on a signal; hardcode EAGAIN to
become EINTR though
2006-06-23 11:51:56 +00:00
Philip Homburg
08bb0f7708
No longer build Michael Temari's httpd. Install a httpd from ports.
2006-06-22 11:53:03 +00:00
Philip Homburg
529ca8a4df
Added strlcat and strlcpy.
2006-06-22 11:47:18 +00:00
Philip Homburg
bd783b901f
Added prototype for inet_aton.
2006-06-22 11:45:59 +00:00
Philip Homburg
20a9ca246d
Added __minix3 to make it easier to figure out that we are compiling on/for
...
Minix 3.
2006-06-22 11:44:17 +00:00
Ben Gras
ed9be75384
<minix/safecopies>
2006-06-20 14:25:42 +00:00
Ben Gras
7b6a1e5f59
More space for rs
2006-06-20 10:59:45 +00:00
Ben Gras
0d39b17655
Changed order of -lsys and -lsysutil for printf()
2006-06-20 10:50:29 +00:00
Ben Gras
705f1039d9
order changed for printf()
2006-06-20 10:47:25 +00:00
Ben Gras
cef426ee54
There is no lex.
2006-06-20 10:14:25 +00:00
Ben Gras
848b96a9a4
Fixes for usb and bios.
2006-06-20 10:13:56 +00:00
Ben Gras
223a0e7b60
Fix for KERNEL definition.
2006-06-20 10:13:32 +00:00
Ben Gras
150c964b49
Fix for losing REVIVE
2006-06-20 10:12:30 +00:00
Ben Gras
2384a85296
FS support for grant-based i/o.
...
For character device i/o, FS does a so-called 'magic' grant to let the
driver copy from or to user space. As this is done in FS address space,
the driver is told to do this in FS address space. The redirection to
the right user process then happens at copy-time in the kernel, using the
FS grant table. This also happens for DEV_READ and DEV_WRITE on block
devices.
For other block device i/o, which happens from/to FS buffers, FS does
a 'direct' grant to its own address space for the driver.
After the i/o returns, this access has to be K-I-L-L-E-D, revoked.
Sometimes this is after a SUSPEND and DEV_REVIVE, in which case the
revoking happens in pipe.c.
This conversion happens in safe_io_conversion() in device.c, called
by dev_io and dev_bio.
FS has to pre-allocate its own space for these grant tables. This happens
in main.c.
2006-06-20 10:12:09 +00:00