Subversion Repositories HelenOS

Rev

Rev 2542 | Rev 2552 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2542 Rev 2543
Line 118... Line 118...
118
    /*
118
    /*
119
     * Allocate and initialize the Path Lookup Buffer.
119
     * Allocate and initialize the Path Lookup Buffer.
120
     */
120
     */
121
    list_initialize(&plb_head);
121
    list_initialize(&plb_head);
122
    plb = as_get_mappable_page(PLB_SIZE);
122
    plb = as_get_mappable_page(PLB_SIZE);
-
 
123
    if (!plb) {
-
 
124
        printf("Cannot allocate a mappable piece of address space\n");
-
 
125
        return ENOMEM;
-
 
126
    }
-
 
127
    if (as_area_create(plb, PLB_SIZE, AS_AREA_READ | AS_AREA_WRITE |
-
 
128
        AS_AREA_CACHEABLE) != plb) {
-
 
129
        printf("Cannot create address space area.\n");
-
 
130
        return ENOMEM;
-
 
131
    }
123
//  memset(plb, 0, PLB_SIZE);
132
    memset(plb, 0, PLB_SIZE);
124
   
133
   
125
    /*
134
    /*
126
     * Set a connectio handling function/fibril.
135
     * Set a connectio handling function/fibril.
127
     */
136
     */
128
    async_set_client_connection(vfs_connection);
137
    async_set_client_connection(vfs_connection);