Skip to content

Commit

Permalink
posix: Fix GET_MEMORY_INFORMATION request
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisbonke committed Sep 23, 2024
1 parent 31ee69f commit 6107613
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions posix/subsystem/src/requests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3460,11 +3460,14 @@ async::result<void> serveRequests(std::shared_ptr<Process> self,
std::cout << "posix: GET_MEMORY_INFORMATION" << std::endl;

managarm::kerncfg::GetMemoryInformationRequest kerncfgRequest;
auto [kerncfgSendResp, kerncfgResp] = co_await helix_ng::exchangeMsgs(
auto [offer, kerncfgSendResp, kerncfgResp] = co_await helix_ng::exchangeMsgs(
getKerncfgLane(),
helix_ng::sendBragiHeadOnly(kerncfgRequest, frg::stl_allocator{}),
helix_ng::RecvInline{}
helix_ng::offer(
helix_ng::sendBragiHeadOnly(kerncfgRequest, frg::stl_allocator{}),
helix_ng::recvInline()
)
);
HEL_CHECK(offer.error());
HEL_CHECK(kerncfgSendResp.error());
HEL_CHECK(kerncfgResp.error());

Expand Down

0 comments on commit 6107613

Please sign in to comment.