Skip to content

Commit

Permalink
Updated network code
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-jonsson committed Nov 12, 2024
1 parent a0d3be0 commit b6aefe9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:

jobs:
rpi-build:
name: RPI3
name: RasberryPi
runs-on: ubuntu-latest

steps:
Expand Down
4 changes: 2 additions & 2 deletions front/rpi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ endif

FLAGS_VXT = -DVXT_NO_LIBC -DFRONTEND_VIDEO_RED=2 -DFRONTEND_VIDEO_GREEN=1 -DFRONTEND_VIDEO_BLUE=0 -DFRONTEND_VIDEO_ALPHA=3 -I$(VXTHOME)/include -I../common

CFLAGS := $(FLAGS_VXT)
CPPFLAGS := -fpermissive $(FLAGS_VXT)
CFLAGS = $(FLAGS_VXT)
CPPFLAGS = -fpermissive $(FLAGS_VXT)

OBJS_VXT = $(VXTHOME)/cpu.o \
$(VXTHOME)/disk.o \
Expand Down
4 changes: 2 additions & 2 deletions front/rpi/ethernet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ static void out(struct ethernet *n, vxt_word port, vxt_byte data) {
case 0xFF: // copy_package
// Do we have a valid buffer?
if (r->es || r->di) {
for (int i = 0; i < n->rx_len; i++)
for (int i = 0; i < (int)n->rx_len; i++)
vxt_system_write_byte(s, VXT_POINTER(r->es, r->di + i), n->rx_buffer[i]);

// Callback expects buffer in DS:SI
Expand All @@ -222,7 +222,7 @@ static void out(struct ethernet *n, vxt_word port, vxt_byte data) {
}
}

static vxt_error reset(struct ethernet *n, struct ebridge *state) {
static vxt_error reset(struct ethernet *n, struct ethernet *state) {
if (state)
return VXT_CANT_RESTORE;

Expand Down

0 comments on commit b6aefe9

Please sign in to comment.