Support RPi version 2 (ARMv7)

This commit is contained in:
David Schmenk 2015-02-22 22:10:47 +00:00
parent 0e1c6a3eed
commit 19ec719d07
4 changed files with 13 additions and 5 deletions

View File

@ -1,5 +1,5 @@
PACKAGE=a2pi PACKAGE=a2pi
VERSION=0.1.8 VERSION=0.2.0
DIST=$(PACKAGE)-$(VERSION) DIST=$(PACKAGE)-$(VERSION)
DISTDIR=./$(DIST) DISTDIR=./$(DIST)

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
a2pi (0.2.0) unstable; urgency=low
=======
* Add support for Raspberry Pi version 2
-- David Schmenk <dschmenk@gmail.com> Sun, 22 Feb 2015 13:27:30 -0800
a2pi (0.1.8-8) unstable; urgency=low a2pi (0.1.8-8) unstable; urgency=low
======= =======

View File

@ -849,7 +849,7 @@ reset:
{ {
iopkt[0] = a2reqlist->type; iopkt[0] = a2reqlist->type;
write(a2fd, iopkt, 1); write(a2fd, iopkt, 1);
printf("vdrive: status resend request %04X\n", a2reqlist->type); //printf("vdrive: status resend request %04X\n", a2reqlist->type);
} }
break; break;
case 0xA4: /* virtual drive 1 READ call */ case 0xA4: /* virtual drive 1 READ call */
@ -863,7 +863,7 @@ reset:
{ {
iopkt[0] = a2reqlist->type; iopkt[0] = a2reqlist->type;
write(a2fd, iopkt, 1); write(a2fd, iopkt, 1);
printf("vdrive: read resend request %04X\n", a2reqlist->type); //printf("vdrive: read resend request %04X\n", a2reqlist->type);
} }
break; break;
case 0xA8: /* virtual drive 1 WRITE call */ case 0xA8: /* virtual drive 1 WRITE call */
@ -881,7 +881,7 @@ reset:
{ {
iopkt[0] = a2reqlist->type; iopkt[0] = a2reqlist->type;
write(a2fd, iopkt, 1); write(a2fd, iopkt, 1);
printf("vdrive: write resend request %04X\n", a2reqlist->type); //printf("vdrive: write resend request %04X\n", a2reqlist->type);
} }
break; break;
case 0xAC: /* virtual clock TIME call */ case 0xAC: /* virtual clock TIME call */
@ -893,7 +893,7 @@ reset:
{ {
iopkt[0] = a2reqlist->type; iopkt[0] = a2reqlist->type;
write(a2fd, iopkt, 1); write(a2fd, iopkt, 1);
printf("vclock: resend request %04X\n", a2reqlist->type); //printf("vclock: resend request %04X\n", a2reqlist->type);
} }
break; break;
default: default:

View File

@ -661,6 +661,7 @@ static int prodos_map_errno(int perr)
int uerr = 0; int uerr = 0;
if (perr) if (perr)
{ {
prodos_close(0, 0); /* Close all files */
switch (perr) /* Map ProDOS error to unix errno */ switch (perr) /* Map ProDOS error to unix errno */
{ {
case -PRODOS_ERR_INVLD_PATH: case -PRODOS_ERR_INVLD_PATH: