Changeset 96b02eb9 in mainline for kernel/genarch/src


Ignore:
Timestamp:
2010-12-14T12:52:38Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6b10dab
Parents:
554debd
Message:

more unification of basic types

  • use sysarg_t and native_t (unsigned and signed variant) in both kernel and uspace
  • remove ipcarg_t in favour of sysarg_t

(no change in functionality)

Location:
kernel/genarch/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/acpi/acpi.c

    r554debd r96b02eb9  
    116116                    / sizeof(struct acpi_signature_map); j++) {
    117117                        struct acpi_sdt_header *hdr =
    118                             (struct acpi_sdt_header *) (unative_t) acpi_rsdt->entry[i];
     118                            (struct acpi_sdt_header *) (sysarg_t) acpi_rsdt->entry[i];
    119119                       
    120120                        map_sdt(hdr);
  • kernel/genarch/src/acpi/madt.c

    r554debd r96b02eb9  
    165165                /* Remember index of the first io apic entry */
    166166                madt_io_apic_entry_index = i;
    167                 io_apic = (uint32_t *) (unative_t) ioa->io_apic_address;
     167                io_apic = (uint32_t *) (sysarg_t) ioa->io_apic_address;
    168168        } else {
    169169                /* Currently not supported */
     
    190190        struct madt_apic_header *hdr;
    191191       
    192         l_apic = (uint32_t *) (unative_t) acpi_madt->l_apic_address;
     192        l_apic = (uint32_t *) (sysarg_t) acpi_madt->l_apic_address;
    193193       
    194194        /* Count MADT entries */
  • kernel/genarch/src/mm/page_ht.c

    r554debd r96b02eb9  
    5252#include <align.h>
    5353
    54 static size_t hash(unative_t[]);
    55 static bool compare(unative_t[], size_t, link_t *);
     54static size_t hash(sysarg_t[]);
     55static bool compare(sysarg_t[], size_t, link_t *);
    5656static void remove_callback(link_t *);
    5757
     
    9696 *
    9797 */
    98 size_t hash(unative_t key[])
     98size_t hash(sysarg_t key[])
    9999{
    100100        as_t *as = (as_t *) key[KEY_AS];
     
    115115         *
    116116         */
    117         index |= ((unative_t) as) & (PAGE_HT_ENTRIES - 1);
     117        index |= ((sysarg_t) as) & (PAGE_HT_ENTRIES - 1);
    118118       
    119119        return index;
     
    129129 *
    130130 */
    131 bool compare(unative_t key[], size_t keys, link_t *item)
     131bool compare(sysarg_t key[], size_t keys, link_t *item)
    132132{
    133133        ASSERT(item);
     
    180180    unsigned int flags)
    181181{
    182         unative_t key[2] = {
     182        sysarg_t key[2] = {
    183183                (uintptr_t) as,
    184184                page = ALIGN_DOWN(page, PAGE_SIZE)
     
    220220void ht_mapping_remove(as_t *as, uintptr_t page)
    221221{
    222         unative_t key[2] = {
     222        sysarg_t key[2] = {
    223223                (uintptr_t) as,
    224224                page = ALIGN_DOWN(page, PAGE_SIZE)
     
    247247pte_t *ht_mapping_find(as_t *as, uintptr_t page)
    248248{
    249         unative_t key[2] = {
     249        sysarg_t key[2] = {
    250250                (uintptr_t) as,
    251251                page = ALIGN_DOWN(page, PAGE_SIZE)
Note: See TracChangeset for help on using the changeset viewer.