kvisc/vm/pc/sym.h

20 lines
389 B
C
Raw Permalink Normal View History

2019-06-19 13:47:10 +02:00
// The OS/K Team licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
2019-08-14 20:23:05 +02:00
#define SYMLEN_MAX 46
2019-06-19 13:47:10 +02:00
#define SYMTAB_LEN 4096
typedef struct sym_t sym_t;
struct sym_t
{
ulong addr;
2019-08-14 20:23:05 +02:00
char name[SYMLEN_MAX+1];
2019-06-19 13:47:10 +02:00
};
extern sym_t symtab[SYMTAB_LEN];
int create_symtab(const char *name);
sym_t *find_sym_by_addr(ulong addr);