Add idle kernel

Only spawns 1 thread that does a busy wait up to a counter.  Other cores
do not issue any instructions after the scheduling prologue.
This commit is contained in:
Hansung Kim
2024-06-20 14:00:32 -07:00
parent 63418a7496
commit 11e6d34e1c
4 changed files with 339 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#ifndef _COMMON_H_
#define _COMMON_H_
#include <cstdint>
#define KERNEL_ARG_DEV_MEM_ADDR 0x9fff0000
#define DEV_SMEM_START_ADDR 0xff000000
typedef struct {
uint32_t dim_m;
uint32_t dim_n;
uint32_t dim_k;
uint64_t addr_a;
uint64_t addr_b;
uint64_t addr_c;
} kernel_arg_t;
#endif