1/**
2 * \file
3 * \brief Distributed (percore) memory server: code for non_stealing version
4 */
5
6/*
7 * Copyright (c) 2007-2011, ETH Zurich.
8 * All rights reserved.
9 *
10 * This file is distributed under the terms in the attached LICENSE file.
11 * If you do not find this file, copies can be found by writing to:
12 * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group.
13 */
14
15#include <inttypes.h>
16#include <barrelfish/barrelfish.h>
17
18#include "mem_serv.h"
19#include "steal.h"
20
21coreid_t mycore;
22
23
24errval_t percore_steal_handler_common(uint8_t bits,
25                                      genpaddr_t minbase,
26                                      genpaddr_t maxlimit,
27                                      struct capref *retcap)
28{
29    *retcap = NULL_CAP;
30    return ERR_NOTIMP;
31}
32
33void try_steal(errval_t *ret, struct capref *cap, uint8_t bits,
34                   genpaddr_t minbase, genpaddr_t maxlimit)
35{
36    //DEBUG_ERR(ret, "allocating %d bits in 0x%"PRIxGENPADDR "-0x%"
37    //          PRIxGENPADDR " failed", bits, minbase, maxlimit);
38    // debug_printf("failed percore alloc request: bits: %d NOT STEALING\n",
39    //             bits);
40    *cap = NULL_CAP;
41}
42
43
44errval_t init_peers(coreid_t core, int len_cores, coreid_t *cores)
45{
46    mycore = core;
47    return SYS_ERR_OK;
48}
49
50
51int main(int argc, char ** argv)
52{
53    return common_main(argc, argv);
54}
55
56