mirror of https://github.com/m-labs/artiq.git
Remove redundant ksupport API.
This commit is contained in:
parent
72a3a12d52
commit
f8e50f2b0c
|
@ -45,10 +45,6 @@ def cache_get(key: TStr) -> TList(TInt32):
|
|||
def cache_put(key: TStr, value: TList(TInt32)):
|
||||
raise NotImplementedError("syscall not simulated")
|
||||
|
||||
@syscall
|
||||
def cache_clear(key: TStr):
|
||||
raise NotImplementedError("syscall not simulated")
|
||||
|
||||
class Core:
|
||||
"""Core device driver.
|
||||
|
||||
|
@ -128,7 +124,3 @@ class Core:
|
|||
@kernel
|
||||
def put_cache(self, key, value):
|
||||
return cache_put(key, value)
|
||||
|
||||
@kernel
|
||||
def clear_cache(self, key):
|
||||
return cache_clear(key)
|
||||
|
|
|
@ -124,7 +124,6 @@ static const struct symbol runtime_exports[] = {
|
|||
|
||||
{"cache_get", &cache_get},
|
||||
{"cache_put", &cache_put},
|
||||
{"cache_clear", &cache_clear},
|
||||
|
||||
/* end */
|
||||
{NULL, NULL}
|
||||
|
@ -492,11 +491,6 @@ void cache_put(const char *key, struct artiq_list value)
|
|||
}
|
||||
}
|
||||
|
||||
void cache_clear(const char *key)
|
||||
{
|
||||
cache_put(key, (struct artiq_list) { 0, NULL });
|
||||
}
|
||||
|
||||
void lognonl(const char *fmt, ...)
|
||||
{
|
||||
struct msg_log request;
|
||||
|
|
|
@ -14,7 +14,6 @@ void send_rpc(int service, const char *tag, ...);
|
|||
int recv_rpc(void *slot);
|
||||
struct artiq_list cache_get(const char *key);
|
||||
void cache_put(const char *key, struct artiq_list value);
|
||||
void cache_clear(const char *key);
|
||||
void lognonl(const char *fmt, ...);
|
||||
void log(const char *fmt, ...);
|
||||
|
||||
|
|
Loading…
Reference in New Issue