Page MenuHomeFreeBSD

clock: Simplify subr_ticks and rename
AcceptedPublic

Authored by markj on Fri, Jan 10, 5:25 PM.

Details

Summary
  • We can use builtin constants for the size of int and long.
  • The file should have a .S prefix since we want to run it through the preprocessor, though apparently this happens anyway with .s...

Reported by: jrtc27
Fixes: 6b82130e6c9a ("clock: Add a long ticks variable, ticksl")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 61651
Build 58535: arc lint + arc unit

Event Timeline

markj requested review of this revision.Fri, Jan 10, 5:25 PM
Makefile.inc1
1773 ↗(On Diff #149077)

If the window of time is small enough do we need to bother?...

sys/kern/subr_ticks.S
22

You missed the change to this line, otherwise it's wrong for 32-bit little endian.

25

As mentioned in my later follow-up, this should be .bss

sys/kern/subr_ticks.S
22

Uh, 32-bit *big* endian, even

markj marked 3 inline comments as done.

Remove the .depend cleanup hack, fix the TICKS_OFFSET definition, move to .bss.

(but please mention BSS in the commit message)

This revision is now accepted and ready to land.Fri, Jan 10, 5:41 PM