Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/program.c

    rbfe43d5 rc0699467  
    4040#include <proc/thread.h>
    4141#include <proc/task.h>
    42 #include <proc/uarg.h>
    4342#include <mm/as.h>
    4443#include <mm/slab.h>
     
    4847#include <ipc/ipcrsc.h>
    4948#include <security/cap.h>
    50 #include <lib/elf.h>
     49#include <lib/elf_load.h>
    5150#include <errno.h>
    5251#include <print.h>
    5352#include <syscall/copy.h>
    5453#include <proc/program.h>
    55 
    56 #ifndef LOADED_PROG_STACK_PAGES_NO
    57 #define LOADED_PROG_STACK_PAGES_NO 1
    58 #endif
    5954
    6055/**
     
    9085       
    9186        /*
    92          * Create the data address space area.
     87         * Create the stack address space area.
    9388         */
    9489        as_area_t *area = as_area_create(as,
    9590            AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE,
    96             LOADED_PROG_STACK_PAGES_NO * PAGE_SIZE, USTACK_ADDRESS,
    97             AS_AREA_ATTR_NONE, &anon_backend, NULL);
     91            STACK_SIZE, USTACK_ADDRESS, AS_AREA_ATTR_NONE,
     92            &anon_backend, NULL);
    9893        if (!area)
    9994                return ENOMEM;
Note: See TracChangeset for help on using the changeset viewer.