From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f41.google.com (mail-io1-f41.google.com [209.85.166.41]) by mx.groups.io with SMTP id smtpd.web08.16598.1654795795801224412 for ; Thu, 09 Jun 2022 10:29:55 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=F5kBq/s/; spf=pass (domain: gmail.com, ip: 209.85.166.41, mailfrom: ayushdevel1325@gmail.com) Received: by mail-io1-f41.google.com with SMTP id n11so2968156iod.4 for ; Thu, 09 Jun 2022 10:29:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=vqHOhdxUAX5hLaE+WNoISfkP9arBWQZDiMl1nlrFXIg=; b=F5kBq/s/z0DSXyaP/2bXcb0+3y/7WTZ5GeY7zAuyXxlOLaxshlQAslrqnV9EUfeF7d CK0bLzZCaIUqC9O9Vniihs+H92NoMOvZtEJdSdniGcVgFEaXQeNLX6w+ZUZ6UhoqWtoQ 6nBhhJGvcYKO/6qymB2nDUJWFXFehZ6Io4fz6Ee+gjzbRczdKNrY9chM9EK1TodBy4RR jq5n0B8CGdTfhcNU/2vd0QlNKtYy7vuKNO9518Uhl8pQhawuyRSGS+gtA6v42KDt32Xb IPH47Z5myKOjVYzixtrbXrR2TUEm1k+tiGi5D3KZl5z9JOH7tN13NYZZKNjD4Gzu4rSs X49g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=vqHOhdxUAX5hLaE+WNoISfkP9arBWQZDiMl1nlrFXIg=; b=g3br3B+iSyqo/1HndeFwAl3qcpygb5pkHyuBF3bAvT4LLCghxFXxyggtMSGymJ6aLa JnpTsh5N1Ogxs2Qew7iwblzYPEdJ4ncx9m0vOhvTlC188yPTKELiqZPJv5BWdTdSWtbu OpyJMqWCaW32k+ps2bia99aTzaw5OMxW1mTVcECHnUt+89J2dSn9X+qjVt0kmLfsoncA OWw1j7T8FO0/s7uQM/CjQslgrnXD8MHc43YmVTESb3hPvV5W74fQUSo5FiIAVzUkJ7ga J33DZFAgbwll1H0YFcW3nOO4vVqtlGF307bDuqSo8OV/yXT1qw5+6y6ObCPpJoG4YkFL KImg== X-Gm-Message-State: AOAM533wbfpZWKSU+VBeqzizvCLctEVp1f3cRNF7cGZiDHqQNxQzb9P0 inLoR+RQPB4kvctaNqD2P/fznhhEKmQjtdID4M8iLf0djlJGow== X-Google-Smtp-Source: ABdhPJxTWehQpWGSikVQQnYZik8MQl3lEILqFjMPyJzWxFMuzAiH5n7fNzBrwNKdbp7NHG/8CwUMREyPHDeiqc+3Eys= X-Received: by 2002:a05:6638:d0a:b0:32f:21fd:cbac with SMTP id q10-20020a0566380d0a00b0032f21fdcbacmr23021397jaj.22.1654795794910; Thu, 09 Jun 2022 10:29:54 -0700 (PDT) MIME-Version: 1.0 From: "Ayush Singh" Date: Thu, 9 Jun 2022 22:58:31 +0530 Message-ID: Subject: Clarification of Memory management in PEI phase To: edk2-devel-groups-io Content-Type: text/plain; charset="UTF-8" Hello everyone, Can anyone help me with understanding dynamic memory management in PEI phase? In the UEFI Platform Integration Specification, version 1.7 Errata A, Section 4.6, PEI Memory services are given which include: 1. InstallPeiMemory() 2. AllocatePages() 3. AllocatePool() 4. CopyMem() 5. SetMem() 6. FreePages() However, no `FreePool()` service seems to be present. So how is the memory allocated using `AllocatePool()` freed? Ayush Singh