Changeset 3b8a990 in mainline for kernel/generic/src/proc/program.c


Ignore:
Timestamp:
2012-11-07T21:41:57Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0aae87a6
Parents:
01029fc
Message:

Create also the uspace thread stacks with guard pages and late reservations.

File:
1 edited

Legend:

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

    r01029fc r3b8a990  
    8181        uintptr_t virt = USTACK_ADDRESS;
    8282        as_area_t *area = as_area_create(as,
    83             AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE,
    84             STACK_SIZE, AS_AREA_ATTR_NONE, &anon_backend, NULL, &virt, 0);
     83            AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE | AS_AREA_GUARD |
     84            AS_AREA_LATE_RESERVE, STACK_SIZE, AS_AREA_ATTR_NONE, &anon_backend,
     85            NULL, &virt, 0);
    8586        if (!area) {
    8687                task_destroy(prg->task);
Note: See TracChangeset for help on using the changeset viewer.