User Details
- User Since
- Jul 4 2018, 7:23 PM (333 w, 14 h)
Yesterday
And amd64 has:
Also, perhaps worth pointing out arm64 does an unconditional intr_enable for the kernel too...
Presumably in practice the td_critnest check meant the interrupt enabling didn't matter, as spinlock_enter increments it? I assume there aren't many places where we disable interrupts without also being inside a critical section, so it would only be a problem if that sequence of code itself took a spurious fault.
Thanks, no more objections from me
Tue, Nov 19
I'd prefer some of the other cleanups I suggested to have been done as I see no downside to doing things more properly, but I'm not going to block the review on those. There is one other point I do have to make though that I really do object to being here.
Mon, Nov 18
Thu, Nov 14
boolean_t -> bool
Wed, Nov 13
Tue, Nov 12
Tue, Nov 5
As with D47458, C code should not be run prior to enabling translation so we're running at the right address, so IMO this patch is a sign of going down the wrong road. Yes, Linux does horrendously fragile things like this, but that doesn't mean we should do the same.
Running C code without translation enabled is fragile and could break at any time, since it's not running at right address. You're relying on PC-relative addressing being used for everything (i.e. not absolute and not GOT-indirect), which happens to be true today with -mcmodel=medany for this code and all it uses, but there's no guarantee of that. This should really be in assembly (which shouldn't be hard to do, given sbi_get_mvendorid is just a wrapper around ecall?).
Mon, Nov 4
Please don't insert unconditional use of pkg for disc1, it will break the build for non-FreeBSD systems as they normally don't have a pkg binary. Whilst eventually we'll need to figure out a story there for pkgbase, I suggest just guarding it by NO_ROOT for now. It really exists to support non-FreeBSD where NO_ROOT is required, though eventually would ideally be used for the real release builds on FreeBSD rather than requiring root.
Wed, Oct 30
(Alternatively, one could use the ugly PRIxPTR macro in place of the zx)
Tue, Oct 29
Technically should have a blank line between the ifs, though that was true before.
Sat, Oct 26
Fri, Oct 25
Yeah, I mean, I don't really care which way we go, so long as we commit fully to one. As it stands we're using enums in name only, we're not getting any of the benefits that they bring due to this halfway house approach.
So long as the assembly adheres to the ABI it works, and each assembly file is already correct for the corresponding ABI. The numbers are small positive integers, so whether they need sign-extending or zero-extending (or nothing at all) doesn’t matter.
Wed, Oct 23
[18:20:04] <@jrtc27> one review for the new C implementation
[18:20:10] <@jrtc27> one review for each new asm implementation on top of that
[18:20:58] <@jrtc27> and this screams missing depend-cleanup.sh changes to me
[18:23:07] <@jrtc27> and if USE_ASM_SOURCES is an interface into Makefile.md5.inc that's way too global a namespace to be using for it
[18:23:16] <@jrtc27> previously it was fine because it didn't leak outside lib/libmd
[18:23:39] <@jrtc27> but USE_ASM_SOURCES=0 in stand/libsa should be screaming that the name is wrong
Tue, Oct 22
Was I really that stupid? Oops. Please MFC this fix.
Oct 21 2024
Oct 18 2024
Oct 8 2024
Oct 1 2024
Could be guarded by !FreeBSD (AFAICT this isn’t?) but I don’t see a problem with doing it there too.
Sep 23 2024
Cc @bdrewery for poudriere things...
Sep 19 2024
Sep 13 2024
People put up new versions of patches rather than commandeering an existing one regularly. Whether that new version is on GitHub or Phabricator is irrelevant. Please stop complaining all the time about GitHub and Phabricator, your views are well known and it just leads to a bunch of spam in everyone's inboxes and IRC clients.