lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 23 Jul 2008 13:12:18 -0700
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	Yinghai Lu <yhlu.kernel@...il.com>
Cc:	mingo@...e.hu, tglx@...utronix.de, hpa@...or.com,
	andi@...stfloor.org, arjan@...radead.org, ebiederm@...ssion.com,
	greg@...ah.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] x86: usb debug port early console

On Wed, 23 Jul 2008 12:52:20 -0700
Yinghai Lu <yhlu.kernel@...il.com> wrote:

> 
> 
> based on work from Eric, and add some timeout so don't dead loop when debug device
> is not installed
> 
>
> ...
>
> +static void dbgp_mdelay(int ms)
> +{
> +	int i;
> +	while (ms--) {
> +		for (i = 0; i < 1000; i++)
> +			outb(0x1, 0x80);
> +	}
> +}

hm.  port 80 has a guaranteed one microsecond?  Why not
udelay()/mdelay()/etc?

> +static void dbgp_breath(void)
> +{
> +	/* Sleep to give the debug port a chance to breathe */
> +}

I expect the compiler will optimise away any calls to this.

>
> ...
>
> --- linux-2.6.orig/arch/x86/kernel/head64.c
> +++ linux-2.6/arch/x86/kernel/head64.c
> @@ -72,6 +72,8 @@ static void __init copy_bootdata(char *r
>  	}
>  }
>  
> +extern void __init enable_debug_console(char *buf);

Please always pass all patches through scripts/checkpatch.pl.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ