Changeset f8ddd17 in mainline for kernel/generic/src/sysinfo/sysinfo.c


Ignore:
Timestamp:
2006-12-09T20:20:50Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b82a13c
Parents:
9ab9c2ec
Message:

Rework support for virtually indexed cache.
Instead of repeatedly flushing the data cache, which was a huge overkill, refuse to create an illegal address alias
in the kernel (again) and allocate appropriate page color in userspace instead. Extend the detection also to
SYS_PHYSMEM_MAP syscall.

Add support for tracking physical memory areas mappable by SYS_PHYSMEM_MAP.

Lots of coding style changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/sysinfo/sysinfo.c

    r9ab9c2ec rf8ddd17  
    231231               
    232232                switch (root->val_type) {
    233                         case SYSINFO_VAL_UNDEFINED:
    234                                 val = 0;
    235                                 vtype = "UND";
    236                                 break;
    237                         case SYSINFO_VAL_VAL:
    238                                 val = root->val.val;
    239                                 vtype = "VAL";
    240                                 break;
    241                         case SYSINFO_VAL_FUNCTION:
    242                                 val = ((sysinfo_val_fn_t) (root->val.fn)) (root);
    243                                 vtype = "FUN";
    244                                 break;
     233                case SYSINFO_VAL_UNDEFINED:
     234                        val = 0;
     235                        vtype = "UND";
     236                        break;
     237                case SYSINFO_VAL_VAL:
     238                        val = root->val.val;
     239                        vtype = "VAL";
     240                        break;
     241                case SYSINFO_VAL_FUNCTION:
     242                        val = ((sysinfo_val_fn_t) (root->val.fn)) (root);
     243                        vtype = "FUN";
     244                        break;
    245245                }
    246246               
    247                 printf("%s    %s val:%d(%x) sub:%s\n", root->name, vtype, val, val, (root->subinfo_type == SYSINFO_SUBINFO_NONE) ? "NON" : ((root->subinfo_type == SYSINFO_SUBINFO_TABLE) ? "TAB" : "FUN"));
     247                printf("%s    %s val:%d(%x) sub:%s\n", root->name, vtype, val,
     248                        val, (root->subinfo_type == SYSINFO_SUBINFO_NONE) ?
     249                        "NON" : ((root->subinfo_type == SYSINFO_SUBINFO_TABLE) ?
     250                        "TAB" : "FUN"));
    248251               
    249252                if (root->subinfo_type == SYSINFO_SUBINFO_TABLE)
Note: See TracChangeset for help on using the changeset viewer.