Page MenuHomeFreeBSD

Refund the proc emuldata struct for future use. For now move flags from thread emuldata to proc emuldata as it was originally intended.
ClosedPublic

Authored by dchagin on Nov 1 2014, 2:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 24 2024, 2:36 AM
Unknown Object (File)
Mar 20 2024, 12:08 PM
Unknown Object (File)
Mar 18 2024, 9:08 AM
Unknown Object (File)
Mar 2 2024, 2:56 PM
Unknown Object (File)
Mar 1 2024, 1:10 PM
Unknown Object (File)
Jan 18 2024, 1:12 PM
Unknown Object (File)
Jan 11 2024, 9:07 AM
Unknown Object (File)
Jan 5 2024, 5:36 PM
Subscribers

Details

Summary

As we can have both 64 & 32 bit Linuxulator running any eventhandler
can be called twice for us. To prevent this move eventhandlers code
from linux_emul.c to the linux_common.ko module.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dchagin retitled this revision from to Refund the proc emuldata struct for future use. For now move flags from thread emuldata to proc emuldata as it was originally intended..
dchagin updated this object.

Updating D1073: Refund the proc emuldata struct for future use. For now move flags from

thread emuldata to proc emuldata as it was originally intended.

  1. Enter a brief description of the changes included in this update.
  2. The first line is used as subject, next lines as comment. #

Like D1072

trasz added inline comments.
sys/compat/linux/linux_emul.c
91 ↗(On Diff #2219)

Might be a good idea to convert this and pem to use UMA instead of malloc. But that's for a later commit.

223 ↗(On Diff #2219)

I'd suggest moving this (sx_destroy and free) to a new function, pem_free().

sys/compat/linux/linux_fork.c
456 ↗(On Diff #2219)

suword32(9) instead, perhaps?

472 ↗(On Diff #2219)

linux_msg() instead of printf()?

nice catch :) fixed, thank you!

sys/compat/linux/linux_emul.c
91 ↗(On Diff #2219)

ok, joined the todo list

This revision was automatically updated to reflect the committed changes.