As said in the title, the common parts are moved to x86/include/x86_smp.h and x86/include/x86_var.h.
I did not tried to fix the inthand_t and alsias_for_inthand_t mess (see types and esp. types for amd64).
Differential D4358
Merge i386 and amd64 md_var.h and smp.h. kib on Dec 3 2015, 1:27 PM. Authored by Tags None Referenced Files
Details As said in the title, the common parts are moved to x86/include/x86_smp.h and x86/include/x86_var.h. I did not tried to fix the inthand_t and alsias_for_inthand_t mess (see types and esp. types for amd64).
Diff Detail
Event TimelineComment Actions Also, the question is what copyright notice to add to the x86_smp.h. I do not like beer myself and do not want to give a bootle to phk either. Comment Actions I've wanted to do this for md_var.h for a while. Thanks. I'm ambivalent about the license. I think you are probably stuck using it for x86_smp.h since all the subsequent changes to those files have been under that license. Also, it's not clear from arc, but are you copying these files from amd64 to x86?
Comment Actions Oh, I'm not sure what to do to fix the alias_for_inthand_t silliness. I must be a bit daft as I don't understand why setidt() can't just accept inthand_t by default? Also, inthand_t on amd64 (intr_machdep.h) is arguably "wrong", but you'd have to fix the alias. I wonder if this is just so that md_var.h doesn't require intr_machdep.h? Maybe we could move inthand_t to a more "basic" header instead? Comment Actions I am trying to answer all raised questions, I am sorry if I missed any.
For items 4 and 5, I will do something after the current patch is committed. Comment Actions I was asking more if you were going to use 'svn cp' for the purposes of annotate history.
Thanks.
Thanks.
Yes, I think that it is a quite reasonable split, and yes I agree that this patch shouldn't deal with it. I think the current C prototype is wonky anyway because we never define any handlers in C anyway. In that case I think void ()(void) is more appropriate. Comment Actions Most likely yes, I did it for the previous merges. I think that i386 version has longer history and thus is preferred.
Yes, this sounds as a good idea to change i386 to void ()(void) as well. Comment Actions I'd prefer we end up with a standard 2 clause license if phk agrees, but am happy for you to commit this version and then make that change later. |