Ignore:
File:
1 edited

Legend:

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

    rc0699467 rbfe43d5a  
    4040#include <proc/thread.h>
    4141#include <proc/task.h>
     42#include <proc/uarg.h>
    4243#include <mm/as.h>
    4344#include <mm/slab.h>
     
    4748#include <ipc/ipcrsc.h>
    4849#include <security/cap.h>
    49 #include <lib/elf_load.h>
     50#include <lib/elf.h>
    5051#include <errno.h>
    5152#include <print.h>
    5253#include <syscall/copy.h>
    5354#include <proc/program.h>
     55
     56#ifndef LOADED_PROG_STACK_PAGES_NO
     57#define LOADED_PROG_STACK_PAGES_NO 1
     58#endif
    5459
    5560/**
     
    8590       
    8691        /*
    87          * Create the stack address space area.
     92         * Create the data address space area.
    8893         */
    8994        as_area_t *area = as_area_create(as,
    9095            AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE,
    91             STACK_SIZE, USTACK_ADDRESS, AS_AREA_ATTR_NONE,
    92             &anon_backend, NULL);
     96            LOADED_PROG_STACK_PAGES_NO * PAGE_SIZE, USTACK_ADDRESS,
     97            AS_AREA_ATTR_NONE, &anon_backend, NULL);
    9398        if (!area)
    9499                return ENOMEM;
Note: See TracChangeset for help on using the changeset viewer.