Page MenuHomeFreeBSD

linuxkpi: Add asm/processor.h
ClosedPublic

Authored by manu on Aug 10 2022, 6:48 AM.
Tags
None
Referenced Files
F166320525: D36107.id.diff
Wed, Aug 12, 9:37 PM
F166211293: D36107.id109149.diff
Wed, Aug 12, 9:40 AM
F166210919: D36107.diff
Wed, Aug 12, 9:36 AM
F166197317: D36107.diff
Wed, Aug 12, 7:09 AM
Unknown Object (File)
Tue, Aug 11, 4:07 AM
Unknown Object (File)
Mon, Aug 10, 9:20 AM
Unknown Object (File)
Mon, Aug 10, 8:54 AM
Unknown Object (File)
Sun, Aug 9, 8:35 AM

Details

Summary

Also fill the boot_cpu_data struct as drm needs it.

Obtained from: drm-kmod
Sponsored by: Beckhoff Automation GmbH & Co. KG

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

manu requested review of this revision.Aug 10 2022, 6:48 AM

linux_compat.c looks ok to me.

sys/compat/linuxkpi/common/include/asm/processor.h
29

I'd remove the X86 from the guard names as we might find ourselves filling in parts for arm64 in the future as well? At least until we don't split asm per-arch as Linux does?

31

Should this be:

#if defined(i386) || defined(amd64)
..
#endif

?

Guard the include for x86 machines only

This revision is now accepted and ready to land.Aug 11 2022, 11:25 AM
This revision was automatically updated to reflect the committed changes.