]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
configs: fixed typo in e1000-demo pio_bitmap
authorGeorg Schiesser <georg.schiesser@opentech.at>
Tue, 10 May 2016 21:39:42 +0000 (23:39 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Wed, 11 May 2016 05:36:44 +0000 (07:36 +0200)
The pio_bitmap initialization incorrectly assigns overlapping ranges to
different values, similar to commit 886ca63f.  As Jan pointed out:
"Fortunately, it was harmless because succeeding initializations
overwrote this exceeding one."

see also: https://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html

Signed-off-by: Georg Schiesser <georg.schiesser@opentech.at>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
configs/e1000-demo.c

index 088d92ac9ddce9d1e9ee49006d80992292d2cf92..b935f079c884d0509ae88cea1c60f05906b2c631 100644 (file)
@@ -69,7 +69,7 @@ struct {
        .pio_bitmap = {
                [     0/8 ...  0x2f7/8] = -1,
                [ 0x2f8/8 ...  0x2ff/8] = 0, /* serial2 */
-               [ 0x300/8 ... 0xcfff/8] = -1,
+               [ 0x300/8 ... 0xbfff/8] = -1,
                [0xc000/8 ... 0xc03f/8] = 0, /* e1000 */
                [0xc040/8 ... 0xdfff/8] = -1,
                [0xe000/8 ... 0xe007/8] = 0, /* OXPCIe952 serial2 */