| 1 | Index: arch/x86/archtables.c |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- arch/x86/archtables.c (revision 453) |
|---|
| 4 | +++ arch/x86/archtables.c (working copy) |
|---|
| 5 | @@ -25,6 +25,7 @@ |
|---|
| 6 | #include <console.h> |
|---|
| 7 | #include <string.h> |
|---|
| 8 | #include <tables.h> |
|---|
| 9 | +#include <uart8250.h> |
|---|
| 10 | //#include <cpu/cpu.h> |
|---|
| 11 | //#include <pirq_routing.h> |
|---|
| 12 | //#include <smp/mpspec.h> |
|---|
| 13 | @@ -40,6 +41,11 @@ |
|---|
| 14 | unsigned int base; |
|---|
| 15 | } __attribute__((packed)); |
|---|
| 16 | |
|---|
| 17 | +void write_legacy_tables() { |
|---|
| 18 | + u16* serial_port_table = 0x400; |
|---|
| 19 | + serial_port_table[0]=TTYSx_BASE; |
|---|
| 20 | +} |
|---|
| 21 | + |
|---|
| 22 | #warning enable disabled code in archtables.c |
|---|
| 23 | |
|---|
| 24 | #if 0 |
|---|
| 25 | @@ -140,6 +146,7 @@ |
|---|
| 26 | write_linuxbios_table( |
|---|
| 27 | low_table_start, low_table_end, |
|---|
| 28 | rom_table_start, rom_table_end); |
|---|
| 29 | + write_legacy_tables(); |
|---|
| 30 | |
|---|
| 31 | return get_lb_mem(); |
|---|
| 32 | } |
|---|