Subversion Repositories HelenOS

Rev

Rev 3844 | Rev 3900 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3844 Rev 3880
Line 279... Line 279...
279
    outb(0x64, 0xfe);
279
    outb(0x64, 0xfe);
280
    while (1)
280
    while (1)
281
        ;
281
        ;
282
}
282
}
283
 
283
 
-
 
284
/** Construct function pointer
-
 
285
 *
-
 
286
 * @param fptr   function pointer structure
-
 
287
 * @param addr   function address
-
 
288
 * @param caller calling function address
-
 
289
 *
-
 
290
 * @return address of the function pointer
-
 
291
 *
-
 
292
 */
-
 
293
void *arch_construct_function(fncptr_t *fptr, void *addr, void *caller)
-
 
294
{
-
 
295
    fptr->fnc = (unative_t) addr;
-
 
296
    fptr->gp = ((unative_t *) caller)[1];
-
 
297
   
-
 
298
    return (void *) fptr;
-
 
299
}
-
 
300
 
284
/** @}
301
/** @}
285
 */
302
 */