From ebcadf9bd534354bc2fe93a7b96f5c3d5b7e5b08 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 16 May 2015 00:33:52 +0100 Subject: [PATCH] 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. --- Kernel/platform-trs80/devices.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 */ -- 2.34.1