[Lost] [Patch] rtl8139 Fix

Kevin Wolf ·

Antoine Kaufmann schrieb:
> Index: src/modules/rtl8139/rtl8139.c
> ===================================================================
> --- src/modules/rtl8139/rtl8139.c	(Revision 692)
> +++ src/modules/rtl8139/rtl8139.c	(Arbeitskopie)
> @@ -118,7 +118,10 @@
>  {
>      DEBUG_MSG("Interrupthandler und Ports registrieren");
>      register_intr_handler(0x20 + netcard->irq, irq_handler);
> -    request_ports(netcard->port_base, 0x100);
> +    if (request_ports(netcard->port_base, 0x100) == FALSE) {
> +        printf("ports koennen nicht registriert werden!!!\n");

"Multiple exclamation marks", he went on, shaking his head, "are a sure 
sign of a diseased mind." ;-)

fprintf(stderr, "rtl8139: IO-Ports konnten nicht registriert werden\n");

Antworten