Commit 77dfe7f4 authored by Vikram Narayanan's avatar Vikram Narayanan
Browse files

lcd/testmod: Add missing pre/post hook headers


Signed-off-by: Vikram Narayanan's avatarVikram Narayanan <vikram186@gmail.com>
parent 6abf74b2
#include <lcd_config/pre_hook.h> #include <lcd_config/pre_hook.h>
#include <liblcd/liblcd.h> #include <liblcd/liblcd.h>
#include "../nullnet_caller.h" #include "../nullnet_caller.h"
#include <lcd_config/post_hook.h> #include <lcd_config/post_hook.h>
int dispatch_async_loop(struct thc_channel *channel, struct fipc_message *message, struct glue_cspace *cspace, struct cptr sync_ep) int dispatch_async_loop(struct thc_channel *channel, struct fipc_message *message, struct glue_cspace *cspace, struct cptr sync_ep)
......
#include <lcd_config/pre_hook.h>
#include <libcap.h> #include <libcap.h>
#include <liblcd/liblcd.h> #include <liblcd/liblcd.h>
#include <liblcd/sync_ipc_poll.h> #include <liblcd/sync_ipc_poll.h>
#include <liblcd/glue_cspace.h> #include <liblcd/glue_cspace.h>
#include "../../glue_helper.h" #include "../../glue_helper.h"
#include "../nullnet_caller.h" #include "../nullnet_caller.h"
#include <lcd_config/post_hook.h>
struct cptr sync_ep; struct cptr sync_ep;
static struct glue_cspace *c_cspace; static struct glue_cspace *c_cspace;
struct thc_channel *net_async; struct thc_channel *net_async;
...@@ -104,16 +109,15 @@ static int setup_async_channel(cptr_t *buf1_cptr_out, cptr_t *buf2_cptr_out, ...@@ -104,16 +109,15 @@ static int setup_async_channel(cptr_t *buf1_cptr_out, cptr_t *buf2_cptr_out,
LIBLCD_ERR("ring chnl init"); LIBLCD_ERR("ring chnl init");
goto fail7; goto fail7;
} }
{ if (0) {
size_t sz = sizeof(*chnl); size_t sz = sizeof(*chnl);
int idx = kmalloc_index(sz); int idx = kmalloc_index(sz);
int i = 0; int i = 0;
for (i = 0; i < sizeof(kmalloc_caches)/sizeof(kmalloc_caches[0]); i++) { for (i = 0; i < sizeof(kmalloc_caches)/sizeof(kmalloc_caches[0]); i++) {
printk("--> idx %d | cache addr %p\n", i, kmalloc_caches[i]); printk("--> idx %d | cache addr %p", i, kmalloc_caches[i]);
} }
LIBLCD_MSG("==> Prep buffers 2, size %zu | idx %d | ptr %p", LIBLCD_MSG("==> Prep buffers 2, size %zu | idx %d | ptr %p | KMALOC_MIN %d, SHIFT_LOW %d",
sz, idx, kmalloc_caches[idx]); sz, idx, kmalloc_caches[idx], KMALLOC_MIN_SIZE, KMALLOC_SHIFT_LOW);
} }
/* /*
* Install async channel in async dispatch loop * Install async channel in async dispatch loop
......
#include <lcd_config/pre_hook.h>
#include <libcap.h> #include <libcap.h>
#include <liblcd/liblcd.h> #include <liblcd/liblcd.h>
#include <liblcd/sync_ipc_poll.h> #include <liblcd/sync_ipc_poll.h>
...@@ -8,8 +10,9 @@ ...@@ -8,8 +10,9 @@
#include <asm/cacheflush.h> #include <asm/cacheflush.h>
#include <lcd_config/post_hook.h>
struct thc_channel *net_async; struct thc_channel *net_async;
//struct glue_cspace *c_cspace;
struct cptr sync_ep; struct cptr sync_ep;
struct trampoline_hidden_args { struct trampoline_hidden_args {
......
Supports Markdown
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