Change CONFIG_LB_MEM_TOPK to CONFIG_RAMTOP to match CONFIG_RAMBASE.
[coreboot.git] / src / pc80 / usbdebug_direct_serial.c
index 8a8b8c6c1eea7f04386d96630575360c32b835e9..21f6109ce387ee1ee036bb85e6c5490a78c20413 100644 (file)
@@ -45,7 +45,7 @@ void usbdebug_direct_ram_tx_byte(unsigned char data)
 
        /* "Find" dbg_info structure in RAM */
        dbg_info = (struct ehci_debug_info *)
-           ((CONFIG_LB_MEM_TOPK << 10) - sizeof(struct ehci_debug_info));
+           ((CONFIG_RAMTOP) - sizeof(struct ehci_debug_info));
 
        if (dbg_info->ehci_debug) {
                dbgp_bulk_write_x(dbg_info, &data, 1);