2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-11 12:46:37 +08:00
artiq/soc/runtime/kloader.h

24 lines
590 B
C
Raw Normal View History

#ifndef __KLOADER_H
#define __KLOADER_H
2015-04-22 15:01:32 +08:00
#define KERNELCPU_EXEC_ADDRESS 0x40400000
2015-07-28 02:12:14 +08:00
#define KERNELCPU_PAYLOAD_ADDRESS 0x40408000
extern long long int now;
typedef void (*kernel_function)(void);
int kloader_load(void *buffer, int length);
kernel_function kloader_find(const char *name);
void kloader_start_bridge(void);
void kloader_start_idle_kernel(void);
void kloader_start_user_kernel(kernel_function k);
2015-05-09 17:11:34 +08:00
void kloader_stop(void);
int kloader_validate_kpointer(void *p);
int kloader_is_essential_kmsg(int msgtype);
void kloader_service_essential_kmsg(void);
#endif /* __KLOADER_H */