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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <m1r6zzx41y.fsf@ebiederm.dsl.xmission.com>
Date:	Tue, 01 Aug 2006 20:30:17 -0600
From:	ebiederm@...ssion.com (Eric W. Biederman)
To:	Andi Kleen <ak@...e.de>
Cc:	<linux-kernel@...r.kernel.org>, Horms <horms@...ge.net.au>,
	Jan Kratochvil <lace@...kratochvil.net>,
	"H. Peter Anvin" <hpa@...or.com>,
	Magnus Damm <magnus.damm@...il.com>,
	Vivek Goyal <vgoyal@...ibm.com>, Linda Wang <lwang@...hat.com>
Subject: Re: [PATCH 9/33] i386 boot: Add serial output support to the decompressor

Andi Kleen <ak@...e.de> writes:

> "Eric W. Biederman" <ebiederm@...ssion.com> writes:
>>  			}
>> @@ -200,6 +224,178 @@ static void putstr(const char *s)
>>  	outb_p(0xff & (pos >> 1), vidport+1);
>>  }
>>  
>> +static void vid_console_init(void)
>
> Please just use early_printk instead of reimplementing this. 
> I think it should work in this context too.

It doesn't or at least it didn't.  I can look again though.

>> +static inline int tolower(int ch)
>> +{
>> +	return ch | 0x20;
>> +}
>> +
>> +static inline int isdigit(int ch)
>> +{
>> +	return (ch >= '0') && (ch <= '9');
>> +}
>> +
>> +static inline int isxdigit(int ch)
>> +{
>> +	ch = tolower(ch);
>> +	return isdigit(ch) || ((ch >= 'a') && (ch <= 'f'));
>> +}
>
> And please reuse the Linux code here.

Reuse is hard because we really are a separate executable,
in a slightly different environment.

> Actually the best way to reuse would be to first do 64bit uncompressor
> and linker directly, but short of that #includes would be fine too.

> Would be better to just pull in lib/string.c

Maybe.  Size is fairly important here so I am concerned that I
will pull in more than I need.  But look and see if I can pull
in just a subset of what is needed.

Eric
-
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