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