.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Parse the EFI PCDP table to locate the console device. |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * Khalid Aziz <khalid.aziz@hp.com> |
---|
6 | 7 | * Alex Williamson <alex.williamson@hp.com> |
---|
7 | 8 | * Bjorn Helgaas <bjorn.helgaas@hp.com> |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify |
---|
10 | | - * it under the terms of the GNU General Public License version 2 as |
---|
11 | | - * published by the Free Software Foundation. |
---|
12 | 9 | */ |
---|
13 | 10 | |
---|
14 | 11 | #include <linux/acpi.h> |
---|
.. | .. |
---|
83 | 80 | #endif |
---|
84 | 81 | } |
---|
85 | 82 | |
---|
| 83 | +extern unsigned long hcdp_phys; |
---|
| 84 | + |
---|
86 | 85 | int __init |
---|
87 | 86 | efi_setup_pcdp_console(char *cmdline) |
---|
88 | 87 | { |
---|
.. | .. |
---|
92 | 91 | int i, serial = 0; |
---|
93 | 92 | int rc = -ENODEV; |
---|
94 | 93 | |
---|
95 | | - if (efi.hcdp == EFI_INVALID_TABLE_ADDR) |
---|
| 94 | + if (hcdp_phys == EFI_INVALID_TABLE_ADDR) |
---|
96 | 95 | return -ENODEV; |
---|
97 | 96 | |
---|
98 | | - pcdp = early_memremap(efi.hcdp, 4096); |
---|
99 | | - printk(KERN_INFO "PCDP: v%d at 0x%lx\n", pcdp->rev, efi.hcdp); |
---|
| 97 | + pcdp = early_memremap(hcdp_phys, 4096); |
---|
| 98 | + printk(KERN_INFO "PCDP: v%d at 0x%lx\n", pcdp->rev, hcdp_phys); |
---|
100 | 99 | |
---|
101 | 100 | if (strstr(cmdline, "console=hcdp")) { |
---|
102 | 101 | if (pcdp->rev < 3) |
---|