From nobody Sat Dec 21 14:42:07 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) smtp.mailfrom=seabios-bounces@seabios.org Return-Path: Received: from coreboot.org (coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1692999400570980.9627458515346; Fri, 25 Aug 2023 14:36:40 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id DAAC822F88; Fri, 25 Aug 2023 21:36:34 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id 5A1FD213E3 for ; Fri, 25 Aug 2023 21:36:17 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) for ; Fri, 25 Aug 2023 14:36:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=obe-tv.20221208.gappssmtp.com; s=20221208; t=1692999376; x=1693604176; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=A4IqR9JrbW5rcvp+eg+S4JMG5882EBPAT63cLv6K4Bw=; b=ZIougPP4Tp8IaLTIJcl4fqJcEJMOuerrwAIpXvgWva9hBJTkBYlRQdv+aJzwxXPLhq t6/DODF62XChi6Z7Q3urriv2xrJDheLXyPo2kyBSu5wHvA2gbRzWwXjZCfuiv1RbhJh6 LTWXNDHxTRXXbFYHjx3xJ1bckbokLwIfJcRcYNriY+ps1RfV0+SKvi7822zF+U3e93hi wmSGT2QZXahYfg034UPtLTK4aAZJeGmyCaku5auRFPOasEQqzFBTB4M+yjiPulZejYhd gqt3hDz0HYC8rAPEwR5yLV9DUTm9d/BSzZPwVk5R71m+CT0vVX9lvimBcWazSc6M/uxT J+1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692999376; x=1693604176; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=A4IqR9JrbW5rcvp+eg+S4JMG5882EBPAT63cLv6K4Bw=; b=hyuSzGnkp1CZnUBLxs1R5AbL64koHXKPTURz4XG3JveP4cY+cXAcdobb8kglXxipsV 2+1NDOasSxZ1fXDxtX4vJJt4aelCdjnTQZflMhlehEuiB8zwp/+y21iR/Dcb3jCL3KZL VFz606D+/ZCN0E6z9Lh5OTAzaqySvMQfKXD+BovbtjFjpgkPHrKVoqRHs8h5uwh+PZ0Z SHvO0pJfzxb2d9dgpY6w6+q0YiCx+OtZMOpNlOX3hzEoHiWgvaO8ocFOyOotJXn4L1Zu qV9owkx3jpInjgs976ftxDGzG22speU+cqUcvR3Od44toF8HaG9HFNXb4MvUzOOmz+b8 NLLw== X-Gm-Message-State: AOJu0YxqbSZr5KKh6ir9qUyxL1asXVK7868vOq8h07aKo2eKtAFSTtfg o+qrLWBFqd8Z/4MJ0gyw7YhOzEevwhDuO+E1cNJok0shpspLrWayg93YLw== X-Google-Smtp-Source: AGHT+IFTid08SM/yRWqooBoqUx5lA6T+UyYy2KrFLo5IiKWUn2rdIQkff2sn/kEKsa6pkWEdegkBwaF9WDP5+wE/HE8= X-Received: by 2002:a05:6214:5d06:b0:63c:ea63:4717 with SMTP id me6-20020a0562145d0600b0063cea634717mr18561642qvb.43.1692999375801; Fri, 25 Aug 2023 14:36:15 -0700 (PDT) MIME-Version: 1.0 From: Kieran Kunhya Date: Fri, 25 Aug 2023 22:36:04 +0100 Message-ID: To: seabios@seabios.org Content-Type: multipart/mixed; boundary="00000000000066a2020603c62254" Message-ID-Hash: VBZYJDHKBA7IB5WWID2P7CIG6G2RCM4N X-Message-ID-Hash: VBZYJDHKBA7IB5WWID2P7CIG6G2RCM4N X-MailFrom: kierank@ob-encoder.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-seabios.seabios.org-0; header-match-seabios.seabios.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [SeaBIOS] Malloc Question List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Authentication-Results: coreboot.org; auth=pass smtp.auth=mailman@coreboot.org smtp.mailfrom=seabios-bounces@seabios.org X-Spamd-Bar: / X-Zoho-Virus-Status: 1 X-Zoho-AV-Stamp: zmail-av-1.1.0/192.977.21 X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1692999401977100001 --00000000000066a2020603c62254 Content-Type: multipart/alternative; boundary="00000000000066a2000603c62252" --00000000000066a2000603c62252 Content-Type: text/plain; charset="UTF-8" Hello, I'm trying to update this patch for 2017 as I have the same issue as the author in that I can't use the KVM virtual keyboard and a physical keyboard at the same time: https://patchew.org/Seabios/20171215100946.58298-1-stef.van.os@prodrive-technologies.com/ I have implemented a linked list as recommended but this has not worked as expected. Assuming I have not made an obvious mistake, I think maybe this patch is not working because I'm using the wrong malloc. Which one should I be using? Thanks for your help. Regards, Kieran Kunhya --00000000000066a2000603c62252 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I'm trying to upd= ate this patch for 2017 as I have the same issue as the author in that I ca= n't use the KVM virtual keyboard and a physical keyboard at the same ti= me:
<= br>
I have implemented a linked list as recommended but this has = not worked as expected. Assuming I have not made an obvious mistake, I thin= k maybe this patch is not working because I'm using the wrong malloc. W= hich one should I be using?

Thanks for your help.<= /div>

Regards,
Kieran Kunhya
--00000000000066a2000603c62252-- --00000000000066a2020603c62254 Content-Type: application/octet-stream; name="0001-add-multiple-usb-hid-support.patch" Content-Disposition: attachment; filename="0001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pYWxpemVkXG4iKTsKKyAgICBwcmV2ID0gZW5k ID0gR0VUX0dMT0JBTChrZXlib2FyZF9saXN0KTsKKyAgICB3aGlsZSAoZW5kKSB7CisgICAgICAg IHByZXYgPSBlbmQ7CisgICAgICAgIGVuZCA9IGVuZC0+bmV4dDsKKyAgICAgICAga2JkX2lkeCsr OworICAgIH0KKworICAgIGVuZCA9IG1hbGxvY19sb3coc2l6ZW9mKCplbmQpKTsKKyAgICBpZiAo IWVuZCkKKyAgICAgICAgcmV0dXJuIC0xOworCisgICAgZW5kLT5rZXlib2FyZF9waXBlID0ga2V5 Ym9hcmRfcGlwZTsKKyAgICBlbmQtPm5leHQgPSBOVUxMOworCisgICAgaWYgKCFwcmV2KQorICAg ICAgICBrZXlib2FyZF9saXN0ID0gZW5kOworICAgIGVsc2UKKyAgICAgICAgcHJldi0+bmV4dCA9 IGVuZDsKKworICAgIGRwcmludGYoMSwgIlVTQiBrZXlib2FyZCAlZCBpbml0aWFsaXplZFxuIiwg a2JkX2lkeCk7CiAgICAgcmV0dXJuIDA7CiB9CiAKQEAgLTMyMSwxMyArMzQ4LDEwIEBAIGhhbmRs ZV9rZXkoc3RydWN0IGtleWV2ZW50ICpkYXRhKQogCiAvLyBDaGVjayBpZiBhIFVTQiBrZXlib2Fy ZCBldmVudCBpcyBwZW5kaW5nIGFuZCBwcm9jZXNzIGl0IGlmIHNvLgogc3RhdGljIHZvaWQKLXVz Yl9jaGVja19rZXkodm9pZCkKK3VzYl9jaGVja19rZXkoc3RydWN0IHVzYl9waXBlICpwaXBlKQog ewogICAgIGlmICghIENPTkZJR19VU0JfS0VZQk9BUkQpCiAgICAgICAgIHJldHVybjsKLSAgICBz dHJ1Y3QgdXNiX3BpcGUgKnBpcGUgPSBHRVRfR0xPQkFMKGtleWJvYXJkX3BpcGUpOwotICAgIGlm ICghcGlwZSkKLSAgICAgICAgcmV0dXJuOwogCiAgICAgZm9yICg7OykgewogICAgICAgICB1OCBk YXRhW01BWF9LQkRfRVZFTlRdOwpAQCAtMzQ0LDcgKzM2OCw3IEBAIHVzYl9rYmRfYWN0aXZlKHZv aWQpCiB7CiAgICAgaWYgKCEgQ09ORklHX1VTQl9LRVlCT0FSRCkKICAgICAgICAgcmV0dXJuIDA7 Ci0gICAgcmV0dXJuIEdFVF9HTE9CQUwoa2V5Ym9hcmRfcGlwZSkgIT0gTlVMTDsKKyAgICByZXR1 cm4gR0VUX0dMT0JBTChrZXlib2FyZF9saXN0KSAhPSBOVUxMOwogfQogCiAvLyBIYW5kbGUgYSBw czIgc3R5bGUga2V5Ym9hcmQgY29tbWFuZC4KQEAgLTQ1MSw2ICs0NzUsOSBAQCB1c2JfbW91c2Vf Y29tbWFuZChpbnQgY29tbWFuZCwgdTggKnBhcmFtKQogdm9pZAogdXNiX2NoZWNrX2V2ZW50KHZv aWQpCiB7Ci0gICAgdXNiX2NoZWNrX2tleSgpOworICAgIHN0cnVjdCBrZXlib2FyZF9saXN0ICpr YmRfbGlzdCA9IEdFVF9HTE9CQUwoa2V5Ym9hcmRfbGlzdCk7CisKKyAgICBmb3IoOyBrYmRfbGlz dCAhPSBOVUxMOyBrYmRfbGlzdCA9IGtiZF9saXN0LT5uZXh0KQorICAgICAgICB1c2JfY2hlY2tf a2V5KGtiZF9saXN0LT5rZXlib2FyZF9waXBlKTsKICAgICB1c2JfY2hlY2tfbW91c2UoKTsKIH0K LS0gCjIuMjQuMS53aW5kb3dzLjIKCg== --00000000000066a2020603c62254 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org --00000000000066a2020603c62254--