mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-05 01:36:39 +08:00
20 lines
466 B
C
20 lines
466 B
C
#ifndef __KLOADER_H
|
|
#define __KLOADER_H
|
|
|
|
#define KERNELCPU_EXEC_ADDRESS 0x40020000
|
|
#define KERNELCPU_PAYLOAD_ADDRESS 0x40024000
|
|
|
|
typedef void (*kernel_function)(void);
|
|
|
|
int kloader_load(void *buffer, int length);
|
|
kernel_function kloader_find(const char *name);
|
|
|
|
#ifdef ARTIQ_AMP
|
|
void kloader_start_bridge(void);
|
|
void kloader_start_idle_kernel(void);
|
|
void kloader_start_user_kernel(kernel_function k);
|
|
void kloader_stop_kernel(void);
|
|
#endif
|
|
|
|
#endif /* __KLOADER_H */
|