Page MenuHomeFreeBSD

riscv: Add macro for hfence.gvma instruction
ClosedPublic

Authored by doonbsd_gmail.com on Sat, Jan 24, 9:27 AM.
Tags
None
Referenced Files
F144368679: D54857.diff
Sun, Feb 8, 2:19 AM
Unknown Object (File)
Wed, Feb 4, 10:16 PM
Unknown Object (File)
Tue, Feb 3, 6:59 AM
Unknown Object (File)
Mon, Feb 2, 9:42 PM
Unknown Object (File)
Sun, Feb 1, 11:47 PM
Unknown Object (File)
Wed, Jan 28, 5:05 PM
Unknown Object (File)
Wed, Jan 28, 7:54 AM
Unknown Object (File)
Mon, Jan 26, 6:55 PM

Details

Summary

Add an inline function hfence_gvma() for hfence.gvma instruction.

Signed-off-by: Doongar Singh <doonbsd@gmail.com>

Diff Detail

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

Event Timeline

markj added inline comments.
sys/riscv/include/atomic.h
41 ↗(On Diff #170325)

Let's put it in riscv/include/cpufunc.h instead? atomic.h isn't really the right place for this, it's more similar to sfence_vma() etc..

Moved hfence_gvma from atomic.h to cpufunc.h and changed it to an inline function.

This revision is now accepted and ready to land.Sun, Jan 25, 4:03 PM

riscv: Add an inline function hfence_gvma() for hfence.gvma instruction.

This revision now requires review to proceed.Sun, Jan 25, 4:54 PM

Hold on. I just found one style problem. There must be a empty line after start curly brace when the function has single line body.

I send an updated patch.

Hold on. I just found one style problem. There must be a empty line after start curly brace when the function has single line body.

I send an updated patch.

That style(9) rule was dropped years ago

So, this can't be merged now? Shall I drop that change and update new diff?

So, this can't be merged now? Shall I drop that change and update new diff?

No, it's ok as-is. Indeed, style(9) doesn't require the blank line, but most of the other wrappers in this file have one so we might as well stay consistent.

So, this can't be merged now? Shall I drop that change and update new diff?

No, it's ok as-is. Indeed, style(9) doesn't require the blank line, but most of the other wrappers in this file have one so we might as well stay consistent.

Ok. The status has changed to "Needs Review" after I updated the patch. Can please you accept it?

This revision is now accepted and ready to land.Mon, Jan 26, 4:08 PM
This revision was automatically updated to reflect the committed changes.