Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
yhzhang0128 committed Oct 7, 2022
1 parent 742704e commit df51b66
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions library/egos.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
#pragma once

struct earth {
/* QEMU or Arty */
enum {
QEMU,
ARTY
} platform;

/* CPU interface */
int (*intr_enable)();
int (*intr_register)(void (*handler)(int));
Expand All @@ -30,6 +24,9 @@ struct earth {
int (*tty_fatal)(const char *format, ...);
int (*tty_success)(const char *format, ...);
int (*tty_critical)(const char *format, ...);

/* QEMU or Arty, detected in mmu_init() */
enum { QEMU, ARTY } platform;
};

struct grass {
Expand Down

0 comments on commit df51b66

Please sign in to comment.