Realtime priority scheduling support.

Added "sys/rtprio.h" with the used defines.
    Added rtprio(2) - the kernel interface.                  init_sysent.c,
                                                             kern_resource.c
                                                             syscalls.master
    Added 32 new runqueues (rtqs), with initialization.      kern_proc.c
                                                             kern_synch.c
    Realtime processes do not change nice/priority           kern_synch.c
    Added a column "rt" to ddb's ps (#ifdef RTPRIO_DEBUG)    kern_synch.c
    Realtime priorities are enherited through fork().        kern_fork.c
    Init (and children) NOT run as realtime process.         init_main.c

Submitted by:	Henrik Vestergaard Draboel
This commit is contained in:
dg 1994-09-01 05:15:50 +00:00
parent 43e565295a
commit 0d935e2ef5
3 changed files with 7 additions and 5 deletions

View File

@ -2,7 +2,7 @@
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from $Id: syscalls.master,v 1.4 1994/08/19 11:45:23 davidg Exp $
* created from $Id: syscalls.master,v 1.6 1994/09/01 05:12:42 davidg Exp $
*/
#include <sys/param.h>
@ -141,6 +141,7 @@ int getdomainname();
int setdomainname();
int uname();
int sysarch();
int rtprio();
#ifdef SYSVSHM
int shmsys();
#else
@ -440,7 +441,7 @@ struct sysent sysent[] = {
{ 2, setdomainname }, /* 163 = setdomainname */
{ 1, uname }, /* 164 = uname */
{ 2, sysarch }, /* 165 = sysarch */
{ 0, nosys }, /* 166 = nosys */
{ 2, rtprio }, /* 166 = rtprio */
{ 0, nosys }, /* 167 = nosys */
{ 0, nosys }, /* 168 = nosys */
{ 0, nosys }, /* 169 = nosys */

View File

@ -2,7 +2,7 @@
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from $Id: syscalls.master,v 1.4 1994/08/19 11:45:23 davidg Exp $
* created from $Id: syscalls.master,v 1.6 1994/09/01 05:12:42 davidg Exp $
*/
char *syscallnames[] = {
@ -192,7 +192,7 @@ char *syscallnames[] = {
"setdomainname", /* 163 = setdomainname */
"uname", /* 164 = uname */
"sysarch", /* 165 = sysarch */
"#166", /* 166 = nosys */
"rtprio", /* 166 = rtprio */
"#167", /* 167 = nosys */
"#168", /* 168 = nosys */
"#169", /* 169 = nosys */

View File

@ -2,7 +2,7 @@
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from $Id: syscalls.master,v 1.4 1994/08/19 11:45:23 davidg Exp $
* created from $Id: syscalls.master,v 1.6 1994/09/01 05:12:42 davidg Exp $
*/
#define SYS_syscall 0
@ -164,6 +164,7 @@
#define SYS_setdomainname 163
#define SYS_uname 164
#define SYS_sysarch 165
#define SYS_rtprio 166
#define SYS_shmsys 171
#define SYS_ntp_gettime 175
#define SYS_ntp_adjtime 176