Ignore:
File:
1 edited

Legend:

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

    re16e2ba4 rbfe43d5  
    4848#include <ipc/ipcrsc.h>
    4949#include <security/cap.h>
    50 #include <lib/elf_load.h>
     50#include <lib/elf.h>
    5151#include <errno.h>
    5252#include <print.h>
    5353#include <syscall/copy.h>
    5454#include <proc/program.h>
     55
     56#ifndef LOADED_PROG_STACK_PAGES_NO
     57#define LOADED_PROG_STACK_PAGES_NO 1
     58#endif
    5559
    5660/**
     
    8690       
    8791        /*
    88          * Create the stack address space area.
     92         * Create the data address space area.
    8993         */
    9094        as_area_t *area = as_area_create(as,
    9195            AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE,
    92             STACK_SIZE, USTACK_ADDRESS, AS_AREA_ATTR_NONE,
    93             &anon_backend, NULL);
     96            LOADED_PROG_STACK_PAGES_NO * PAGE_SIZE, USTACK_ADDRESS,
     97            AS_AREA_ATTR_NONE, &anon_backend, NULL);
    9498        if (!area)
    9599                return ENOMEM;
Note: See TracChangeset for help on using the changeset viewer.