예제 #1
0
static __init void set_ktext_source(nasid_t client_nasid, nasid_t server_nasid)
{
    kern_vars_t *kvp;

    kvp = &hub_data(client_nasid)->kern_vars;

    KERN_VARS_ADDR(client_nasid) = (unsigned long)kvp;

    kvp->kv_magic = KV_MAGIC;
    kvp->kv_ro_nasid = server_nasid;
    kvp->kv_rw_nasid = master_nasid;
    kvp->kv_ro_baseaddr = NODE_CAC_BASE(server_nasid);
    kvp->kv_rw_baseaddr = NODE_CAC_BASE(master_nasid);
    printk("REPLICATION: ON nasid %d, ktext from nasid %d, kdata from nasid %d\n", client_nasid, server_nasid, master_nasid);
}
예제 #2
0
static __init void set_ktext_source(nasid_t client_nasid, nasid_t server_nasid)
{
	kern_vars_t *kvp;
	cnodeid_t client_cnode;

	client_cnode = NASID_TO_COMPACT_NODEID(client_nasid);

	kvp = &(HUB_DATA(client_nasid)->kern_vars);

	KERN_VARS_ADDR(client_nasid) = (unsigned long)kvp;

	kvp->kv_magic = KV_MAGIC;
	kvp->kv_ro_nasid = server_nasid;
	kvp->kv_rw_nasid = master_nasid;
	kvp->kv_ro_baseaddr = NODE_CAC_BASE(server_nasid);
	kvp->kv_rw_baseaddr = NODE_CAC_BASE(master_nasid);
	printk("REPLICATION: ON nasid %d, ktext from nasid %d, kdata from nasid %d\n", client_nasid, server_nasid, master_nasid);
}