Skip to content

Commit

Permalink
examples/virtio: fix for latest sDDF
Browse files Browse the repository at this point in the history
Some minor breaking changes with includes and defines
  • Loading branch information
Ivan-Velickovic committed Jan 19, 2024
1 parent 849fade commit a11884c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/virtio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ CFLAGS := -mstrict-align \
-I$(SDDF_SERIAL_RINGBUFFER)/include \
-I$(SDDF_SERIAL_DRIVER)/include \
-I$(SDDF) \
-I$(SDDF)/include \
-DBOARD_$(BOARD) \
-DCONFIG_$(CONFIG) \
-target aarch64-none-elf
Expand Down Expand Up @@ -173,7 +174,7 @@ $(BUILD_DIR)/%.o: $(VMM_SRC_DIR)/virtio/%.c Makefile
$(CC) -c $(CFLAGS) $< -o $@

$(BUILD_DIR)/%.o: $(SDDF_SERIAL_COMPONENTS)/%.c Makefile
$(CC) -c $(CFLAGS) -DNUM_CLIENTS=2 -DTRANSFER_WITH_COLOUR=1 $< -o $@
$(CC) -c $(CFLAGS) -DSERIAL_NUM_CLIENTS=2 -DSERIAL_TRANSFER_WITH_COLOUR=1 $< -o $@

$(BUILD_DIR)/%.o: $(SDDF_SERIAL_RINGBUFFER)/%.c Makefile
$(CC) -c $(CFLAGS) $< -o $@
Expand Down
2 changes: 1 addition & 1 deletion examples/virtio/vmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "vcpu.h"
#include "virtio/virtio.h"
#include "virtio/console.h"
#include "serial/libserialsharedringbuffer/include/shared_ringbuffer.h"
#include <sddf/serial/shared_ringbuffer.h>

/*
* As this is just an example, for simplicity we just make the size of the
Expand Down
2 changes: 1 addition & 1 deletion src/virtio/mmio.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <stdint.h>
#include "util/util.h"
#include "virtio/virtq.h"
#include "serial/libserialsharedringbuffer/include/shared_ringbuffer.h"
#include <sddf/serial/shared_ringbuffer.h>

// table 4.1
#define VIRTIO_MMIO_DEV_MAGIC 0x74726976 // "virt"
Expand Down

0 comments on commit a11884c

Please sign in to comment.