Changeset 6153749 in mainline


Ignore:
Timestamp:
2005-09-05T09:35:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8fe379b5
Parents:
ae9624e
Message:

Add timeout to kmp() so that we don't deadlock while waiting for AP's to come up.

Improve comment in byteorder.h.

Location:
arch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/smp/smp.c

    rae9624e r6153749  
    3535#include <config.h>
    3636#include <synch/waitq.h>
     37#include <synch/synch.h>
    3738#include <arch/pm.h>
    3839#include <func.h>
     
    112113        outb(0x71,0xa);
    113114
    114         cpu_priority_high();
    115 
    116115        pic_disable_irqs(0xffff);
    117116        apic_init();
     
    133132
    134133                if (ops->cpu_apic_id(i) == l_apic_id()) {
    135                         printf("kmp: bad processor entry #%d, will not send IPI to myself\n", i);
     134                        printf("%s: bad processor entry #%d, will not send IPI to myself\n", __FUNCTION__, i);
    136135                        continue;
    137136                }
     
    154153                         * supposed to wake us up.
    155154                         */
    156                         waitq_sleep(&ap_completion_wq);
     155                        if (waitq_sleep_timeout(&ap_completion_wq, 1000000, SYNCH_BLOCKING) == ESYNCH_TIMEOUT)
     156                                printf("%s: waiting for cpu%d (APIC ID = %d) timed out\n", __FUNCTION__, config.cpu_active > i ? config.cpu_active : i, ops->cpu_apic_id(i));
    157157                }
    158158                else {
  • arch/ppc/include/byteorder.h

    rae9624e r6153749  
    3232#include <arch/types.h>
    3333
    34 /** Convert little-endian parameter to host endianess
     34/** Convert little-endian __native to host __native
    3535 *
    36  * Convert little-endian to host endianess,
     36 * Convert little-endian __native parameter to host endianess.
    3737 *
    38  * @param n Little-endian native argument.
     38 * @param n Little-endian __native argument.
    3939 *
    4040 * @return Result in host endianess.
Note: See TracChangeset for help on using the changeset viewer.