change bitchunk_t from 16-bit to 32-bit
This commit is contained in:
@@ -363,7 +363,7 @@ PRIVATE int update_priv(struct proc *rp, struct priv *priv)
|
||||
#if PRIV_DEBUG
|
||||
printf("do_privctl: Setting ipc target mask for %d:");
|
||||
for (i=0; i < NR_SYS_PROCS; i += BITCHUNK_BITS) {
|
||||
printf(" %04x", get_sys_bits(priv->s_ipc_to, i));
|
||||
printf(" %08x", get_sys_bits(priv->s_ipc_to, i));
|
||||
}
|
||||
printf("\n");
|
||||
#endif
|
||||
@@ -373,7 +373,7 @@ PRIVATE int update_priv(struct proc *rp, struct priv *priv)
|
||||
#if PRIV_DEBUG
|
||||
printf("do_privctl: Set ipc target mask for %d:");
|
||||
for (i=0; i < NR_SYS_PROCS; i += BITCHUNK_BITS) {
|
||||
printf(" %04x", get_sys_bits(priv(rp)->s_ipc_to, i));
|
||||
printf(" %08x", get_sys_bits(priv(rp)->s_ipc_to, i));
|
||||
}
|
||||
printf("\n");
|
||||
#endif
|
||||
|
||||
@@ -90,13 +90,10 @@ PUBLIC struct boot_image image[] = {
|
||||
{INIT_PROC_NR, BVM_F, 0, "init" },
|
||||
};
|
||||
|
||||
/* Verify the size of the system image table at compile time. Also verify that
|
||||
* the first chunk of the ipc mask has enough bits to accommodate the processes
|
||||
* in the image.
|
||||
/* Verify the size of the system image table at compile time.
|
||||
* If a problem is detected, the size of the 'dummy' array will be negative,
|
||||
* causing a compile time error. Note that no space is actually allocated
|
||||
* because 'dummy' is declared extern.
|
||||
*/
|
||||
extern int dummy[(NR_BOOT_PROCS==sizeof(image)/
|
||||
sizeof(struct boot_image))?1:-1];
|
||||
extern int dummy[(BITCHUNK_BITS > NR_BOOT_PROCS - 1) ? 1 : -1];
|
||||
|
||||
Reference in New Issue
Block a user