Changeset 5185
- Timestamp:
- Mar 5, 2010 11:03:50 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 54 edited
-
src/Kconfig (modified) (1 diff)
-
src/console/printk.c (modified) (1 diff)
-
src/cpu/x86/smm/smihandler.c (modified) (1 diff)
-
src/cpu/x86/smm/smiutil.c (modified) (2 diffs)
-
src/devices/Kconfig (modified) (2 diffs)
-
src/mainboard/amd/dbm690t/romstage.c (modified) (2 diffs)
-
src/mainboard/amd/pistachio/romstage.c (modified) (2 diffs)
-
src/mainboard/amd/serengeti_cheetah_fam10/romstage.c (modified) (1 diff)
-
src/mainboard/asus/a8n_e/romstage.c (modified) (1 diff)
-
src/mainboard/asus/a8v-e_se/romstage.c (modified) (2 diffs)
-
src/mainboard/asus/m2v-mx_se/romstage.c (modified) (1 diff)
-
src/mainboard/kontron/986lcd-m/romstage.c (modified) (1 diff)
-
src/mainboard/msi/ms7135/romstage.c (modified) (1 diff)
-
src/mainboard/msi/ms7260/romstage.c (modified) (1 diff)
-
src/mainboard/msi/ms9185/romstage.c (modified) (1 diff)
-
src/mainboard/msi/ms9282/romstage.c (modified) (1 diff)
-
src/northbridge/amd/amdfam10/debug.c (modified) (1 diff)
-
src/northbridge/amd/amdfam10/raminit_amdmct.c (modified) (1 diff)
-
src/northbridge/amd/amdk8/debug.c (modified) (1 diff)
-
src/northbridge/amd/amdk8/raminit_f.c (modified) (1 diff)
-
src/northbridge/intel/e7501/raminit.c (modified) (1 diff)
-
src/northbridge/intel/i440bx/raminit.c (modified) (1 diff)
-
src/northbridge/intel/i82810/raminit.c (modified) (1 diff)
-
src/northbridge/intel/i82830/raminit.c (modified) (1 diff)
-
src/northbridge/intel/i945/raminit.c (modified) (2 diffs)
-
src/northbridge/via/cn700/raminit.c (modified) (2 diffs)
-
src/northbridge/via/cx700/cx700_early_smbus.c (modified) (3 diffs)
-
src/northbridge/via/cx700/raminit.c (modified) (1 diff)
-
src/northbridge/via/vx800/raminit.c (modified) (1 diff)
-
src/northbridge/via/vx800/vx800_early_smbus.c (modified) (2 diffs)
-
src/southbridge/intel/i82801gx/i82801gx_smihandler.c (modified) (1 diff)
-
src/southbridge/via/vt8237r/vt8237r.h (modified) (1 diff)
-
util/x86emu/include/x86emu/fpu_regs.h (modified) (1 diff)
-
util/x86emu/include/x86emu/regs.h (modified) (2 diffs)
-
util/x86emu/include/x86emu/x86emu.h (modified) (2 diffs)
-
util/x86emu/x86.c (modified) (1 diff)
-
util/x86emu/x86_interrupts.c (modified) (1 diff)
-
util/x86emu/x86emu/debug.c (modified) (11 diffs)
-
util/x86emu/x86emu/debug.h (modified) (3 diffs)
-
util/x86emu/x86emu/decode.c (modified) (3 diffs)
-
util/x86emu/x86emu/fpu.c (modified) (8 diffs)
-
util/x86emu/x86emu/ops.c (modified) (3 diffs)
-
util/x86emu/x86emu/ops2.c (modified) (3 diffs)
-
util/x86emu/x86emu/sys.c (modified) (14 diffs)
-
util/x86emu/x86emu/x86emui.h (modified) (1 diff)
-
util/x86emu/yabel/biosemu.c (modified) (10 diffs)
-
util/x86emu/yabel/biosemu.h (modified) (1 diff)
-
util/x86emu/yabel/compat/functions.c (modified) (3 diffs)
-
util/x86emu/yabel/debug.h (modified) (3 diffs)
-
util/x86emu/yabel/device.c (modified) (7 diffs)
-
util/x86emu/yabel/interrupt.c (modified) (2 diffs)
-
util/x86emu/yabel/io.c (modified) (7 diffs)
-
util/x86emu/yabel/mem.c (modified) (2 diffs)
-
util/x86emu/yabel/vbe.c (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Kconfig
r5182 r5185 610 610 See src/arch/i386/lib/c_start.S for details. 611 611 612 config DEBUG_RAM_SETUP 613 bool "Output verbose RAM init debug messages" 614 default n 615 depends on (NORTHBRIDGE_AMD_AMDFAM10 \ 616 || NORTHBRIDGE_AMD_AMDK8 \ 617 || NORTHBRIDGE_VIA_CN700 \ 618 || NORTHBRIDGE_VIA_CX700 \ 619 || NORTHBRIDGE_VIA_VX800 \ 620 || NORTHBRIDGE_INTEL_E7501 \ 621 || NORTHBRIDGE_INTEL_I440BX \ 622 || NORTHBRIDGE_INTEL_I82810 \ 623 || NORTHBRIDGE_INTEL_I82830 \ 624 || NORTHBRIDGE_INTEL_I945) 625 help 626 This option enables additional RAM init related debug messages. 627 It is recommended to enable this when debugging issues on your 628 board which might be RAM init related. 629 630 Note: This option will increase the size of the coreboot image. 631 632 If unsure, say N. 633 634 config DEBUG_SMBUS 635 bool "Output verbose SMBus debug messages" 636 default n 637 depends on (SOUTHBRIDGE_VIA_VT8237R \ 638 || NORTHBRIDGE_VIA_VX800 \ 639 || NORTHBRIDGE_VIA_CX700 \ 640 || NORTHBRIDGE_AMD_AMDK8) 641 help 642 This option enables additional SMBus (and SPD) debug messages. 643 644 Note: This option will increase the size of the coreboot image. 645 646 If unsure, say N. 647 648 config DEBUG_SMI 649 bool "Output verbose SMI debug messages" 650 default n 651 depends on HAVE_SMI_HANDLER 652 help 653 This option enables additional SMI related debug messages. 654 655 Note: This option will increase the size of the coreboot image. 656 657 If unsure, say N. 658 659 config X86EMU_DEBUG 660 bool "Output verbose x86emu debug messages" 661 default n 662 depends on PCI_OPTION_ROM_RUN_YABEL 663 help 664 This option enables additional x86emu related debug messages. 665 666 Note: This option will increase the size of the coreboot image. 667 668 If unsure, say N. 669 670 config X86EMU_DEBUG_JMP 671 bool "Trace JMP/RETF" 672 default n 673 depends on X86EMU_DEBUG 674 help 675 Print information about JMP and RETF opcodes from x86emu. 676 677 Note: This option will increase the size of the coreboot image. 678 679 If unsure, say N. 680 681 config X86EMU_DEBUG_TRACE 682 bool "Trace all opcodes" 683 default n 684 depends on X86EMU_DEBUG 685 help 686 Print _all_ opcodes that are executed by x86emu. 687 688 WARNING: This will produce a LOT of output and take a long time. 689 690 Note: This option will increase the size of the coreboot image. 691 692 If unsure, say N. 693 694 config X86EMU_DEBUG_PNP 695 bool "Log Plug&Play accesses" 696 default n 697 depends on X86EMU_DEBUG 698 help 699 Print Plug And Play accesses made by option ROMs. 700 701 Note: This option will increase the size of the coreboot image. 702 703 If unsure, say N. 704 705 config X86EMU_DEBUG_DISK 706 bool "Log Disk I/O" 707 default n 708 depends on X86EMU_DEBUG 709 help 710 Print Disk I/O related messages. 711 712 Note: This option will increase the size of the coreboot image. 713 714 If unsure, say N. 715 716 config X86EMU_DEBUG_PMM 717 bool "Log PMM" 718 default n 719 depends on X86EMU_DEBUG 720 help 721 Print messages related to POST Memory Manager (PMM). 722 723 Note: This option will increase the size of the coreboot image. 724 725 If unsure, say N. 726 727 728 config X86EMU_DEBUG_VBE 729 bool "Debug VESA BIOS Extensions" 730 default n 731 depends on X86EMU_DEBUG 732 help 733 Print messages related to VESA BIOS Extension (VBE) functions. 734 735 Note: This option will increase the size of the coreboot image. 736 737 If unsure, say N. 738 739 config X86EMU_DEBUG_INT10 740 bool "Redirect INT10 output to console" 741 default n 742 depends on X86EMU_DEBUG 743 help 744 Let INT10 (i.e. character output) calls print messages to debug output. 745 746 Note: This option will increase the size of the coreboot image. 747 748 If unsure, say N. 749 750 config X86EMU_DEBUG_INTERRUPTS 751 bool "Log intXX calls" 752 default n 753 depends on X86EMU_DEBUG 754 help 755 Print messages related to interrupt handling. 756 757 Note: This option will increase the size of the coreboot image. 758 759 If unsure, say N. 760 761 config X86EMU_DEBUG_CHECK_VMEM_ACCESS 762 bool "Log special memory accesses" 763 default n 764 depends on X86EMU_DEBUG 765 help 766 Print messages related to accesses to certain areas of the virtual 767 memory (e.g. BDA (BIOS Data Area) or interrupt vectors) 768 769 Note: This option will increase the size of the coreboot image. 770 771 If unsure, say N. 772 773 config X86EMU_DEBUG_MEM 774 bool "Log all memory accesses" 775 default n 776 depends on X86EMU_DEBUG 777 help 778 Print memory accesses made by option ROM. 779 Note: This also includes accesses to fetch instructions. 780 781 Note: This option will increase the size of the coreboot image. 782 783 If unsure, say N. 784 785 config X86EMU_DEBUG_IO 786 bool "Log IO accesses" 787 default n 788 depends on X86EMU_DEBUG 789 help 790 Print I/O accesses made by option ROM. 791 792 Note: This option will increase the size of the coreboot image. 793 794 If unsure, say N. 795 612 796 endmenu 613 797 -
trunk/src/console/printk.c
r4939 r5185 20 20 21 21 int console_loglevel = CONFIG_DEFAULT_CONSOLE_LOGLEVEL; 22 int default_message_loglevel = DEFAULT_MESSAGE_LOGLEVEL;23 int minimum_console_loglevel = MINIMUM_CONSOLE_LOGLEVEL;24 22 int default_console_loglevel = CONFIG_DEFAULT_CONSOLE_LOGLEVEL; 25 23 -
trunk/src/cpu/x86/smm/smihandler.c
r5145 r5185 27 27 28 28 void southbridge_smi_set_eos(void); 29 30 /* To enable SMI define DEBUG_SMI in smiutil.c */31 29 32 30 typedef enum { SMI_LOCKED, SMI_UNLOCKED } smi_semaphore; -
trunk/src/cpu/x86/smm/smiutil.c
r4840 r5185 25 25 #include <cpu/x86/cache.h> 26 26 #include <cpu/x86/smm.h> 27 28 // #define DEBUG_SMI29 27 30 28 /* ********************* smi_util ************************* */ … … 120 118 void console_init(void) 121 119 { 122 #if defDEBUG_SMI120 #if CONFIG_DEBUG_SMI 123 121 console_loglevel = CONFIG_DEFAULT_CONSOLE_LOGLEVEL; 124 122 uart_init(); -
trunk/src/devices/Kconfig
r5177 r5185 75 75 endchoice 76 76 77 # TODO: Describe better, and/or make a "choice" selection for this.78 config YABEL_DEBUG_FLAGS79 prompt "Hex value for YABEL debug flags"80 hex81 default 0x082 depends on PCI_OPTION_ROM_RUN_YABEL83 help84 CONFIG_YABEL_DEBUG_FLAGS is a binary switch that allows you85 to select the following items to debug. 1=on 0=off. After you86 decide what you want to debug create the binary value, convert to87 hex and set the option.88 89 Example for "debug all":90 CONFIG_YABEL_DEBUG_FLAGS = 0x31FF91 92 |-DEBUG_JMP - Print info about JMP and RETF opcodes from x86emu93 ||-DEBUG_TRACE_X86EMU - Print _all_ opcodes that are executed by94 || x86emu (WARNING: this will produce a LOT95 || of output)96 |||-Currently unused97 ||||-Currently unused98 |||||-Currently unused99 ||||||-DEBUG_PNP - Print Plug And Play accesses made by option ROM100 |||||||-DEBUG_DISK - Print Disk I/O related messages, currently unused101 ||||||||-DEBUG_PMM - Print messages related to POST Memory102 |||||||| Manager (PMM)103 |||||||||-DEBUG_VBE - Print messages related to VESA BIOS Extension104 ||||||||| (VBE) functions105 ||||||||||-DEBUG_PRINT_INT10 - Let INT10 (i.e. character output)106 |||||||||| calls print messages to debug output107 |||||||||||-DEBUG_INTR - Print messages related to interrupt handling108 ||||||||||||-DEBUG_CHECK_VMEM_ACCESS - Print messages related to109 |||||||||||| accesses to certain areas of110 |||||||||||| the virtual memory (e.g. BDA111 |||||||||||| (BIOS Data Area) or interrupt112 |||||||||||| vectors)113 |||||||||||||-DEBUG_MEM - Print memory accesses made by option ROM114 ||||||||||||| (NOTE: this also includes accesses to115 ||||||||||||| fetch instructions)116 ||||||||||||||-DEBUG_IO - Print I/O accesses made by option ROM117 11000111111111 - Maximum binary value, i.e. "debug all"118 (WARNING: This could run for hours)119 120 DEBUG_IO 0x0001121 DEBUG_MEM 0x0002122 DEBUG_CHECK_VMEM_ACCESS 0x0004123 DEBUG_INTR 0x0008124 DEBUG_PRINT_INT10 0x0010125 DEBUG_VBE 0x0020126 DEBUG_PMM 0x0040127 DEBUG_DISK 0x0080128 DEBUG_PNP 0x0100129 DEBUG_TRACE_X86EMU 0x1000130 DEBUG_JMP 0x2000131 132 See debug.h for values. 0 is no debug output, 0x31ff is _verbose_.133 134 77 config YABEL_PCI_ACCESS_OTHER_DEVICES 135 78 prompt "Allow option ROMs to access other devices" … … 150 93 YABEL requires 1MB memory for its CPU emulation. This memory is 151 94 normally located at 16MB. 95 96 config YABEL_VIRTMEM_LOCATION 97 hex 98 depends on PCI_OPTION_ROM_RUN_YABEL && !EXPERT 99 default 0x1000000 152 100 153 101 config YABEL_DIRECTHW -
trunk/src/mainboard/amd/dbm690t/romstage.c
r5092 r5185 58 58 #include "cpu/x86/lapic/boot_cpu.c" 59 59 #include "northbridge/amd/amdk8/reset_test.c" 60 #include "northbridge/amd/amdk8/debug.c"61 60 #include "superio/ite/it8712f/it8712f_early_serial.c" 62 61 … … 68 67 #include "southbridge/amd/rs690/rs690_early_setup.c" 69 68 #include "southbridge/amd/sb600/sb600_early_setup.c" 69 #include "northbridge/amd/amdk8/debug.c" /* After sb600_early_setup.c! */ 70 70 71 71 /* CAN'T BE REMOVED! crt0.S will use it. I don't know WHY!*/ -
trunk/src/mainboard/amd/pistachio/romstage.c
r5092 r5185 52 52 #include "cpu/x86/lapic/boot_cpu.c" 53 53 #include "northbridge/amd/amdk8/reset_test.c" 54 #include "northbridge/amd/amdk8/debug.c"55 54 #include "superio/ite/it8712f/it8712f_early_serial.c" 56 55 … … 62 61 #include "southbridge/amd/rs690/rs690_early_setup.c" 63 62 #include "southbridge/amd/sb600/sb600_early_setup.c" 63 #include "northbridge/amd/amdk8/debug.c" /* After sb600_early_setup.c! */ 64 64 65 65 /* CAN'T BE REMOVED! crt0.S will use it. I don't know WHY!*/ -
trunk/src/mainboard/amd/serengeti_cheetah_fam10/romstage.c
r5138 r5185 30 30 #define CACHE_AS_RAM_ADDRESS_DEBUG 1 31 31 32 #define DEBUG_SMBUS 133 34 32 #define SET_NB_CFG_54 1 35 33 -
trunk/src/mainboard/asus/a8n_e/romstage.c
r5092 r5185 30 30 /* Used by raminit. */ 31 31 #define QRANK_DIMM_SUPPORT 1 32 33 /* Turn this on for SMBus debugging output. */34 #define DEBUG_SMBUS 035 32 36 33 #if CONFIG_LOGICAL_CPUS == 1 -
trunk/src/mainboard/asus/a8v-e_se/romstage.c
r5092 r5185 41 41 #define K8_SET_FIDVID_CORE0_ONLY 1 42 42 43 /* #define DEBUG_SMBUS 1 */44 45 43 #include <stdint.h> 46 44 #include <string.h> … … 60 58 #include "cpu/x86/lapic/boot_cpu.c" 61 59 #include "northbridge/amd/amdk8/reset_test.c" 62 #include "northbridge/amd/amdk8/debug.c"63 60 #include "northbridge/amd/amdk8/early_ht.c" 64 61 #include "superio/winbond/w83627ehg/w83627ehg_early_serial.c" 65 62 #include "southbridge/via/vt8237r/vt8237r_early_smbus.c" 63 #include "northbridge/amd/amdk8/debug.c" /* After vt8237r_early_smbus.c! */ 66 64 #include "cpu/amd/mtrr/amd_earlymtrr.c" 67 65 #include "cpu/x86/bist.h" -
trunk/src/mainboard/asus/m2v-mx_se/romstage.c
r5092 r5185 44 44 #define K8_REV_F_SUPPORT_F0_F1_WORKAROUND 0 45 45 #endif 46 47 /* #define DEBUG_SMBUS 1 */48 46 49 47 #include <stdint.h> -
trunk/src/mainboard/kontron/986lcd-m/romstage.c
r5182 r5185 446 446 #if !CONFIG_HAVE_ACPI_RESUME 447 447 #if CONFIG_DEFAULT_CONSOLE_LOGLEVEL > 8 448 #if defined(DEBUG_RAM_SETUP)448 #if CONFIG_DEBUG_RAM_SETUP 449 449 sdram_dump_mchbar_registers(); 450 450 #endif -
trunk/src/mainboard/msi/ms7135/romstage.c
r5092 r5185 30 30 /* Used by raminit. */ 31 31 #define QRANK_DIMM_SUPPORT 1 32 33 /* Turn this on for SMBus debugging output. */34 #define DEBUG_SMBUS 035 32 36 33 #if CONFIG_LOGICAL_CPUS == 1 -
trunk/src/mainboard/msi/ms7260/romstage.c
r5092 r5185 25 25 26 26 // #define CACHE_AS_RAM_ADDRESS_DEBUG 1 27 // #define DEBUG_SMBUS 128 27 // #define RAM_TIMING_DEBUG 1 29 28 // #define DQS_TRAIN_DEBUG 1 -
trunk/src/mainboard/msi/ms9185/romstage.c
r5092 r5185 42 42 //if we want to wait for core1 done before DQS training, set it to 0 43 43 #define K8_SET_FIDVID_CORE0_ONLY 1 44 45 #define DEBUG_SMBUS 146 44 47 45 #include <stdint.h> -
trunk/src/mainboard/msi/ms9282/romstage.c
r5092 r5185 38 38 //if we want to wait for core1 done before DQS training, set it to 0 39 39 #define K8_SET_FIDVID_CORE0_ONLY 1 40 41 #define DEBUG_SMBUS 142 40 43 41 #include <stdint.h> -
trunk/src/northbridge/amd/amdfam10/debug.c
r5092 r5185 221 221 } 222 222 223 #ifndef DEBUG_SMBUS 224 #define DEBUG_SMBUS 0 225 #endif 226 227 #if DEBUG_SMBUS == 1 223 #if CONFIG_DEBUG_SMBUS 228 224 229 225 static void dump_spd_registers(const struct mem_controller *ctrl) -
trunk/src/northbridge/amd/amdfam10/raminit_amdmct.c
r4562 r5185 24 24 } 25 25 26 27 #define RAMINIT_DEBUG 128 29 30 26 static void print_tx(const char *strval, u32 val) 31 27 { 32 #if RAMINIT_DEBUG == 128 #if CONFIG_DEBUG_RAM_SETUP 33 29 print_raminit(strval, val); 34 30 #endif 35 31 } 36 32 37 38 33 static void print_t(const char *strval) 39 34 { 40 #if RAMINIT_DEBUG == 135 #if CONFIG_DEBUG_RAM_SETUP 41 36 print_debug(strval); 42 37 #endif -
trunk/src/northbridge/amd/amdk8/debug.c
r5092 r5185 135 135 } 136 136 137 #ifndef DEBUG_SMBUS 138 #define DEBUG_SMBUS 0 139 #endif 140 141 #if DEBUG_SMBUS == 1 137 #if CONFIG_DEBUG_SMBUS 138 142 139 static void dump_spd_registers(const struct mem_controller *ctrl) 143 140 { -
trunk/src/northbridge/amd/amdk8/raminit_f.c
r4890 r5185 35 35 #endif 36 36 37 #define RAM_TIMING_DEBUG 0 38 39 #if RAM_TIMING_DEBUG == 1 37 #if DEBUG_RAM_SETUP 40 38 #define printk_raminit printk_debug 41 39 #else -
trunk/src/northbridge/intel/e7501/raminit.c
r5155 r5185 23 23 //#define VALIDATE_DIMM_COMPATIBILITY 24 24 25 // Uncomment this to enable local debugging messages 26 //#define DEBUG_RAM_CONFIG 27 28 #if defined(DEBUG_RAM_CONFIG) 25 #if CONFIG_DEBUG_RAM_SETUP 29 26 #define RAM_DEBUG_MESSAGE(x) print_debug(x) 30 27 #define RAM_DEBUG_HEX32(x) print_debug_hex32(x) -
trunk/src/northbridge/intel/i440bx/raminit.c
r3807 r5185 29 29 -----------------------------------------------------------------------------*/ 30 30 31 /* Uncomment this to enable debugging output. */32 #define DEBUG_RAM_SETUP 133 34 31 /* Debugging macros. */ 35 #if defined(DEBUG_RAM_SETUP)32 #if CONFIG_DEBUG_RAM_SETUP 36 33 #define PRINT_DEBUG(x) print_debug(x) 37 34 #define PRINT_DEBUG_HEX8(x) print_debug_hex8(x) -
trunk/src/northbridge/intel/i82810/raminit.c
r4809 r5185 30 30 -----------------------------------------------------------------------------*/ 31 31 32 /* Uncomment this to enable debugging output. */33 // #define DEBUG_RAM_SETUP 134 35 32 /* Debugging macros. */ 36 #if defined(DEBUG_RAM_SETUP)33 #if CONFIG_DEBUG_RAM_SETUP 37 34 #define PRINT_DEBUG(x) print_debug(x) 38 35 #define PRINT_DEBUG_HEX8(x) print_debug_hex8(x) -
trunk/src/northbridge/intel/i82830/raminit.c
r5177 r5185 30 30 -----------------------------------------------------------------------------*/ 31 31 32 /* Uncomment this to enable debugging output. */33 /* #define DEBUG_RAM_SETUP 1 */34 35 32 /* Debugging macros. */ 36 #if defined(DEBUG_RAM_SETUP)33 #if CONFIG_DEBUG_RAM_SETUP 37 34 #define PRINT_DEBUG(x) print_debug(x) 38 35 #define PRINT_DEBUG_HEX8(x) print_debug_hex8(x) -
trunk/src/northbridge/intel/i945/raminit.c
r5136 r5185 25 25 #include "i945.h" 26 26 27 #define DEBUG_RAM_SETUP28 29 27 /* Debugging macros. */ 30 #if defined(DEBUG_RAM_SETUP)28 #if CONFIG_DEBUG_RAM_SETUP 31 29 #define PRINTK_DEBUG(x...) printk_debug(x) 32 30 #else … … 74 72 } 75 73 76 #if defDEBUG_RAM_SETUP74 #if CONFIG_DEBUG_RAM_SETUP 77 75 static void sdram_dump_mchbar_registers(void) 78 76 { -
trunk/src/northbridge/via/cn700/raminit.c
r3644 r5185 26 26 #include "cn700.h" 27 27 28 // #define DEBUG_RAM_SETUP 1 29 30 #ifdef DEBUG_RAM_SETUP 28 #ifdef CONFIG_DEBUG_RAM_SETUP 31 29 #define PRINT_DEBUG_MEM(x) print_debug(x) 32 30 #define PRINT_DEBUG_MEM_HEX8(x) print_debug_hex8(x) … … 52 50 reg |= command; 53 51 pci_write_config8(dev, DRAM_MISC_CTL, reg); 54 55 PRINT_DEBUG_MEM(" Sending RAM command 0x");56 PRINT_DEBUG_MEM_HEX8(reg);57 PRINT_DEBUG_MEM(" to 0x");58 PRINT_DEBUG_MEM_HEX32(0 + addr_offset);59 PRINT_DEBUG_MEM("\r\n");60 52 } 61 53 -
trunk/src/northbridge/via/cx700/cx700_early_smbus.c
r5092 r5185 49 49 50 50 /* Debugging macros. */ 51 52 // #define DEBUG_SMBUS 1 53 54 #ifdef DEBUG_SMBUS 51 #if CONFIG_DEBUG_SMBUS 55 52 #define PRINT_DEBUG(x) print_debug(x) 56 53 #define PRINT_DEBUG_HEX16(x) print_debug_hex16(x) … … 103 100 ++loops; 104 101 } 105 #if defDEBUG_SMBUS102 #if CONFIG_DEBUG_SMBUS 106 103 /* Some systems seem to have a flakey SMBus. No need to spew a lot of 107 104 * errors on those, once we know that SMBus access is principally … … 235 232 236 233 /* Debugging Function */ 237 #ifdef DEBUG_SMBUS234 #ifdef CONFIG_DEBUG_SMBUS 238 235 static void dump_spd_data(const struct mem_controller *ctrl) 239 236 { -
trunk/src/northbridge/via/cx700/raminit.c
r4126 r5185 25 25 #include "cx700_registers.h" 26 26 27 // #define DEBUG_RAM_SETUP 128 29 27 /* Debugging macros. */ 30 #if defined(DEBUG_RAM_SETUP)28 #if CONFIG_DEBUG_RAM_SETUP 31 29 #define PRINTK_DEBUG(x...) printk_debug(x) 32 30 #else -
trunk/src/northbridge/via/vx800/raminit.c
r4397 r5185 22 22 #include <delay.h> 23 23 24 #define DEBUG_RAM_SETUP 1 25 26 #ifdef DEBUG_RAM_SETUP 24 #if CONFIG_DEBUG_RAM_SETUP 27 25 #define PRINT_DEBUG_MEM(x) print_debug(x) 28 26 #define PRINT_DEBUG_MEM_HEX8(x) print_debug_hex8(x) -
trunk/src/northbridge/via/vx800/vx800_early_smbus.c
r4397 r5185 50 50 #define SMBUS_DELAY() outb(0x80, 0x80) 51 51 52 /* Debugging macros. Only necessary if something isn't working right */ 53 54 #define DEBUG_SMBUS 1 55 56 #ifdef DEBUG_SMBUS 52 #ifdef CONFIG_DEBUG_SMBUS 57 53 #define PRINT_DEBUG(x) print_debug(x) 58 54 #define PRINT_DEBUG_HEX16(x) print_debug_hex16(x) … … 290 286 291 287 /* Debugging Function */ 292 #if defDEBUG_SMBUS288 #if CONFIG_DEBUG_SMBUS 293 289 static void dump_spd_data(void) 294 290 { -
trunk/src/southbridge/intel/i82801gx/i82801gx_smihandler.c
r5136 r5185 28 28 #include <device/pci_def.h> 29 29 #include "i82801gx.h" 30 31 #define DEBUG_SMI32 30 33 31 #define APM_CNT 0xb2 -
trunk/src/southbridge/via/vt8237r/vt8237r.h
r5127 r5185 66 66 #define CLOCK_SLAVE_ADDRESS 0x69 67 67 68 #if DEBUG_SMBUS == 168 #if CONFIG_DEBUG_SMBUS 69 69 #define PRINT_DEBUG(x) print_debug(x) 70 70 #define PRINT_DEBUG_HEX16(x) print_debug_hex16(x) -
trunk/util/x86emu/include/x86emu/fpu_regs.h
r5131 r5185 103 103 #endif /* X86_FPU_SUPPORT */ 104 104 105 #if defDEBUG105 #if CONFIG_X86EMU_DEBUG 106 106 # define DECODE_PRINTINSTR32(t,mod,rh,rl) \ 107 107 DECODE_PRINTF(t[(mod<<3)+(rh)]); -
trunk/util/x86emu/include/x86emu/regs.h
r5131 r5185 280 280 volatile int intr; /* mask of pending interrupts */ 281 281 volatile int debug; 282 #if defDEBUG282 #if CONFIG_X86EMU_DEBUG 283 283 int check; 284 284 u16 saved_ip; … … 366 366 #define X86_DH M.x86.R_DH 367 367 368 369 /*-------------------------- Function Prototypes --------------------------*/370 371 /* Function to log information at runtime */372 373 //void printk(const char *fmt, ...);374 375 368 #ifdef __cplusplus 376 369 } /* End of "C" linkage for C++ */ -
trunk/util/x86emu/include/x86emu/x86emu.h
r5131 r5185 43 43 #define __X86EMU_X86EMU_H 44 44 45 /* FIXME: redefine printk for the moment */46 45 #include <stddef.h> 47 46 #include <console/console.h> 48 #undef printk 49 #define printk(x...) do_printk(BIOS_DEBUG, x) 50 #if defined(CONFIG_YABEL_DEBUG_FLAGS) && (CONFIG_YABEL_DEBUG_FLAGS != 0) 47 #if CONFIG_X86EMU_DEBUG 51 48 #define DEBUG 52 #else53 #undef DEBUG54 49 #endif 55 50 56 #ifdef SCITECH57 #include "scitech.h"58 #define X86API _ASMAPI59 #define X86APIP _ASMAPIP60 typedef int X86EMU_pioAddr;61 #else62 51 #include "types.h" 63 52 #define X86API 64 53 #define X86APIP * 65 #endif66 54 #include "regs.h" 67 55 … … 167 155 void X86EMU_halt_sys(void); 168 156 169 #if defDEBUG157 #if CONFIG_X86EMU_DEBUG 170 158 #define HALT_SYS() \ 171 print k("halt_sys: in %s\n", __func__); \159 printf("halt_sys: in %s\n", __func__); \ 172 160 X86EMU_halt_sys(); 173 161 #else -
trunk/util/x86emu/x86.c
r5040 r5185 24 24 #include <arch/registers.h> 25 25 #include <console/console.h> 26 #define printk(x...) do_printk(x)27 28 26 #include <arch/interrupt.h> 29 27 -
trunk/util/x86emu/x86_interrupts.c
r5040 r5185 27 27 #include <arch/io.h> 28 28 #include <arch/registers.h> 29 #define printk(x...) do_printk(x)30 29 31 30 enum { -
trunk/util/x86emu/x86emu/debug.c
r5131 r5185 39 39 40 40 #include "x86emui.h" 41 // #include <stdarg.h>42 41 43 42 /*----------------------------- Implementation ----------------------------*/ … … 60 59 } 61 60 if (DEBUG_DECODE() && ! DEBUG_DECODE_NOPRINT()) { 62 print k("%04x:%04x ",M.x86.saved_cs, M.x86.saved_ip);61 printf("%04x:%04x ",M.x86.saved_cs, M.x86.saved_ip); 63 62 print_encoded_bytes( M.x86.saved_cs, M.x86.saved_ip); 64 63 print_decoded_instruction(); … … 79 78 * of a hack! 80 79 */ 81 print k("%04x:%04x ",M.x86.saved_cs, M.x86.saved_ip);80 printf("%04x:%04x ",M.x86.saved_cs, M.x86.saved_ip); 82 81 print_encoded_bytes( M.x86.saved_cs, M.x86.saved_ip); 83 82 print_decoded_instruction(); … … 163 162 } 164 163 165 void x86emu_decode_printf (c har *x)164 void x86emu_decode_printf (const char *x) 166 165 { 167 166 sprintf(M.x86.decoded_buf+M.x86.enc_str_pos,"%s",x); … … 169 168 } 170 169 171 void x86emu_decode_printf2 (c har *x, int y)170 void x86emu_decode_printf2 (const char *x, int y) 172 171 { 173 172 char temp[100]; … … 190 189 sprintf(buf1+2*i,"%02x", fetch_data_byte_abs(s,o+i)); 191 190 } 192 print k("%-20s ",buf1);191 printf("%-20s ",buf1); 193 192 } 194 193 195 194 static void print_decoded_instruction (void) 196 195 { 197 print k("%s", M.x86.decoded_buf);196 printf("%s", M.x86.decoded_buf); 198 197 } 199 198 … … 205 204 seg = fetch_data_word_abs(0,iv*4); 206 205 off = fetch_data_word_abs(0,iv*4+2); 207 print k("%04x:%04x ", seg, off);206 printf("%04x:%04x ", seg, off); 208 207 } 209 208 … … 217 216 current = start; 218 217 while (end <= off + amt) { 219 print k("%04x:%04x ", seg, start);218 printf("%04x:%04x ", seg, start); 220 219 for (i=start; i< off; i++) 221 print k(" ");220 printf(" "); 222 221 for ( ; i< end; i++) 223 print k("%02x ", fetch_data_byte_abs(seg,i));224 print k("\n");222 printf("%02x ", fetch_data_byte_abs(seg,i)); 223 printf("\n"); 225 224 start = end; 226 225 end = start + 16; … … 257 256 offset = M.x86.saved_ip; 258 257 while (!done) { 259 print k("-");258 printf("-"); 260 259 p = fgets(s, 1023, stdin); 261 260 cmd = parse_line(s, ps, &ntok); … … 311 310 case 'P': 312 311 noDecode = (noDecode)?0:1; 313 print k("Toggled decoding to %s\n",(noDecode)?"FALSE":"TRUE");312 printf("Toggled decoding to %s\n",(noDecode)?"FALSE":"TRUE"); 314 313 break; 315 314 case 't': … … 369 368 void x86emu_dump_regs (void) 370 369 { 371 print k("\tAX=%04x ", M.x86.R_AX );372 print k("BX=%04x ", M.x86.R_BX );373 print k("CX=%04x ", M.x86.R_CX );374 print k("DX=%04x ", M.x86.R_DX );375 print k("SP=%04x ", M.x86.R_SP );376 print k("BP=%04x ", M.x86.R_BP );377 print k("SI=%04x ", M.x86.R_SI );378 print k("DI=%04x\n", M.x86.R_DI );379 print k("\tDS=%04x ", M.x86.R_DS );380 print k("ES=%04x ", M.x86.R_ES );381 print k("SS=%04x ", M.x86.R_SS );382 print k("CS=%04x ", M.x86.R_CS );383 print k("IP=%04x ", M.x86.R_IP );384 if (ACCESS_FLAG(F_OF)) print k("OV "); /* CHECKED... */385 else print k("NV ");386 if (ACCESS_FLAG(F_DF)) print k("DN ");387 else print k("UP ");388 if (ACCESS_FLAG(F_IF)) print k("EI ");389 else print k("DI ");390 if (ACCESS_FLAG(F_SF)) print k("NG ");391 else print k("PL ");392 if (ACCESS_FLAG(F_ZF)) print k("ZR ");393 else print k("NZ ");394 if (ACCESS_FLAG(F_AF)) print k("AC ");395 else print k("NA ");396 if (ACCESS_FLAG(F_PF)) print k("PE ");397 else print k("PO ");398 if (ACCESS_FLAG(F_CF)) print k("CY ");399 else print k("NC ");400 print k("\n");370 printf("\tAX=%04x ", M.x86.R_AX ); 371 printf("BX=%04x ", M.x86.R_BX ); 372 printf("CX=%04x ", M.x86.R_CX ); 373 printf("DX=%04x ", M.x86.R_DX ); 374 printf("SP=%04x ", M.x86.R_SP ); 375 printf("BP=%04x ", M.x86.R_BP ); 376 printf("SI=%04x ", M.x86.R_SI ); 377 printf("DI=%04x\n", M.x86.R_DI ); 378 printf("\tDS=%04x ", M.x86.R_DS ); 379 printf("ES=%04x ", M.x86.R_ES ); 380 printf("SS=%04x ", M.x86.R_SS ); 381 printf("CS=%04x ", M.x86.R_CS ); 382 printf("IP=%04x ", M.x86.R_IP ); 383 if (ACCESS_FLAG(F_OF)) printf("OV "); /* CHECKED... */ 384 else printf("NV "); 385 if (ACCESS_FLAG(F_DF)) printf("DN "); 386 else printf("UP "); 387 if (ACCESS_FLAG(F_IF)) printf("EI "); 388 else printf("DI "); 389 if (ACCESS_FLAG(F_SF)) printf("NG "); 390 else printf("PL "); 391 if (ACCESS_FLAG(F_ZF)) printf("ZR "); 392 else printf("NZ "); 393 if (ACCESS_FLAG(F_AF)) printf("AC "); 394 else printf("NA "); 395 if (ACCESS_FLAG(F_PF)) printf("PE "); 396 else printf("PO "); 397 if (ACCESS_FLAG(F_CF)) printf("CY "); 398 else printf("NC "); 399 printf("\n"); 401 400 } 402 401 403 402 void x86emu_dump_xregs (void) 404 403 { 405 print k("\tEAX=%08x ", M.x86.R_EAX );406 print k("EBX=%08x ", M.x86.R_EBX );407 print k("ECX=%08x ", M.x86.R_ECX );408 print k("EDX=%08x \n", M.x86.R_EDX );409 print k("\tESP=%08x ", M.x86.R_ESP );410 print k("EBP=%08x ", M.x86.R_EBP );411 print k("ESI=%08x ", M.x86.R_ESI );412 print k("EDI=%08x\n", M.x86.R_EDI );413 print k("\tDS=%04x ", M.x86.R_DS );414 print k("ES=%04x ", M.x86.R_ES );415 print k("SS=%04x ", M.x86.R_SS );416 print k("CS=%04x ", M.x86.R_CS );417 print k("EIP=%08x\n\t", M.x86.R_EIP );418 if (ACCESS_FLAG(F_OF)) print k("OV "); /* CHECKED... */419 else print k("NV ");420 if (ACCESS_FLAG(F_DF)) print k("DN ");421 else print k("UP ");422 if (ACCESS_FLAG(F_IF)) print k("EI ");423 else print k("DI ");424 if (ACCESS_FLAG(F_SF)) print k("NG ");425 else print k("PL ");426 if (ACCESS_FLAG(F_ZF)) print k("ZR ");427 else print k("NZ ");428 if (ACCESS_FLAG(F_AF)) print k("AC ");429 else print k("NA ");430 if (ACCESS_FLAG(F_PF)) print k("PE ");431 else print k("PO ");432 if (ACCESS_FLAG(F_CF)) print k("CY ");433 else print k("NC ");434 print k("\n");435 } 404 printf("\tEAX=%08x ", M.x86.R_EAX ); 405 printf("EBX=%08x ", M.x86.R_EBX ); 406 printf("ECX=%08x ", M.x86.R_ECX ); 407 printf("EDX=%08x \n", M.x86.R_EDX ); 408 printf("\tESP=%08x ", M.x86.R_ESP ); 409 printf("EBP=%08x ", M.x86.R_EBP ); 410 printf("ESI=%08x ", M.x86.R_ESI ); 411 printf("EDI=%08x\n", M.x86.R_EDI ); 412 printf("\tDS=%04x ", M.x86.R_DS ); 413 printf("ES=%04x ", M.x86.R_ES ); 414 printf("SS=%04x ", M.x86.R_SS ); 415 printf("CS=%04x ", M.x86.R_CS ); 416 printf("EIP=%08x\n\t", M.x86.R_EIP ); 417 if (ACCESS_FLAG(F_OF)) printf("OV "); /* CHECKED... */ 418 else printf("NV "); 419 if (ACCESS_FLAG(F_DF)) printf("DN "); 420 else printf("UP "); 421 if (ACCESS_FLAG(F_IF)) printf("EI "); 422 else printf("DI "); 423 if (ACCESS_FLAG(F_SF)) printf("NG "); 424 else printf("PL "); 425 if (ACCESS_FLAG(F_ZF)) printf("ZR "); 426 else printf("NZ "); 427 if (ACCESS_FLAG(F_AF)) printf("AC "); 428 else printf("NA "); 429 if (ACCESS_FLAG(F_PF)) printf("PE "); 430 else printf("PO "); 431 if (ACCESS_FLAG(F_CF)) printf("CY "); 432 else printf("NC "); 433 printf("\n"); 434 } -
trunk/util/x86emu/x86emu/debug.h
r5131 r5185 41 41 #define __X86EMU_DEBUG_H 42 42 43 //#define DEBUG 044 //#undef DEBUG45 43 /*---------------------- Macros and type definitions ----------------------*/ 44 45 /* printf is not available in coreboot... use printk */ 46 #define printf(x...) printk(BIOS_DEBUG, x) 46 47 47 48 /* checks to be enabled for "runtime" */ … … 173 174 x86emu_dump_regs(); \ 174 175 if (DEBUG_TRACECALL()) \ 175 print k("%04x:%04x: CALL %s%04x:%04x\n", u , v, s, w, x);176 printf("%04x:%04x: CALL %s%04x:%04x\n", u , v, s, w, x); 176 177 # define RETURN_TRACE(u,v,w,x,s) \ 177 178 if (DEBUG_TRACECALLREGS()) \ 178 179 x86emu_dump_regs(); \ 179 180 if (DEBUG_TRACECALL()) \ 180 print k("%04x:%04x: RET %s %04x:%04x\n",u,v,s,w,x);181 printf("%04x:%04x: RET %s %04x:%04x\n",u,v,s,w,x); 181 182 # define JMP_TRACE(u,v,w,x,s) \ 182 183 if (DEBUG_TRACEJMPREGS()) \ 183 184 x86emu_dump_regs(); \ 184 185 if (DEBUG_TRACEJMP()) \ 185 print k("%04x:%04x: JMP %s%04x:%04x\n", u , v, s, w, x);186 printf("%04x:%04x: JMP %s%04x:%04x\n", u , v, s, w, x); 186 187 #else 187 188 # define CALL_TRACE(u,v,w,x,s) … … 202 203 #endif 203 204 204 extern void x86emu_inc_decoded_inst_len (int x); 205 extern void x86emu_decode_printf (char *x); 206 extern void x86emu_decode_printf2 (char *x, int y); 207 extern void x86emu_just_disassemble (void); 208 extern void x86emu_single_step (void); 209 extern void x86emu_end_instr (void); 210 extern void x86emu_dump_regs (void); 211 extern void x86emu_dump_xregs (void); 212 extern void x86emu_print_int_vect (u16 iv); 213 extern void x86emu_instrument_instruction (void); 214 extern void x86emu_check_ip_access (void); 215 extern void x86emu_check_sp_access (void); 216 extern void x86emu_check_mem_access (u32 p); 217 extern void x86emu_check_data_access (uint s, uint o); 205 void x86emu_inc_decoded_inst_len (int x); 206 void x86emu_decode_printf (const char *x); 207 void x86emu_decode_printf2 (const char *x, int y); 208 void x86emu_just_disassemble (void); 209 void x86emu_single_step (void); 210 void x86emu_end_instr (void); 211 void x86emu_dump_regs (void); 212 void x86emu_dump_xregs (void); 213 void x86emu_print_int_vect (u16 iv); 214 void x86emu_instrument_instruction (void); 215 void x86emu_check_ip_access (void); 216 void x86emu_check_sp_access (void); 217 void x86emu_check_mem_access (u32 p); 218 void x86emu_check_data_access (uint s, uint o); 219 220 void disassemble_forward (u16 seg, u16 off, int n); 218 221 219 222 #ifdef __cplusplus -
trunk/util/x86emu/x86emu/decode.c
r5131 r5185 78 78 u8 intrnum) 79 79 { 80 print k("%s, rasing execption %x\n", __func__, intrnum);80 printf("%s, raising exeception %x\n", __func__, intrnum); 81 81 x86emu_dump_regs(); 82 82 M.x86.intno = intrnum; … … 106 106 if (M.x86.intr & INTR_HALTED) { 107 107 DB( if (M.x86.R_SP != 0) { 108 print k("halted\n");108 printf("halted\n"); 109 109 X86EMU_trace_regs(); 110 110 } 111 111 else { 112 112 if (M.x86.debug) 113 print k("Service completed successfully\n");113 printf("Service completed successfully\n"); 114 114 }) 115 115 return; … … 287 287 default: 288 288 #ifdef DEBUG 289 print k("error: should not happen: multiple overrides.\n");289 printf("error: should not happen: multiple overrides.\n"); 290 290 #endif 291 291 HALT_SYS(); -
trunk/util/x86emu/x86emu/fpu.c
r5131 r5185 53 53 #ifdef DEBUG 54 54 55 static c har *x86emu_fpu_op_d9_tab[] = {55 static const char *x86emu_fpu_op_d9_tab[] = { 56 56 "FLD\tDWORD PTR ", "ESC_D9\t", "FST\tDWORD PTR ", "FSTP\tDWORD PTR ", 57 57 "FLDENV\t", "FLDCW\t", "FSTENV\t", "FSTCW\t", … … 64 64 }; 65 65 66 static c har *x86emu_fpu_op_d9_tab1[] = {66 static const char *x86emu_fpu_op_d9_tab1[] = { 67 67 "FLD\t", "FLD\t", "FLD\t", "FLD\t", 68 68 "FLD\t", "FLD\t", "FLD\t", "FLD\t", … … 297 297 #ifdef DEBUG 298 298 299 char *x86emu_fpu_op_da_tab[] = {299 static const char *x86emu_fpu_op_da_tab[] = { 300 300 "FIADD\tDWORD PTR ", "FIMUL\tDWORD PTR ", "FICOM\tDWORD PTR ", 301 301 "FICOMP\tDWORD PTR ", … … 387 387 #ifdef DEBUG 388 388 389 char *x86emu_fpu_op_db_tab[] = {389 static const char *x86emu_fpu_op_db_tab[] = { 390 390 "FILD\tDWORD PTR ", "ESC_DB\t19", "FIST\tDWORD PTR ", "FISTP\tDWORD PTR ", 391 391 "ESC_DB\t1C", "FLD\tTBYTE PTR ", "ESC_DB\t1E", "FSTP\tTBYTE PTR ", … … 506 506 507 507 #ifdef DEBUG 508 char *x86emu_fpu_op_dc_tab[] = {508 static const char *x86emu_fpu_op_dc_tab[] = { 509 509 "FADD\tQWORD PTR ", "FMUL\tQWORD PTR ", "FCOM\tQWORD PTR ", 510 510 "FCOMP\tQWORD PTR ", … … 621 621 #ifdef DEBUG 622 622 623 static c har *x86emu_fpu_op_dd_tab[] = {623 static const char *x86emu_fpu_op_dd_tab[] = { 624 624 "FLD\tQWORD PTR ", "ESC_DD\t29,", "FST\tQWORD PTR ", "FSTP\tQWORD PTR ", 625 625 "FRSTOR\t", "ESC_DD\t2D,", "FSAVE\t", "FSTSW\t", … … 721 721 #ifdef DEBUG 722 722 723 static c har *x86emu_fpu_op_de_tab[] =723 static const char *x86emu_fpu_op_de_tab[] = 724 724 { 725 725 "FIADD\tWORD PTR ", "FIMUL\tWORD PTR ", "FICOM\tWORD PTR ", … … 840 840 #ifdef DEBUG 841 841 842 static c har *x86emu_fpu_op_df_tab[] = {842 static const char *x86emu_fpu_op_df_tab[] = { 843 843 /* mod == 00 */ 844 844 "FILD\tWORD PTR ", "ESC_DF\t39\n", "FIST\tWORD PTR ", "FISTP\tWORD PTR ", -
trunk/util/x86emu/x86emu/ops.c
r5131 r5185 78 78 79 79 #ifdef DEBUG 80 static c har *x86emu_GenOpName[8] = {80 static const char *x86emu_GenOpName[8] = { 81 81 "ADD", "OR", "ADC", "SBB", "AND", "SUB", "XOR", "CMP"}; 82 82 #endif … … 160 160 #ifdef DEBUG 161 161 162 static c har *opF6_names[8] =162 static const char *opF6_names[8] = 163 163 { "TEST\t", "", "NOT\t", "NEG\t", "MUL\t", "IMUL\t", "DIV\t", "IDIV\t" }; 164 164 … … 179 179 DECODE_PRINTF("ILLEGAL X86 OPCODE\n"); 180 180 TRACE_REGS(); 181 DB( print k("%04x:%04x: %02X ILLEGAL X86 OPCODE!\n",181 DB( printf("%04x:%04x: %02X ILLEGAL X86 OPCODE!\n", 182 182 M.x86.R_CS, M.x86.R_IP-1,op1)); 183 183 HALT_SYS(); -
trunk/util/x86emu/x86emu/ops2.c
r4906 r5185 55 55 DECODE_PRINTF("ILLEGAL EXTENDED X86 OPCODE\n"); 56 56 TRACE_REGS(); 57 print k("%04x:%04x: %02X ILLEGAL EXTENDED X86 OPCODE!\n",57 printf("%04x:%04x: %02X ILLEGAL EXTENDED X86 OPCODE!\n", 58 58 M.x86.R_CS, M.x86.R_IP-2, op2); 59 59 HALT_SYS(); … … 106 106 DECODE_PRINTF("ILLEGAL EXTENDED X86 OPCODE IN 0F 01\n"); 107 107 TRACE_REGS(); 108 print k("%04x:%04x: %02X ILLEGAL EXTENDED X86 OPCODE!\n",108 printf("%04x:%04x: %02X ILLEGAL EXTENDED X86 OPCODE!\n", 109 109 M.x86.R_CS, M.x86.R_IP-2, op2); 110 110 HALT_SYS(); … … 1273 1273 DECODE_PRINTF("ILLEGAL EXTENDED X86 OPCODE\n"); 1274 1274 TRACE_REGS(); 1275 print k("%04x:%04x: %02X%02X ILLEGAL EXTENDED X86 OPCODE EXTENSION!\n",1275 printf("%04x:%04x: %02X%02X ILLEGAL EXTENDED X86 OPCODE EXTENSION!\n", 1276 1276 M.x86.R_CS, M.x86.R_IP-3,op2, (mod<<6)|(rh<<3)|rl); 1277 1277 HALT_SYS(); -
trunk/util/x86emu/x86emu/sys.c
r5040 r5185 42 42 /* $XFree86: xc/extras/x86emu/src/x86emu/sys.c,v 1.5 2000/08/23 22:10:01 tsi Exp $ */ 43 43 44 #include <arch/io.h> 44 45 #include <x86emu/x86emu.h> 45 46 #include <x86emu/regs.h> 46 47 #include "debug.h" 47 48 #include "prim_ops.h" 48 #if 1 /* Coreboot needs to map prinkf to printk. */49 #include "arch/io.h"50 #else51 #include <sys/io.h>52 #endif53 49 54 50 #ifdef IN_MODULE … … 70 66 71 67 if (addr > M.mem_size - size) { 72 DB(print k("mem_ptr: address %#x out of range!\n", addr);)68 DB(printf("mem_ptr: address %#x out of range!\n", addr);) 73 69 HALT_SYS(); 74 70 } 75 71 if (addr < 0x200) { 76 //print k("%x:%x updating int vector 0x%x\n",72 //printf("%x:%x updating int vector 0x%x\n", 77 73 // M.x86.R_CS, M.x86.R_IP, addr >> 2); 78 74 } … … 101 97 val = *ptr; 102 98 DB(if (DEBUG_MEM_TRACE()) 103 print k("%#08x 1 -> %#x\n", addr, val);)99 printf("%#08x 1 -> %#x\n", addr, val);) 104 100 return val; 105 101 } … … 124 120 125 121 DB(if (DEBUG_MEM_TRACE()) 126 print k("%#08x 2 -> %#x\n", addr, val);)122 printf("%#08x 2 -> %#x\n", addr, val);) 127 123 return val; 128 124 } … … 146 142 147 143 DB(if (DEBUG_MEM_TRACE()) 148 print k("%#08x 4 -> %#x\n", addr, val);)144 printf("%#08x 4 -> %#x\n", addr, val);) 149 145 return val; 150 146 } … … 166 162 167 163 DB(if (DEBUG_MEM_TRACE()) 168 print k("%#08x 1 <- %#x\n", addr, val);)164 printf("%#08x 1 <- %#x\n", addr, val);) 169 165 } 170 166 … … 185 181 186 182 DB(if (DEBUG_MEM_TRACE()) 187 print k("%#08x 2 <- %#x\n", addr, val);)183 printf("%#08x 2 <- %#x\n", addr, val);) 188 184 } 189 185 … … 204 200 205 201 DB(if (DEBUG_MEM_TRACE()) 206 print k("%#08x 4 <- %#x\n", addr, val);)202 printf("%#08x 4 <- %#x\n", addr, val);) 207 203 208 204 … … 220 216 { 221 217 DB(if (DEBUG_IO_TRACE()) 222 print k("inb %#04x \n", addr);)218 printf("inb %#04x \n", addr);) 223 219 return inb(addr); 224 220 } … … 235 231 { 236 232 DB(if (DEBUG_IO_TRACE()) 237 print k("inw %#04x \n", addr);)233 printf("inw %#04x \n", addr);) 238 234 return inw(addr); 239 235 } … … 250 246 { 251 247 DB(if (DEBUG_IO_TRACE()) 252 print k("inl %#04x \n", addr);)248 printf("inl %#04x \n", addr);) 253 249 return inl(addr); 254 250 } … … 264 260 { 265 261 DB(if (DEBUG_IO_TRACE()) 266 print k("outb %#02x -> %#04x \n", val, addr);)262 printf("outb %#02x -> %#04x \n", val, addr);) 267 263 outb(val, addr); 268 264 return; … … 279 275 { 280 276 DB(if (DEBUG_IO_TRACE()) 281 print k("outw %#04x -> %#04x \n", val, addr);)277 printf("outw %#04x -> %#04x \n", val, addr);) 282 278 outw(val, addr); 283 279 return; … … 294 290 { 295 291 DB(if (DEBUG_IO_TRACE()) 296 print k("outl %#08x -> %#04x \n", val, addr);)292 printf("outl %#08x -> %#04x \n", val, addr);) 297 293 298 294 outl(val, addr); -
trunk/util/x86emu/x86emu/x86emui.h
r4532 r5185 75 75 #include <xf86_ansic.h> 76 76 #else 77 //#include <stdio.h>78 //#include <stdlib.h>79 77 #include <string.h> 80 78 #endif -
trunk/util/x86emu/yabel/biosemu.c
r5135 r5185 2 2 * Copyright (c) 2004, 2008 IBM Corporation 3 3 * Copyright (c) 2008, 2009 Pattrick Hueper <phueper@hueper.net> 4 * Copyright (c) 2010 coresystems GmbH 4 5 * All rights reserved. 5 6 * This program and the accompanying materials … … 13 14 14 15 #include <string.h> 15 16 16 #include <types.h> 17 17 … … 29 29 #include "pmm.h" 30 30 31 #include <device/device.h> 31 32 #include "compat/rtas.h" 32 33 #include <device/device.h>34 33 35 34 static X86EMU_memFuncs my_mem_funcs = { … … 58 57 u8 *rom_image; 59 58 int i = 0; 60 #ifdef DEBUG 61 debug_flags = 0;//DEBUG_PRINT_INT10 | DEBUG_PNP | DEBUG_INTR | DEBUG_CHECK_VMEM_ACCESS | DEBUG_MEM | DEBUG_IO; 62 // | DEBUG_CHECK_VMEM_ACCESS | DEBUG_MEM | DEBUG_IO; 63 // | DEBUG_TRACE_X86EMU | DEBUG_JMP; 64 65 /* use CONFIG_YABEL_DEBUG_FLAGS, too... */ 66 debug_flags |= CONFIG_YABEL_DEBUG_FLAGS; 59 #if CONFIG_X86EMU_DEBUG 60 debug_flags = 0; 61 #if defined(CONFIG_X86EMU_DEBUG_JMP) && CONFIG_X86EMU_DEBUG_JMP 62 debug_flags |= DEBUG_JMP; 63 #endif 64 #if defined(CONFIG_X86EMU_DEBUG_TRACE) && CONFIG_X86EMU_DEBUG_TRACE 65 debug_flags |= DEBUG_TRACE_X86EMU; 66 #endif 67 #if defined(CONFIG_X86EMU_DEBUG_PNP) && CONFIG_X86EMU_DEBUG_PNP 68 debug_flags |= DEBUG_PNP; 69 #endif 70 #if defined(CONFIG_X86EMU_DEBUG_DISK) && CONFIG_X86EMU_DEBUG_DISK 71 debug_flags |= DEBUG_DISK; 72 #endif 73 #if defined(CONFIG_X86EMU_DEBUG_PMM) && CONFIG_X86EMU_DEBUG_PMM 74 debug_flags |= DEBUG_PMM; 75 #endif 76 #if defined(CONFIG_X86EMU_DEBUG_VBE) && CONFIG_X86EMU_DEBUG_VBE 77 debug_flags |= DEBUG_VBE; 78 #endif 79 #if defined(CONFIG_X86EMU_DEBUG_INT10) && CONFIG_X86EMU_DEBUG_INT10 80 debug_flags |= DEBUG_PRINT_INT10; 81 #endif 82 #if defined(CONFIG_X86EMU_DEBUG_INTERRUPTS) && CONFIG_X86EMU_DEBUG_INTERRUPTS 83 debug_flags |= DEBUG_INTR; 84 #endif 85 #if defined(CONFIG_X86EMU_DEBUG_CHECK_VMEM_ACCESS) && CONFIG_X86EMU_DEBUG_CHECK_VMEM_ACCESS 86 debug_flags |= DEBUG_CHECK_VMEM_ACCESS; 87 #endif 88 #if defined(CONFIG_X86EMU_DEBUG_MEM) && CONFIG_X86EMU_DEBUG_MEM 89 debug_flags |= DEBUG_MEM; 90 #endif 91 #if defined(CONFIG_X86EMU_DEBUG_IO) && CONFIG_X86EMU_DEBUG_IO 92 debug_flags |= DEBUG_IO; 93 #endif 94 67 95 #endif 68 96 if (biosmem_size < MIN_REQUIRED_VMEM_SIZE) { … … 201 229 202 230 // setup original ROM BIOS Area (F000:xxxx) 203 c har *date = "06/11/99";231 const char *date = "06/11/99"; 204 232 for (i = 0; date[i]; i++) 205 233 my_wrb(0xffff5 + i, date[i]); 206 234 // set up eisa ident string 207 c har *ident = "PCI_ISA";235 const char *ident = "PCI_ISA"; 208 236 for (i = 0; ident[i]; i++) 209 237 my_wrb(0xfffd9 + i, ident[i]); … … 251 279 // any return will pop the pointer and jump to the HLT, thus 252 280 // exiting (more or less) cleanly 253 push_word(0xf4f4); // F4=HLT281 push_word(0xf4f4); // F4=HLT 254 282 push_word(M.x86.R_SS); 255 283 push_word(M.x86.R_SP + 2); … … 257 285 CHECK_DBG(DEBUG_TRACE_X86EMU) { 258 286 X86EMU_trace_on(); 287 #if 0 259 288 } else { 260 #ifdef DEBUG261 289 M.x86.debug |= DEBUG_SAVE_IP_CS_F; 262 290 M.x86.debug |= DEBUG_DECODE_F; … … 269 297 M.x86.debug |= DEBUG_TRACECALL_F; 270 298 M.x86.debug |= DEBUG_TRACECALL_REGS_F; 271 }299 } 272 300 273 301 DEBUG_PRINTF("Executing Initialization Vector...\n"); … … 279 307 */ 280 308 DEBUG_PRINTF_CS_IP("Option ROM Exit Status: %04x\n", M.x86.R_AX); 281 #if defDEBUG309 #if defined(CONFIG_X86EMU_DEBUG) && CONFIG_X86EMU_DEBUG 282 310 DEBUG_PRINTF("Exit Status Decode:\n"); 283 311 if (M.x86.R_AX & 0x100) { // bit 8 … … 345 373 DEBUG_PRINTF("Stack is clean, initialization successfull!\n"); 346 374 } else { 347 DEBUG_PRINTF 348 ("Stack unclean, initialization probably NOT COMPLETE!!\n"); 375 printf("Stack unclean, initialization probably NOT COMPLETE!\n"); 349 376 DEBUG_PRINTF("SS:SP = %04x:%04x, expected: %04x:%04x\n", 350 377 M.x86.R_SS, M.x86.R_SP, STACK_SEGMENT, 351 378 STACK_START_OFFSET); 352 379 } 353 354 380 355 381 // TODO: according to the BIOS Boot Spec initializations may be ended using INT18h and setting -
trunk/util/x86emu/yabel/biosemu.h
r4532 r5185 47 47 extern yabel_handleIntFunc yabel_intFuncArray[256]; 48 48 49 struct device; 50 51 u32 biosemu(u8 *biosmem, u32 biosmem_size, struct device *dev, unsigned long rom_addr); 49 52 #endif -
trunk/util/x86emu/yabel/compat/functions.c
r5135 r5185 18 18 #include <device/device.h> 19 19 #include "../debug.h" 20 #include "../biosemu.h" 20 21 21 22 #define VMEM_SIZE (1024 * 1024) /* 1 MB */ … … 31 32 #endif 32 33 33 u32 biosemu(u8 *biosmem, u32 biosmem_size, struct device *dev,34 unsigned long rom_addr);35 34 #if CONFIG_BOOTSPLASH 36 35 void vbe_set_graphics(void); … … 47 46 48 47 if (vmem != NULL) { 49 printf("Copying legacy memory from 0x%08xto the lower 1MB\n", vmem);50 memcpy( 0x00000, vmem + 0x00000, 0x400); // IVT51 memcpy( 0x00400, vmem + 0x00400, 0x100); // BDA52 memcpy( 0xc0000, vmem + 0xc0000, 0x10000); // VGA OPROM48 printf("Copying legacy memory from %p to the lower 1MB\n", vmem); 49 memcpy((void *)0x00000, vmem + 0x00000, 0x400); // IVT 50 memcpy((void *)0x00400, vmem + 0x00400, 0x100); // BDA 51 memcpy((void *)0xc0000, vmem + 0xc0000, 0x10000); // VGA OPROM 53 52 } 54 53 } -
trunk/util/x86emu/yabel/debug.h
r5131 r5185 22 22 /* printf is not available in coreboot... use printk */ 23 23 #include <console/console.h> 24 /* uurgs... yuck... x86emu/x86emu.h is redefining printk... we include it here25 * and use its redefinition of printk26 * TODO: FIX!!!! */27 24 #include "x86emu/x86emu.h" 28 #define printf printk25 #define printf(x...) printk(BIOS_DEBUG, x) 29 26 30 27 /* PH: empty versions of set/clr_ci … … 33 30 static inline void set_ci(void) {}; 34 31 35 /* Set CONFIG_YABEL_DEBUG_FLAGS is a binary switch that allows you36 * to select the following items to debug. 1=on 0=off. After you37 * decide what you want to debug create the binary value, convert to hex38 * and set the Option (Ex. CONFIG_YABEL_DEBUG_FLAGS = 0x31FF //Debug All).32 /* debug_flags is a binary switch that allows you to select the following items 33 * to debug. 1=on 0=off. After you decide what you want to debug create the 34 * binary value, convert to hex and set the option. These options can be 35 * selected in Kconfig. 39 36 * 40 37 * |-DEBUG_JMP - print info about JMP and RETF opcodes from x86emu … … 70 67 #define DEBUG_JMP 0x2000 71 68 72 //#define DEBUG 73 //#undef DEBUG 74 #ifdef DEBUG 69 #if defined(CONFIG_X86EMU_DEBUG) && CONFIG_X86EMU_DEBUG 75 70 76 71 #define CHECK_DBG(_flag) if (debug_flags & _flag) -
trunk/util/x86emu/yabel/device.c
r5131 r5185 41 41 /* coreboot version */ 42 42 43 void43 static void 44 44 biosemu_dev_get_addr_info(void) 45 45 { … … 113 113 // store last entry index of translate_address_array 114 114 taa_last_entry = taa_index - 1; 115 #if defDEBUG115 #if defined(CONFIG_X86EMU_DEBUG) && CONFIG_X86EMU_DEBUG 116 116 //dump translate_address_array 117 117 printf("translate_address_array: \n"); … … 196 196 // store last entry index of translate_address_array 197 197 taa_last_entry = taa_index - 1; 198 #if defDEBUG198 #if defined(CONFIG_X86EMU_DEBUG) && CONFIG_X86EMU_DEBUG 199 199 //dump translate_address_array 200 200 printf("translate_address_array: \n"); … … 211 211 #endif 212 212 213 #ifndef CONFIG_PCI_OPTION_ROM_RUN_YABEL 213 214 // to simulate accesses to legacy VGA Memory (0xA0000-0xBFFFF) 214 215 // we look for the first prefetchable memory BAR, if no prefetchable BAR found, 215 216 // we use the first memory BAR 216 217 // dev_translate_addr will translate accesses to the legacy VGA Memory into the found vmem BAR 217 void218 static void 218 219 biosemu_dev_find_vmem_addr(void) 219 220 { … … 258 259 } 259 260 260 #ifndef CONFIG_PCI_OPTION_ROM_RUN_YABEL261 261 void 262 262 biosemu_dev_get_puid(void) … … 268 268 #endif 269 269 270 void270 static void 271 271 biosemu_dev_get_device_vendor_id(void) 272 272 { … … 335 335 sizeof(pci_ds)); 336 336 clr_ci(); 337 #if defDEBUG337 #if defined(CONFIG_X86EMU_DEBUG) && CONFIG_X86EMU_DEBUG 338 338 DEBUG_PRINTF("PCI Data Structure @%lx:\n", 339 339 rom_base_addr + pci_ds_offset); -
trunk/util/x86emu/yabel/interrupt.c
r5040 r5185 12 12 *****************************************************************************/ 13 13 14 #include <types.h> 14 15 #include "compat/rtas.h" 15 16 … … 19 20 #include "debug.h" 20 21 #include "pmm.h" 22 #include "interrupt.h" 21 23 22 24 #include <x86emu/x86emu.h> -
trunk/util/x86emu/yabel/io.c
r5135 r5185 18 18 #include "debug.h" 19 19 #include <x86emu/x86emu.h> 20 #include "io.h" 20 21 21 22 #ifdef CONFIG_PCI_OPTION_ROM_RUN_YABEL … … 88 89 89 90 val = inb(addr); 90 #ifdef CONFIG_DEBUG 91 if ((debug_flags & DEBUG_IO) && (addr != 0x40)) 92 printk("inb(0x%04x) = 0x%02x\n", addr, val); 93 #endif 91 DEBUG_PRINTF_IO("inb(0x%04x) = 0x%02x\n", addr, val); 94 92 95 93 return val; … … 101 99 102 100 val = inw(addr); 103 104 #ifdef CONFIG_DEBUG 105 if (debug_flags & DEBUG_IO) 106 printk("inw(0x%04x) = 0x%04x\n", addr, val); 107 #endif 101 DEBUG_PRINTF_IO("inw(0x%04x) = 0x%04x\n", addr, val); 102 108 103 return val; 109 104 } … … 114 109 115 110 val = inl(addr); 116 117 #ifdef CONFIG_DEBUG 118 if (debug_flags & DEBUG_IO) 119 printk("inl(0x%04x) = 0x%08x\n", addr, val); 120 #endif 111 DEBUG_PRINTF_IO("inl(0x%04x) = 0x%08x\n", addr, val); 112 121 113 return val; 122 114 } … … 124 116 void my_outb(X86EMU_pioAddr addr, u8 val) 125 117 { 126 #ifdef CONFIG_DEBUG 127 if ((debug_flags & DEBUG_IO) && (addr != 0x43)) 128 printk("outb(0x%02x, 0x%04x)\n", val, addr); 129 #endif 118 DEBUG_PRINTF_IO("outb(0x%02x, 0x%04x)\n", val, addr); 130 119 outb(val, addr); 131 120 } … … 133 122 void my_outw(X86EMU_pioAddr addr, u16 val) 134 123 { 135 #ifdef CONFIG_DEBUG 136 if (debug_flags & DEBUG_IO) 137 printk("outw(0x%04x, 0x%04x)\n", val, addr); 138 #endif 124 DEBUG_PRINTF_IO("outw(0x%04x, 0x%04x)\n", val, addr); 139 125 outw(val, addr); 140 126 } … … 142 128 void my_outl(X86EMU_pioAddr addr, u32 val) 143 129 { 144 #ifdef CONFIG_DEBUG 145 if (debug_flags & DEBUG_IO) 146 printk("outl(0x%08x, 0x%04x)\n", val, addr); 147 #endif 130 DEBUG_PRINTF_IO("outl(0x%08x, 0x%04x)\n", val, addr); 148 131 outl(val, addr); 149 132 } -
trunk/util/x86emu/yabel/mem.c
r5135 r5185 17 17 #include "x86emu/x86emu.h" 18 18 #include "biosemu.h" 19 #include "mem.h" 19 20 #include "compat/time.h" 20 21 21 22 // define a check for access to certain (virtual) memory regions (interrupt handlers, BIOS Data Area, ...) 22 #if defDEBUG23 #if CONFIG_X86EMU_DEBUG 23 24 static u8 in_check = 0; // to avoid recursion... 24 25 u16 ebda_segment; … … 27 28 //TODO: these macros have grown so large, that they should be changed to an inline function, 28 29 //just for the sake of readability... 29 30 //declare prototypes of the functions to follow, for use in DEBUG_CHECK_VMEM_ACCESS31 u8 my_rdb(u32);32 u16 my_rdw(u32);33 u32 my_rdl(u32);34 30 35 31 #define DEBUG_CHECK_VMEM_READ(_addr, _rval) \ -
trunk/util/x86emu/yabel/vbe.c
r5177 r5185 155 155 156 156 // VBE Function 00h 157 u8157 static u8 158 158 vbe_info(vbe_info_t * info) 159 159 { … … 224 224 225 225 // VBE Function 01h 226 u8226 static u8 227 227 vbe_get_mode_info(vbe_mode_info_t * mode_info) 228 228 { … … 265 265 266 266 // VBE Function 02h 267 u8267 static u8 268 268 vbe_set_mode(vbe_mode_info_t * mode_info) 269 269 { … … 302 302 303 303 //VBE Function 08h 304 u8304 static u8 305 305 vbe_set_palette_format(u8 format) 306 306 { … … 338 338 339 339 // VBE Function 09h 340 u8340 static u8 341 341 vbe_set_color(u16 color_number, u32 color_value) 342 342 { … … 380 380 } 381 381 382 u8382 static u8 383 383 vbe_get_color(u16 color_number, u32 * color_value) 384 384 { … … 423 423 424 424 // VBE Function 15h 425 u8425 static u8 426 426 vbe_get_ddc_info(vbe_ddc_info_t * ddc_info) 427 427 { … … 497 497 } 498 498 499 u32499 static u32 500 500 vbe_get_info(void) 501 501 { … … 572 572 #endif 573 573 if (*((u64 *) ddc_info.edid_block_zero) != 574 (u64) 0x00FFFFFFFFFFFF00 ) {574 (u64) 0x00FFFFFFFFFFFF00ULL) { 575 575 // invalid EDID signature... probably no monitor 576 576 … … 600 600 DEBUG_PRINTF_VBE("Video Mode 0x%04x available, %s\n", 601 601 mode_info.video_mode, 602 ( mode_info.attributes& 0x1) ==602 (le16_to_cpu(mode_info.vesa.mode_attributes) & 0x1) == 603 603 0 ? "not supported" : "supported"); 604 604 DEBUG_PRINTF_VBE("\tTTY: %s\n", 605 ( mode_info.attributes& 0x4) ==605 (le16_to_cpu(mode_info.vesa.mode_attributes) & 0x4) == 606 606 0 ? "no" : "yes"); 607 607 DEBUG_PRINTF_VBE("\tMode: %s %s\n", 608 ( mode_info.attributes& 0x8) ==608 (le16_to_cpu(mode_info.vesa.mode_attributes) & 0x8) == 609 609 0 ? "monochrome" : "color", 610 ( mode_info.attributes& 0x10) ==610 (le16_to_cpu(mode_info.vesa.mode_attributes) & 0x10) == 611 611 0 ? "text" : "graphics"); 612 612 DEBUG_PRINTF_VBE("\tVGA: %s\n", 613 ( mode_info.attributes& 0x20) ==613 (le16_to_cpu(mode_info.vesa.mode_attributes) & 0x20) == 614 614 0 ? "compatible" : "not compatible"); 615 615 DEBUG_PRINTF_VBE("\tWindowed Mode: %s\n", 616 ( mode_info.attributes& 0x40) ==616 (le16_to_cpu(mode_info.vesa.mode_attributes) & 0x40) == 617 617 0 ? "yes" : "no"); 618 618 DEBUG_PRINTF_VBE("\tFramebuffer: %s\n", 619 ( mode_info.attributes& 0x80) ==619 (le16_to_cpu(mode_info.vesa.mode_attributes) & 0x80) == 620 620 0 ? "no" : "yes"); 621 621 DEBUG_PRINTF_VBE("\tResolution: %dx%d\n", 622 mode_info.x_resolution,623 mode_info.y_resolution);622 le16_to_cpu(mode_info.vesa.x_resolution), 623 le16_to_cpu(mode_info.vesa.y_resolution)); 624 624 DEBUG_PRINTF_VBE("\tChar Size: %dx%d\n", 625 mode_info. x_charsize, mode_info.y_charsize);625 mode_info.vesa.x_charsize, mode_info.vesa.y_charsize); 626 626 DEBUG_PRINTF_VBE("\tColor Depth: %dbpp\n", 627 mode_info. bits_per_pixel);627 mode_info.vesa.bits_per_pixel); 628 628 DEBUG_PRINTF_VBE("\tMemory Model: 0x%x\n", 629 mode_info. memory_model);629 mode_info.vesa.memory_model); 630 630 DEBUG_PRINTF_VBE("\tFramebuffer Offset: %08x\n", 631 mode_info.framebuffer_address);631 le32_to_cpu(mode_info.vesa.phys_base_ptr)); 632 632 633 633 if ((mode_info.vesa.bits_per_pixel == input.color_depth) … … 648 648 ("Best Video Mode found: 0x%x, %dx%d, %dbpp, framebuffer_address: 0x%x\n", 649 649 best_mode_info.video_mode, 650 best_mode_info. x_resolution,651 best_mode_info. y_resolution,652 best_mode_info. bits_per_pixel,653 best_mode_info.framebuffer_address);650 best_mode_info.vesa.x_resolution, 651 best_mode_info.vesa.y_resolution, 652 best_mode_info.vesa.bits_per_pixel, 653 le32_to_cpu(best_mode_info.vesa.phys_base_ptr)); 654 654 655 655 //printf("Mode Info Dump:");
Note: See TracChangeset
for help on using the changeset viewer.
