Changes in / [e3fa1720:9a791eb9] in mainline


Ignore:
Files:
1 deleted
9 edited

Legend:

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

    re3fa1720 r9a791eb9  
    174174{
    175175        for (size_t i = 0; i < len; i += 16) {
    176                 if (!__builtin_memcmp(&base[i], RSDP_SIGNATURE, 8) &&
     176                if (memcmp(&base[i], RSDP_SIGNATURE, sizeof(RSDP_SIGNATURE)) == 0 &&
    177177                    rsdp_check(&base[i]))
    178178                        return &base[i];
  • kernel/generic/include/cap/cap.h

    re3fa1720 r9a791eb9  
    137137extern void cap_free(struct task *, cap_handle_t);
    138138
    139 extern kobject_t *kobject_alloc(unsigned int);
    140 extern void kobject_free(kobject_t *);
    141139extern void kobject_initialize(kobject_t *, kobject_type_t, void *,
    142140    kobject_ops_t *);
  • kernel/generic/src/cap/cap.c

    re3fa1720 r9a791eb9  
    9393
    9494static slab_cache_t *cap_cache;
    95 static slab_cache_t *kobject_cache;
    9695
    9796static size_t caps_hash(const ht_link_t *item)
     
    124123        cap_cache = slab_cache_create("cap_t", sizeof(cap_t), 0, NULL,
    125124            NULL, 0);
    126         kobject_cache = slab_cache_create("kobject_t", sizeof(kobject_t), 0,
    127             NULL, NULL, 0);
    128125}
    129126
     
    397394}
    398395
    399 kobject_t *kobject_alloc(unsigned int flags)
    400 {
    401         return slab_alloc(kobject_cache, flags);
    402 }
    403 
    404 void kobject_free(kobject_t *kobj)
    405 {
    406         slab_free(kobject_cache, kobj);
    407 }
    408 
    409396/** Initialize kernel object
    410397 *
     
    475462        if (atomic_postdec(&kobj->refcnt) == 1) {
    476463                kobj->ops->destroy(kobj->raw);
    477                 kobject_free(kobj);
     464                free(kobj);
    478465        }
    479466}
  • kernel/generic/src/ipc/ipc.c

    re3fa1720 r9a791eb9  
    120120                return NULL;
    121121
    122         kobject_t *kobj = kobject_alloc(0);
     122        kobject_t *kobj = (kobject_t *) malloc(sizeof(kobject_t));
    123123        if (!kobj) {
    124124                slab_free(call_cache, call);
  • kernel/generic/src/ipc/ipcrsc.c

    re3fa1720 r9a791eb9  
    7676                        return ENOMEM;
    7777                }
    78                 kobject_t *kobj = kobject_alloc(FRAME_ATOMIC);
     78                kobject_t *kobj = malloc(sizeof(kobject_t));
    7979                if (!kobj) {
    8080                        cap_free(TASK, handle);
  • kernel/generic/src/ipc/irq.c

    re3fa1720 r9a791eb9  
    356356        }
    357357
    358         kobject_t *kobject = kobject_alloc(FRAME_ATOMIC);
     358        kobject_t *kobject = malloc(sizeof(kobject_t));
    359359        if (!kobject) {
    360360                cap_free(TASK, handle);
  • kernel/generic/src/synch/syswaitq.c

    re3fa1720 r9a791eb9  
    4545
    4646#include <stdint.h>
     47#include <stdlib.h>
    4748
    4849static slab_cache_t *waitq_cache;
     
    9596        waitq_initialize(wq);
    9697
    97         kobject_t *kobj = kobject_alloc(0);
     98        kobject_t *kobj = (kobject_t *) malloc(sizeof(kobject_t));
    9899        if (!kobj) {
    99100                slab_free(waitq_cache, wq);
     
    106107        if (rc != EOK) {
    107108                slab_free(waitq_cache, wq);
    108                 kobject_free(kobj);
     109                free(kobj);
    109110                return (sys_errno_t) rc;
    110111        }
     
    113114        if (rc != EOK) {
    114115                cap_free(TASK, handle);
    115                 kobject_free(kobj);
     116                free(kobj);
    116117                slab_free(waitq_cache, wq);
    117118                return (sys_errno_t) rc;
  • tools/toolchain.sh

    re3fa1720 r9a791eb9  
    3131BINUTILS_GDB_GIT="https://github.com/HelenOS/binutils-gdb.git"
    3232
    33 BINUTILS_BRANCH="binutils-2_31_1-helenos"
    34 BINUTILS_VERSION="2.31.1"
    35 
    36 GDB_BRANCH="gdb-8_2-helenos"
    37 GDB_VERSION="8.2"
     33BINUTILS_BRANCH="binutils-2_30-helenos"
     34BINUTILS_VERSION="2.30"
     35
     36GDB_BRANCH="gdb-8_1-helenos"
     37GDB_VERSION="8.1"
    3838
    3939GCC_GIT="https://github.com/HelenOS/gcc.git"
  • tools/xcw/bin/helenos-bld-config

    re3fa1720 r9a791eb9  
    5858*.--cflags) extract_field "HELENOS_CFLAGS" "$CONFIG_MK";;
    5959*.--ldflags) extract_field "HELENOS_LDFLAGS" "$CONFIG_MK";;
    60 *.--install-dir) echo "$(realpath "$SRC_ROOT/uspace/overlay")";;
    6160(*)
    6261        echo "Unknown option $1" >&2
    63         echo "Usage: helenos-bld-config <option>" >&2
    64         echo "        --cc" >&2
    65         echo "        --ld" >&2
    66         echo "        --uarch" >&2
    67         echo "        --endian" >&2
    68         echo "        --cflags" >&2
    69         echo "        --ldflags" >&2
    70         echo "        --install-dir" >&2
     62        echo "Usage: helenos-pkg-config {--cc|--ld|--uarch|--endian}" >&2
    7163        exit 1;;
    7264esac
Note: See TracChangeset for help on using the changeset viewer.