Re: Enumeration of ISA serial ports inconsistent between Linux and GRUB2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08.10.2016 16:00, Greg KH wrote:
As this sequence hasn't changed in the Linux kernel at all, isn't this a
Grub issue?

thanks,

greg k-h
I guess as with any inconsistency between two systems it's a philosophical question which one is 'wrong'. Maybe an interesting question would be what other systems do nowadays. I have no idea, e.g. how Windows handles this, but I just checked Syslinux, and it seems to do the same as Grub2:

--- /syslinux/core/include/bios.h ---
#define SERIAL_BASE     0x0400  /* Base address for 4 serial ports */
...
static inline uint16_t get_serial_port(uint16_t port)
{
     /* Magic array in BIOS memory, contains four entries */
     const uint16_t * const serial_ports = (const uint16_t *)SERIAL_BASE;

     /*
      * If port > 3 then the port is simply the I/O base address
      */
     if (port > 3)
         return port;

     /* Get the I/O port from the BIOS */
     return serial_ports[port];
}
---
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux