aboutsummaryrefslogtreecommitdiffstats
path: root/pathod/language/base.py
Commit message (Expand)AuthorAgeFilesLines
* fix Python 3.6 variable type annotations #3053oscure762018-04-141-4/+4
* fix recursive importMaximilian Hils2017-05-261-41/+0
* fix mypy annotationsMaximilian Hils2017-05-261-3/+5
* Extend Mypy checking to pathodharsh vijay2017-05-021-8/+7
* tests: pathod/tutils.py -> pathod/tservers.pyAldo Cortesi2016-11-021-1/+1
* netlib.strutils -> mitmproxy.utils.strutilsAldo Cortesi2016-10-201-1/+1
* netlib.human -> mitmproxy.utils.humanAldo Cortesi2016-10-201-1/+1
* python3: clean up class bracketsAldo Cortesi2016-10-171-2/+2
* Zap object base classAldo Cortesi2016-10-171-2/+2
* pathod: remove sixAldo Cortesi2016-10-171-3/+3
* First-order conversion to Python3-onlyAldo Cortesi2016-10-171-2/+1
* add escape_single_quotes=False arg to bytes_to_escaped_strMaximilian Hils2016-07-291-4/+4
* fix NestedMessage encodingMaximilian Hils2016-06-061-1/+1
* fix .freeze(), improve testsMaximilian Hils2016-06-061-1/+1
* Py3: Fix corresponding base.Integer test in test_language_baseShadab Zafar2016-06-061-1/+1
* Py3: Store base.Integer value as bytesShadab Zafar2016-06-061-2/+2
* Py3: Return bytes from _Component classShadab Zafar2016-06-061-3/+3
* Py3: Return path unescapedShadab Zafar2016-06-041-1/+1
* Utils reorganisation: add netlib.strutilsAldo Cortesi2016-06-021-7/+7
* Py3: Use six.string_types instead of basestringShadab Zafar2016-05-311-1/+2
* Move human-friendly format functions to netlib.human, remove redundant implem...Aldo Cortesi2016-05-311-3/+3
* remove str()Shadab Zafar2016-05-261-1/+1
* Use escaped_str functions for TokValueLiteralShadab Zafar2016-05-261-6/+7
* Py3: Import and Other misc. stuffShadab Zafar2016-05-261-1/+4
* combine projectsMaximilian Hils2016-02-181-0/+576
<xen/smp.h> #include <asm/mach-default/mach_mpparse.h> __init int probe_x2apic(void) { return x2apic_is_available(); } struct genapic apic_x2apic= { APIC_INIT("x2apic", probe_x2apic), GENAPIC_X2APIC }; void init_apic_ldr_x2apic(void) { /* We only use physical delivery mode. */ return; } void clustered_apic_check_x2apic(void) { /* We only use physical delivery mode. */ return; } cpumask_t target_cpus_x2apic(void) { /* Deliver interrupts only to CPU0 for now */ return cpumask_of_cpu(0); } unsigned int cpu_mask_to_apicid_x2apic(cpumask_t cpumask) { return cpu_physical_id(first_cpu(cpumask)); } void send_IPI_mask_x2apic(cpumask_t cpumask, int vector) { unsigned int cpu, cfg; unsigned long flags; /* * Ensure that any synchronisation data written in program order by this * CPU is seen by notified remote CPUs. The WRMSR contained within * apic_icr_write() can otherwise be executed early. * * The reason mb() is sufficient here is subtle: the register arguments * to WRMSR must depend on a memory read executed after the barrier. This * is guaranteed by cpu_physical_id(), which reads from a global array (and * so cannot be hoisted above the barrier even by a clever compiler). */ mb(); local_irq_save(flags); cfg = APIC_DM_FIXED | 0 /* no shorthand */ | APIC_DEST_PHYSICAL | vector; for_each_cpu_mask ( cpu, cpumask ) apic_wrmsr(APIC_ICR, cfg, cpu_physical_id(cpu)); local_irq_restore(flags); }