* [uml-devel] hack: avoid "Registered protocol family 2" hang
@ 2004-03-05 13:01 Werner Almesberger
2004-03-05 13:56 ` [uml-devel] Re: [uml-user] " Jonathan Boler
0 siblings, 1 reply; 3+ messages in thread
From: Werner Almesberger @ 2004-03-05 13:01 UTC (permalink / raw)
To: user-mode-linux-devel; +Cc: user-mode-linux-user
[-- Attachment #1: Type: text/plain, Size: 484 bytes --]
I've attached a little hack that should make the hang after
NET: Registered protocol family 2
disappear. This isn't the real solution (haven't yet figured
out how this is truly supposed to work on non-SMP), but it
gives me a happier UML :-)
- Werner
--
_________________________________________________________________________
/ Werner Almesberger, Buenos Aires, Argentina werner@almesberger.net /
/_http://www.almesberger.net/____________________________________________/
[-- Attachment #2: p --]
[-- Type: text/plain, Size: 371 bytes --]
--- linux-2.6.1-orig/arch/um/kernel/time_kern.c 2004-03-05 13:37:14.638203216 +0100
+++ linux-2.6.1/arch/um/kernel/time_kern.c 2004-03-05 13:14:03.159740096 +0100
@@ -172,6 +172,7 @@
update_process_times(user_context(UPT_SP(regs)));
local_irq_enable();
#endif
+ update_process_times(user_context(UPT_SP(regs)));
if(current_thread->cpu == 0)
timer_irq(regs);
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* [uml-devel] Re: [uml-user] hack: avoid "Registered protocol family 2" hang
2004-03-05 13:01 [uml-devel] hack: avoid "Registered protocol family 2" hang Werner Almesberger
@ 2004-03-05 13:56 ` Jonathan Boler
2004-03-08 13:55 ` Werner Almesberger
0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Boler @ 2004-03-05 13:56 UTC (permalink / raw)
To: Werner Almesberger; +Cc: user-mode-linux-devel
[-- Attachment #1: Type: text/plain, Size: 472 bytes --]
Werner Almesberger wrote:
> I've attached a little hack that should make the hang after
> NET: Registered protocol family 2
> disappear. This isn't the real solution (haven't yet figured
> out how this is truly supposed to work on non-SMP), but it
> gives me a happier UML :-)
>
> - Werner
>
The actual bug has been fixed. The problem was the host cpu Hz was being
truncated to a signed int so uml wouldn't run on a host faster than 2.1Ghz.
Patch attached
Jonathan
[-- Attachment #2: hz.patch --]
[-- Type: text/plain, Size: 470 bytes --]
--- arch/um/kernel/time.c 2004-03-05 13:54:12.262248632 +0000
+++ ../../linux-2.6.3/arch/um/kernel/time.c 2004-03-04 08:54:33.000000000 +0000
@@ -88,7 +88,8 @@
static unsigned long long get_host_hz(void)
{
char mhzline[16], *end;
- int ret, mult, mhz, rest, len;
+ int ret, mult, rest, len;
+ unsigned long long mhz;
ret = cpu_feature("cpu MHz", mhzline,
sizeof(mhzline) / sizeof(mhzline[0]));
^ permalink raw reply [flat|nested] 3+ messages in thread
* [uml-devel] Re: [uml-user] hack: avoid "Registered protocol family 2" hang
2004-03-05 13:56 ` [uml-devel] Re: [uml-user] " Jonathan Boler
@ 2004-03-08 13:55 ` Werner Almesberger
0 siblings, 0 replies; 3+ messages in thread
From: Werner Almesberger @ 2004-03-08 13:55 UTC (permalink / raw)
To: Jonathan Boler; +Cc: user-mode-linux-devel
Jonathan Boler wrote:
> Patch attached
Thanks a lot ! I've been following the list through the archive, but
that seems to be very out of sync now :-(
- Werner
--
_________________________________________________________________________
/ Werner Almesberger, Buenos Aires, Argentina werner@almesberger.net /
/_http://www.almesberger.net/____________________________________________/
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-03-08 14:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-05 13:01 [uml-devel] hack: avoid "Registered protocol family 2" hang Werner Almesberger
2004-03-05 13:56 ` [uml-devel] Re: [uml-user] " Jonathan Boler
2004-03-08 13:55 ` Werner Almesberger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.