Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/as.c

    rb7fd2a0 r82d515e9  
    111111as_t *AS_KERNEL = NULL;
    112112
    113 NO_TRACE static errno_t as_constructor(void *obj, unsigned int flags)
     113NO_TRACE static int as_constructor(void *obj, unsigned int flags)
    114114{
    115115        as_t *as = (as_t *) obj;
     
    760760 *
    761761 */
    762 errno_t as_area_resize(as_t *as, uintptr_t address, size_t size, unsigned int flags)
     762int as_area_resize(as_t *as, uintptr_t address, size_t size, unsigned int flags)
    763763{
    764764        if (!IS_ALIGNED(address, PAGE_SIZE))
     
    833833                            btree_node_t, leaf_link);
    834834                       
    835                         if ((cond = (node->keys != 0))) {
     835                        if ((cond = (bool) node->keys)) {
    836836                                uintptr_t ptr = node->key[node->keys - 1];
    837837                                size_t node_size =
     
    969969 *
    970970 */
    971 errno_t as_area_destroy(as_t *as, uintptr_t address)
     971int as_area_destroy(as_t *as, uintptr_t address)
    972972{
    973973        mutex_lock(&as->lock);
     
    10851085 *
    10861086 */
    1087 errno_t as_area_share(as_t *src_as, uintptr_t src_base, size_t acc_size,
     1087int as_area_share(as_t *src_as, uintptr_t src_base, size_t acc_size,
    10881088    as_t *dst_as, unsigned int dst_flags_mask, uintptr_t *dst_base,
    10891089    uintptr_t bound)
     
    12481248 *
    12491249 */
    1250 errno_t as_area_change_flags(as_t *as, unsigned int flags, uintptr_t address)
     1250int as_area_change_flags(as_t *as, unsigned int flags, uintptr_t address)
    12511251{
    12521252        /* Flags for the new memory mapping */
     
    22082208}
    22092209
    2210 sys_errno_t sys_as_area_resize(uintptr_t address, size_t size, unsigned int flags)
    2211 {
    2212         return (sys_errno_t) as_area_resize(AS, address, size, 0);
    2213 }
    2214 
    2215 sys_errno_t sys_as_area_change_flags(uintptr_t address, unsigned int flags)
    2216 {
    2217         return (sys_errno_t) as_area_change_flags(AS, flags, address);
    2218 }
    2219 
    2220 sys_errno_t sys_as_area_destroy(uintptr_t address)
    2221 {
    2222         return (sys_errno_t) as_area_destroy(AS, address);
     2210sysarg_t sys_as_area_resize(uintptr_t address, size_t size, unsigned int flags)
     2211{
     2212        return (sysarg_t) as_area_resize(AS, address, size, 0);
     2213}
     2214
     2215sysarg_t sys_as_area_change_flags(uintptr_t address, unsigned int flags)
     2216{
     2217        return (sysarg_t) as_area_change_flags(AS, flags, address);
     2218}
     2219
     2220sysarg_t sys_as_area_destroy(uintptr_t address)
     2221{
     2222        return (sysarg_t) as_area_destroy(AS, address);
    22232223}
    22242224
Note: See TracChangeset for help on using the changeset viewer.