32bit process flags

- we are running out of space in 16bit flags
This commit is contained in:
Tomas Hruby 2010-09-23 10:49:36 +00:00
parent adbc4e4ea7
commit 123a968be3
3 changed files with 6 additions and 6 deletions

View File

@ -140,7 +140,7 @@ PUBLIC int runqueues_ok(void)
#endif #endif
PUBLIC char * PUBLIC char *
rtsflagstr(const int flags) rtsflagstr(const u32_t flags)
{ {
static char str[100]; static char str[100];
str[0] = '\0'; str[0] = '\0';
@ -167,7 +167,7 @@ rtsflagstr(const int flags)
} }
PUBLIC char * PUBLIC char *
miscflagstr(const int flags) miscflagstr(const u32_t flags)
{ {
static char str[100]; static char str[100];
str[0] = '\0'; str[0] = '\0';

View File

@ -24,8 +24,8 @@ struct proc {
struct segframe p_seg; /* segment descriptors */ struct segframe p_seg; /* segment descriptors */
proc_nr_t p_nr; /* number of this process (for fast access) */ proc_nr_t p_nr; /* number of this process (for fast access) */
struct priv *p_priv; /* system privileges structure */ struct priv *p_priv; /* system privileges structure */
short p_rts_flags; /* process is runnable only if zero */ u32_t p_rts_flags; /* process is runnable only if zero */
short p_misc_flags; /* flags that do not suspend the process */ u32_t p_misc_flags; /* flags that do not suspend the process */
char p_priority; /* current process priority */ char p_priority; /* current process priority */
u64_t p_cpu_time_left; /* time left to use the cpu */ u64_t p_cpu_time_left; /* time left to use the cpu */

View File

@ -111,8 +111,8 @@ _PROTOTYPE( int runqueues_ok, (void) );
#define runqueues_ok_local() runqueues_ok_cpu(cpuid) #define runqueues_ok_local() runqueues_ok_cpu(cpuid)
_PROTOTYPE( int runqueues_ok_cpu, (unsigned cpu)); _PROTOTYPE( int runqueues_ok_cpu, (unsigned cpu));
#endif #endif
_PROTOTYPE( char *rtsflagstr, (int flags) ); _PROTOTYPE( char *rtsflagstr, (u32_t flags) );
_PROTOTYPE( char *miscflagstr, (int flags) ); _PROTOTYPE( char *miscflagstr, (u32_t flags) );
_PROTOTYPE( char *schedulerstr, (struct proc *scheduler) ); _PROTOTYPE( char *schedulerstr, (struct proc *scheduler) );
/* prints process information */ /* prints process information */
_PROTOTYPE( void print_proc, (struct proc *pp)); _PROTOTYPE( void print_proc, (struct proc *pp));