Commit f69072d9 authored by Charlie Jacobsen's avatar Charlie Jacobsen Committed by Vikram Narayanan

Stubbed out microkernel, starting lcd loader.

parent 62815dba
/*
* Look up the cnode at c in cspace. No locking required by caller.
* Returns non-zero on error.
*/
int lcd_cnode_lookup(struct cspace *cspace, cptr_t c, struct cnode **out);
/*
* Confirms src_cptr and dest_cptr point at valid slots. Confirms src
* has grant rights to cap at src_cptr. Transfers cap to dest_cptr, updates
* cdt. No locking required by caller. Returns non-zero on error.
*/
int lcd_cnode_grant(struct cspace *src, struct cspace *dest,
cptr_t src_cptr, cptr_t dest_cptr, unsigned int rights);
This diff is collapsed.
/*
* Author: Charles Jacobsen <charlesj@cs.utah.edu>
* Copyright: University of Utah
*
*/
#ifndef LCD_PROTOTYPE_LCD_MSG_H
#define LCD_PROTOTYPE_LCD_MSG_H
#define LCD_ERR(fmt, args...) __lcd_err(__FILE__, __LINE__, fmt "\n" , ##args)
static inline void __lcd_err(char *file, int lineno, char *fmt, ...)
{
va_list args;
pr_err("lcd-proto: %s:%d: error: ", file, lineno);
va_start(args, fmt);
vprintk(fmt, args);
va_end(args);
}
#define LCD_MSG(fmt, args...) __lcd_msg(__FILE__, __LINE__, fmt "\n" , ##args)
static inline void __lcd_msg(char *file, int lineno, char *fmt, ...)
{
va_list args;
pr_info("lcd-proto: %s:%d: note: ", file, lineno);
va_start(args, fmt);
vprintk(fmt, args);
va_end(args);
}
#define LCD_WARN(fmt, args...) __lcd_warn(__FILE__, __LINE__, fmt "\n" , ##args)
static inline void __lcd_warn(char *file, int lineno, char *fmt, ...)
{
va_list args;
pr_warn("lcd-proto: %s:%d: warning: ", file, lineno);
va_start(args, fmt);
vprintk(fmt, args);
va_end(args);
}
#endif /* LCD_PROTOTYPE_LCD_MSG_H */
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment