From: Alan Cox Date: Fri, 15 May 2015 23:33:52 +0000 (+0100) Subject: trs80: swap hd and fd over X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=ebcadf9bd534354bc2fe93a7b96f5c3d5b7e5b08;p=FUZIX.git trs80: swap hd and fd over Somewhere along the line convention appears to have ended up that the block generics are device 0 (in effect hd and sd devices). Make trs80 follow the pattern. Conveniently this also means hitting return boots off hd which is nice. --- diff --git a/Kernel/platform-trs80/devices.c b/Kernel/platform-trs80/devices.c index f633f8f4..ad1b01fa 100644 --- a/Kernel/platform-trs80/devices.c +++ b/Kernel/platform-trs80/devices.c @@ -12,10 +12,10 @@ struct devsw dev_tab[] = /* The device driver switch table */ { - /* 0: /dev/fd Floppy disc block devices */ - { fd_open, no_close, fd_read, fd_write, no_ioctl }, - /* 1: /dev/hd Hard disc block devices */ + /* 0: /dev/hd Hard disc block devices */ { hd_open, no_close, hd_read, hd_write, no_ioctl }, + /* 1: /dev/fd Floppy disc block devices */ + { fd_open, no_close, fd_read, fd_write, no_ioctl }, /* 2: /dev/tty TTY devices */ { tty_open, trstty_close, tty_read, tty_write, gfx_ioctl }, /* 3: /dev/lpr Printer devices */