Changeset 8a78e68 in mainline


Ignore:
Timestamp:
2005-02-26T22:37:59Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e6ba9a3f
Parents:
f5075fa
Message:

MP Specification says that MP Configuration Table extended entries with unrecongised types should be skipped rather than paniced on.

Location:
arch/ia32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/include/smp/mp.h

    rf5075fa r8a78e68  
    3434#include <synch/waitq.h>
    3535#include <config.h>
     36
     37#define CT_EXT_ENTRY_TYPE               0
     38#define CT_EXT_ENTRY_LEN                1
    3639
    3740struct __mpfs {
  • arch/ia32/src/smp/mp.c

    rf5075fa r8a78e68  
    414414void ct_extended_entries(void)
    415415{
    416         /*
    417          * Not yet implemented.
    418          */
    419         if (ct->ext_table_length)
    420                 panic("ct_extended_entries: not supported\n");
     416        __u8 *ext = (__u8 *) ct + ct->base_table_length;
     417        __u8 *cur;
     418
     419        for (cur = ext; cur < ext + ct->ext_table_length; cur += cur[CT_EXT_ENTRY_LEN]) {
     420                switch (cur[CT_EXT_ENTRY_TYPE]) {
     421                        default:
     422                                printf("%X: skipping MP Configuration Table extended entry type %d\n", cur, cur[CT_EXT_ENTRY_TYPE]);
     423                                break;
     424                }
     425        }
    421426}
    422427
Note: See TracChangeset for help on using the changeset viewer.