Ignore:
File:
1 edited

Legend:

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

    r26aafe8 rbfe43d5  
    5454#include <proc/program.h>
    5555
     56#ifndef LOADED_PROG_STACK_PAGES_NO
     57#define LOADED_PROG_STACK_PAGES_NO 1
     58#endif
     59
    5660/**
    5761 * Points to the binary image used as the program loader. All non-initial
     
    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.