processor

What are traps?

谁都会走 提交于 2019-12-03 10:30:30
There are many different types of traps listed in processor datasheets, e.g. BusFault, MemManage Fault, Usage Fault and Address Error. What is their purpose? How can they be utilized in fault handling? Traps are essentially subroutine calls that are forced by the processor when it detects something unusual in your stream of instructions. (Some processors make them into interrupts, but that's mostly just pushing more context onto the stack; this gets more interesting if the trap includes a switch between user and system address spaces). This is useful for handling conditions that occur rarely

Can Intel PT (Processor Trace) be disabled/configured from within an OS?

假装没事ソ 提交于 2019-12-03 08:50:40
I have a number of questions about Intel PT (have been trying to decode the manual but is very difficult). My questions are: I am trying to find out if Intel PT can be disabled or reconfigured from within an OS, or, more generally, from within the system it is providing a trace of. Does Intel PT generate events on writes to specific registers - such as CR3, IDTR, etc Can Intel PT write values back to the system - i.e. can an external debugging machine actively perform writes to register, cache or memory? Any help is much appreciated, thankyou!! I'm also currently figuring out how to use Intel

How to know if a binary integral number represents a negative number?

拜拜、爱过 提交于 2019-12-03 08:32:03
问题 I am reading some C text. In the Negative and Positive Values session, the author mentioned several ways of representing a negative number in binary form. I understood all of the way and was wondering if with a give binary number, can we determine if it is negative? For example, the -92 has the 8-bit binary form: 10100100 . But if we are given 10100100 can we say that is -92, and not other non-negative number? 回答1: It depends on the representation, of course. In two's complement, which is

Direct memory access DMA - how does it work?

假如想象 提交于 2019-12-03 07:14:24
问题 I read that if DMA is available, then processor can route long read or write requests of disk blocks to the DMA and concentrate on other work. But, DMA to memory data/control channel is busy during this transfer. What else can processor do during this time? 回答1: First of all, DMA (per se) is almost entirely obsolete. As originally defined, DMA controllers depended on the fact that the bus had separate lines to assert for memory read/write, and I/O read/write. The DMA controller took advantage

Single- vs. multi-threaded programming on a single core processor

佐手、 提交于 2019-12-03 05:06:54
问题 Can someone please explain if there's really any advantage to writing a multi-threaded piece of code that runs on a single processor with a single core? E.g., a method that processes document pages such that the pages are mutually exclusive w/r/t the aforementioned piece of code. At first glance, it doesn't seem like there'd be an advantage because true multi-threading is not possible. I.e., the OS would have to context switch the threads anyway. I'm wondering if just coding something in a

VHDL microprocessor/microcontroller

点点圈 提交于 2019-12-03 04:07:35
I'm learning to code on Xilinx (VHDL). Next, I want to make a simple microprocessor/microcontroller and on the way learn a little about slice components. So my goal is try to code an 8 bits microprocessor using an AMD 2901 (4 bits-slice). (I already have the code of the 2901 and all its information about its input and output signals.) I know the first step would be make the architecture of the microprocessor so I ended up with something like this (I understand that the bandwidth of the bus will be very different for what I'm looking for). http://www.cs.binghamton.edu/~reckert/wk15fig1.JPG

Android Get Processor Model

微笑、不失礼 提交于 2019-12-03 03:34:16
I want to get Processor Model similar to DU Booster. CPU model contains ARM processor version and revision. For Example: ARMv7 Processor rev 3 (v7l) I have tried this System.getProperty("os.arch") which returns only architecture and String[] args = {"/system/bin/cat", "/proc/cpuinfo"}; to get CPU info. I am able to get the right information in some of the devices but not in all. I tried this in Asus Fonepad 7 which doesn't return the property of the Processor(but returns processor(small p) It returns like processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 53 model name : Intel(R)

Why are 8 and 256 such important numbers in computer sciences?

坚强是说给别人听的谎言 提交于 2019-12-03 01:36:59
I don't know very well about RAM and HDD architecture, or how electronics deals with chunks of memory, but this always triggered my curiosity: Why did we choose to stop at 8 bits for the smallest element in a computer value ? My question may look very dumb, because the answer are obvious, but I'm not very sure... Is it because 2^3 allows it to fit perfectly when addressing memory ? Are electronics especially designed to store chunk of 8 bits ? If yes, why not use wider words ? It is because it divides 32, 64 and 128, so that processor words can be be given several of those words ? Is it just

What's a good source to learn about QEMU?

给你一囗甜甜゛ 提交于 2019-12-03 01:31:05
问题 What book or website would you recommend to learn about QEMU? I'd like to see some usage examples as well as how to use the APIs. 回答1: Best Resources: Main QEMU Usage Documentation Qemu Man Page - Invaluable resource when working with qemu. Quick Start Guide - Slightly ubuntu/debian specific. Covers KVM. Qemu Networking Guide - Great resource, super useful. Have fun qemu's a great tool. Brian G. 回答2: Some additional resources to understand and get started with the source code: http://vmsplice

How to know if a binary integral number represents a negative number?

懵懂的女人 提交于 2019-12-02 22:21:26
I am reading some C text. In the Negative and Positive Values session, the author mentioned several ways of representing a negative number in binary form. I understood all of the way and was wondering if with a give binary number, can we determine if it is negative? For example, the -92 has the 8-bit binary form: 10100100 . But if we are given 10100100 can we say that is -92, and not other non-negative number? It depends on the representation, of course. In two's complement, which is widely used, you simply look at the most significant bit. For example, the (number) -92 has the binary form: