Changes in / [e3fa1720:9a791eb9] in mainline
- Files:
-
- 1 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/acpi/acpi.c
re3fa1720 r9a791eb9 174 174 { 175 175 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 && 177 177 rsdp_check(&base[i])) 178 178 return &base[i]; -
kernel/generic/include/cap/cap.h
re3fa1720 r9a791eb9 137 137 extern void cap_free(struct task *, cap_handle_t); 138 138 139 extern kobject_t *kobject_alloc(unsigned int);140 extern void kobject_free(kobject_t *);141 139 extern void kobject_initialize(kobject_t *, kobject_type_t, void *, 142 140 kobject_ops_t *); -
kernel/generic/src/cap/cap.c
re3fa1720 r9a791eb9 93 93 94 94 static slab_cache_t *cap_cache; 95 static slab_cache_t *kobject_cache;96 95 97 96 static size_t caps_hash(const ht_link_t *item) … … 124 123 cap_cache = slab_cache_create("cap_t", sizeof(cap_t), 0, NULL, 125 124 NULL, 0); 126 kobject_cache = slab_cache_create("kobject_t", sizeof(kobject_t), 0,127 NULL, NULL, 0);128 125 } 129 126 … … 397 394 } 398 395 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 409 396 /** Initialize kernel object 410 397 * … … 475 462 if (atomic_postdec(&kobj->refcnt) == 1) { 476 463 kobj->ops->destroy(kobj->raw); 477 kobject_free(kobj);464 free(kobj); 478 465 } 479 466 } -
kernel/generic/src/ipc/ipc.c
re3fa1720 r9a791eb9 120 120 return NULL; 121 121 122 kobject_t *kobj = kobject_alloc(0);122 kobject_t *kobj = (kobject_t *) malloc(sizeof(kobject_t)); 123 123 if (!kobj) { 124 124 slab_free(call_cache, call); -
kernel/generic/src/ipc/ipcrsc.c
re3fa1720 r9a791eb9 76 76 return ENOMEM; 77 77 } 78 kobject_t *kobj = kobject_alloc(FRAME_ATOMIC);78 kobject_t *kobj = malloc(sizeof(kobject_t)); 79 79 if (!kobj) { 80 80 cap_free(TASK, handle); -
kernel/generic/src/ipc/irq.c
re3fa1720 r9a791eb9 356 356 } 357 357 358 kobject_t *kobject = kobject_alloc(FRAME_ATOMIC);358 kobject_t *kobject = malloc(sizeof(kobject_t)); 359 359 if (!kobject) { 360 360 cap_free(TASK, handle); -
kernel/generic/src/synch/syswaitq.c
re3fa1720 r9a791eb9 45 45 46 46 #include <stdint.h> 47 #include <stdlib.h> 47 48 48 49 static slab_cache_t *waitq_cache; … … 95 96 waitq_initialize(wq); 96 97 97 kobject_t *kobj = kobject_alloc(0);98 kobject_t *kobj = (kobject_t *) malloc(sizeof(kobject_t)); 98 99 if (!kobj) { 99 100 slab_free(waitq_cache, wq); … … 106 107 if (rc != EOK) { 107 108 slab_free(waitq_cache, wq); 108 kobject_free(kobj);109 free(kobj); 109 110 return (sys_errno_t) rc; 110 111 } … … 113 114 if (rc != EOK) { 114 115 cap_free(TASK, handle); 115 kobject_free(kobj);116 free(kobj); 116 117 slab_free(waitq_cache, wq); 117 118 return (sys_errno_t) rc; -
tools/toolchain.sh
re3fa1720 r9a791eb9 31 31 BINUTILS_GDB_GIT="https://github.com/HelenOS/binutils-gdb.git" 32 32 33 BINUTILS_BRANCH="binutils-2_3 1_1-helenos"34 BINUTILS_VERSION="2.3 1.1"35 36 GDB_BRANCH="gdb-8_ 2-helenos"37 GDB_VERSION="8. 2"33 BINUTILS_BRANCH="binutils-2_30-helenos" 34 BINUTILS_VERSION="2.30" 35 36 GDB_BRANCH="gdb-8_1-helenos" 37 GDB_VERSION="8.1" 38 38 39 39 GCC_GIT="https://github.com/HelenOS/gcc.git" -
tools/xcw/bin/helenos-bld-config
re3fa1720 r9a791eb9 58 58 *.--cflags) extract_field "HELENOS_CFLAGS" "$CONFIG_MK";; 59 59 *.--ldflags) extract_field "HELENOS_LDFLAGS" "$CONFIG_MK";; 60 *.--install-dir) echo "$(realpath "$SRC_ROOT/uspace/overlay")";;61 60 (*) 62 61 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 71 63 exit 1;; 72 64 esac
Note:
See TracChangeset
for help on using the changeset viewer.