Fixed some minor issues with the NOTIFY call.

This commit is contained in:
Jorrit Herder
2005-05-24 14:35:58 +00:00
parent 70cdffcc18
commit 0899f82ab2
22 changed files with 87 additions and 137 deletions

View File

@@ -133,7 +133,7 @@ PUBLIC void main()
source= mq->mq_mess.m_source;
if (source == FS_PROC_NR) {
sr_rec(mq);
} else if (source == HARDWARE) /* a notification! */
} else if (mq->mq_mess.m_type & NOTIFICATION )
{
if (mq->mq_mess.m_type == SYN_ALARM) {
clck_tick(&mq->mq_mess);

View File

@@ -325,18 +325,7 @@ PRIVATE void kenv_dmp()
printf("- bootdev_size: %5u\n", kinfo.bootdev_size);
printf("- params_base: %5u\n", kinfo.params_base);
printf("- params_size: %5u\n", kinfo.params_size);
printf("- notify_blocked:%8u\n", kinfo.notify_blocked);
printf("- notify_ok: %8u\n", kinfo.notify_ok);
printf("- notify_held: %8u\n", kinfo.notify_held);
printf("- notify_switch: %8u\n", kinfo.notify_switching);
printf("- notify_reenter:%8u\n", kinfo.notify_reenter);
printf("- notify_taskcall:%7u\n", kinfo.notify_taskcall);
printf("- notify_unhold: %8u\n", kinfo.notify_unhold);
printf("- hard_int: %8u\n", kinfo.notify_int);
printf("- hard_stop: %8u\n", kinfo.notify_stop);
printf("- sync_alarm: %8u\n", kinfo.notify_alarm);
printf("- ksig_pending: %8u\n", kinfo.notify_sig);
printf("- new_kmess: %8u\n", kinfo.notify_kmess);
printf("- notify_pending:%8u\n", kinfo.nr_ntf_pending);
printf("- nr_procs: %3u\n", kinfo.nr_procs);
printf("- nr_tasks: %3u\n", kinfo.nr_tasks);
printf("- version: %.6s\n", kinfo.version);

View File

@@ -299,6 +299,7 @@ phys_bytes tot_bytes; /* total memory to allocate, including gap */
phys_clicks new_base;
static char zero[1024]; /* used to zero bss */
phys_bytes bytes, base, count, bss_offset;
int s;
/* No need to allocate text if it can be shared. */
if (sh_mp != NULL) text_bytes = 0;
@@ -373,9 +374,9 @@ phys_bytes tot_bytes; /* total memory to allocate, including gap */
while (bytes > 0) {
count = MIN(bytes, (phys_bytes) sizeof(zero));
if (sys_physcopy(PM_PROC_NR, D, (phys_bytes) zero,
NONE, PHYS_SEG, base, count) != OK) {
panic("new_mem can't zero", NO_NUM);
if ((s=sys_physcopy(PM_PROC_NR, D, (phys_bytes) zero,
NONE, PHYS_SEG, base, count)) != OK) {
panic("new_mem can't zero", s);
}
base += count;
bytes -= count;