0
  1. Trang chủ >
  2. Công Nghệ Thông Tin >
  3. Kỹ thuật lập trình >

Thiết kế và lập trình hệ thống - Chương 27

Thiết kế và lập trình hệ thống - Chương 27

Thiết kế lập trình hệ thống - Chương 27

... -D__KERNEL__ -DMODULE -I$(KERNELDIR)-O -Wallifdef CONFIG_SMP CFLAGS += -D__SMP__ -DSMPendifall: skull.oskull.o: skull_init.o skull_clean.o $(LD) -r $^ -o $@clean: rm -f *.o *~ coreSystems Design ... ld -ris required to link them.A makefi le for a simple driver called skull which uses two source fi les.KERNELDIR = /usr/src/linuxinclude $(KERNELDIR)/.configCFLAGS = -D__KERNEL__ -DMODULE -I$(KERNELDIR)-O ... flags:-O must be specifi ed, since many function are declared as inline in theheaders, and gcc doesn’t expand them unless optimization is turnedon.Don’t use -O2 !-g can be used for debugging.-Wall...
  • 17
  • 296
  • 0
Thiết kế và lập trình hệ thống - Chương 3

Thiết kế lập trình hệ thống - Chương 3

... the 80386 and up.Allows a linear address (virtual address) of a program to be located in any por-tion of physical memory.The paging unit is controlled by the microprocessors control registers:311211 ... appropriate page table and (finally) one tothe desired data or code item. Ouch!A Translation Look-aside Buffer (TLB) is used to cache page directoryand page table entries to reduce the number of...
  • 5
  • 481
  • 0
Thiết kế và lập trình hệ thống - Chương 7

Thiết kế lập trình hệ thống - Chương 7

... 64-bit wide data bus.The 30-pin and 72-pin SIMMs are not used on these systems.Rather, 64-bit DIMMs (Dual In-line Memory Modules) are the standard.These organize the memory 64-bits wide.The board has ... 6 6EPROMsIntel 271 6 EPROM (2K X 8):A7VCC2K x 8 EPROM12345678920191817161514131 0271 6111221222324A6A5A4A3A2A1A0GNDO0O1O2A8A9VPPCSA10PD/PGMO7O6O5O4O3Pin(s)FunctionA0-A10PD/PGMCSO0-O7AddressPower ... 4B1A 1B 2A 2B 3A 3B 4A 4BRASA074157 (2-to-1MUX)A1A2A3A4A5A6A71Y 2Y 3Y 4Y 1Y 2Y 3Y 4YAddress BUSInputs to DRAM0: latch A to Y1: latch B to YSS74157 (2-to-1MUX)Systems Design & Programming...
  • 12
  • 420
  • 0
Thiết kế và lập trình hệ thống - Chương 8

Thiết kế lập trình hệ thống - Chương 8

... )X16G X( )-- -- - -- - -- - -- - -- - -- - -- - -X27X26X25X24X22X21X18+ + + + + +X16X15X21+ + +-- -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - =X16X15X21+ ... 15.Therefore, no more than 2 bytes are needed independent of the data block size.CRCM X( )XnG X( )-- -- - -- - -- - -- - -- - -- - Q X( ) R X( )+= =Q(X) is the quotientR(X) is the remainderG X( ) X16X15X21+ + +=Systems ... memory.G2AG2BG1ABC01234567A0A12O0O7... ...CS2764A16A17A18A19A13A14A15CSCSCSCSCSCSCSRD of 8088/86Data BusAddress BusF2000-F3FFFF0000-F1FFFF4000-F5FFFF6000-F7FFFF8000-F9FFFFA000-FBFFFFC000-FDFFFFE000-FFFFFAddress spaceF0000H-FFFFFHA13...
  • 21
  • 578
  • 2
Thiết kế và lập trình hệ thống - Chương 9

Thiết kế lập trình hệ thống - Chương 9

... InterfaceI1I2I3I4I5I6I7I8I9I1016L8O1O2O3O4O5O6O7O8A29A30A31I1I2I3I4I5I6I7I8I9I1016L8O1O2O3O4O5O6O7O8A19A20A21A22A23A24A25A26A27A28A0A15O0O7......CEOE27512D0-D7D8-D15D15-D23D24-D31D56-D63D48-D55D40-D47D32-D39A3-A18MRDCA0A15O0O7......CEOE27512A0A15O0O7......CEOE27512A0A15O0O7......CEOE27512A0A15O0O7......CEOE27512A0A15O0O7......CEOE27512A0A15O0O7......CEOE27512A0A15O0O7......CEOE27512(64K ... pin on RAS)A8S1S0MUX256-to-1MUX256-to-1MUX256-to-1MUX256-to-164K array(256 X 256)2552541064K array(256 X 256)64K array(256 X 256)64K array(256 X 256)256K X 1 DRAMA0-A7A10-A17Block 0Block 1Block ... since the ver-tical wires are VERY long (delay is at least linear to length).S0S1S2SN-2SN-1Word 0Word 1Word 2Storage cellWord N-2Word N-1Input-Output(M bits)DecoderA0A1A2AK-1K = log2None-hotBinary...
  • 18
  • 470
  • 0
Thiết kế và lập trình hệ thống - Chương 17

Thiết kế lập trình hệ thống - Chương 17

... directive db:Word-sized (dw) and doubleword-sized data (dd):Little endian: Least significant byte is always stored in the lowest-num-bered memory location.floatstr db ’Float number -& gt; %f ’, 10, ... Rectangular Areas’, 10, 0temp_buf: times 200 db 0temp_buf_size: equ $-temp_bufneg_exponent: dd -1 00301H302H303H12H34HLow-order byteHigh-order byteStorage of the number 1234Systems Programming 80x86 ... single percision, the sign bit + 8-bit exponent + 24-bit mantissa = 33 bits !The mantissa has a hidden 1 bit in the leftmost position that allows it tobe stored as a 23-bit value.The mantissa is first...
  • 5
  • 427
  • 0
Thiết kế và lập trình hệ thống - Chương 19

Thiết kế lập trình hệ thống - Chương 19

... dlaxbxcxdxspbpdisiAccumulatorBase IndexCountDataStack PointerBase PointerDestination IndexSource Index16-bitregisters32-bitextensionsah alax8-bit16-bitnamesSystems Design & Programming 80x86 Assembly I CMPE 3103 (Feb ... MARYLAND BALTIMORE COUNTY1 9 6 6Data Addressing Modes Base relative-plus-indexA second variation includes: mov eax, [ebx+edi+4] Scaled-indexA second variation includes: mov eax, ebx*2+ecx+offsetScaling ... Addressing Modes• Register IndirectAny of eax, ebx, ecx, edx, ebp, edi or esi may be used.• Base-plus-indexAny combination of eax, ebx, ecx, edx, ebp, edi or esi.• Register relativeA second variation...
  • 9
  • 412
  • 1
Thiết kế và lập trình hệ thống - Chương 20

Thiết kế lập trình hệ thống - Chương 20

... constant is any 32-bit signed value.Base Relative-Plus-Index addressing:Effective address computed as:seg_base + base + index + constant.Designed to be used as a mechanism to address a two-dimensional ... Addressing ModesBase-Plus-Index addressing:Effective address computed as:seg_base + base + index.Base registers: Holds starting location of an array.• ebp (stack)• ebx (data)• Any 32-bit register except ... Addressing ModesScaled-Index addressing:Effective address computed as:seg_base + base + constant*index.Code Memory-Addressing Modes:Used in jmp and call instructions.Three forms: Direct PC-Relative IndirectDirect:Absolute...
  • 8
  • 368
  • 0
Thiết kế và lập trình hệ thống - Chương 22

Thiết kế lập trình hệ thống - Chương 22

... BALTIMORE COUNTY1 9 6 6Arithmetic Operationssub eax, ebxdec edi;Subs registers - Carry flag.sbb ecx, ebx;eax=eax-ebxcmp al, 10Hjae LABEL1;Jump if equal or below.jbe LABEL2;if ecx==eax, eax=edx ... Resultxor ah, ch ;ah=ah XOR chtest al, 4jz LABEL;Jump to LABEL if bit 2 is zero.;Tests bit 2 in al -- 00000100not ebxneg TEMPSystems Design & Programming 80x86 Assembly IV CMPE 3107 (Mar. 1, ... IV CMPE 31010 (Mar. 1, 2002)UMBCU M B CUNIVERSITY OF MARYLAND BALTIMORE COUNTY1 9 6 6Flow-of-Control Instructionsja ;Jump if above (Z=0 and C=0);Jump if below or equal (Z=1 or...
  • 11
  • 333
  • 0
Thiết kế và lập trình hệ thống - Chương 23

Thiết kế lập trình hệ thống - Chương 23

... 6✬✎✭✮✠✯✰✱✲✲✯✳✴✰✎✵MiscellaneousDataTransferOperations.INandOUT:Transfersabyte,wordordoublewordofdatafrom/toanI/Odeviceinto/outofAL,AXandEAX,respectively.Memoryoperationsarenotavailable(astheyareinINSandOUTS):Twoforms:•Fixed-portaddressing:8-bitportnumberencodedininstruction.8-bitvalueissign-extendedintoaddressbits 8-1 5.Addressbits1 6-3 1areundefined.•Variable-portaddressing:16-bitportnumberstoredinDX. ✁AL✄✠✝☎✝ ... 6✬✎✭✮✠✯✰✱✲✲✯✳✴✰✎✵MiscellaneousDataTransferOperations.MOVSXandMOVZX(80386anduponly):Move-and-sign-extendandMove-and-zero-extend:BSWAP(80486anduponly):Swapsthefirstbytewiththeforth,andthesecondbytewiththethird.Usedtoconvertbetweenlittleendianandbigendian: ✛✁✄ CX✄BL☎✟✒✏☛✎✙☎✡✙☛✛✎✆✕✒☛✡✍✢✝ ✛✁✂ EAX✄ ✁✂✁✢☎✄✙✚✍✙☎✡✙☛✛✎✟✍✚✛✔✡ ✁✂✁✢✒☛✆✆☎✜✂✄✜✟✙EAXEAXEBXECXEDX✡✡✠✠✞✞✝✝✝✝✞✞✠✠✡✡ ✂✁✄☎ ... 6✬✎✭✮✠✯✰✱✲✲✯✳✴✰✎✵MiscellaneousDataTransferOperations.XCHG:Exchangesthecontentsofaregisterwiththecontentsofanyotherregisterormemorylocation.ItcanNOTexchangesegmentregistersormemory-to-memorydata.Byte,wordanddoublewordscanbeexchangedusinganyaddressingmode(exceptimmediate,ofcourse).XLAT:PerformsatablelookupoperationbyconvertingthevalueinALfromanindextoavaluestoredinthecellofatableinmemory. ✁✂✄EDX✄ESI☎✆✆☎✠✖✔☛✏✙✆ ✝✔☛✛✆✟☛ ✁✂✄AL✄ ✁✂✁✢☎✆☎✠✖✔☛✏✙✚✙✏✒✎✡✙✚✔☛✛✌✙✌✍✚ ✗✔✟✓✙✎✜MOV...
  • 13
  • 361
  • 0

Xem thêm

Từ khóa: Nghiên cứu tổ hợp chất chỉ điểm sinh học vWF, VCAM 1, MCP 1, d dimer trong chẩn đoán và tiên lượng nhồi máu não cấpNghiên cứu vật liệu biến hóa (metamaterials) hấp thụ sóng điện tử ở vùng tần số THzGiáo án Sinh học 11 bài 13: Thực hành phát hiện diệp lục và carôtenôitGiáo án Sinh học 11 bài 13: Thực hành phát hiện diệp lục và carôtenôitPhối hợp giữa phòng văn hóa và thông tin với phòng giáo dục và đào tạo trong việc tuyên truyền, giáo dục, vận động xây dựng nông thôn mới huyện thanh thủy, tỉnh phú thọTrả hồ sơ điều tra bổ sung đối với các tội xâm phạm sở hữu có tính chất chiếm đoạt theo pháp luật Tố tụng hình sự Việt Nam từ thực tiễn thành phố Hồ Chí Minh (Luận văn thạc sĩ)Nghiên cứu, xây dựng phần mềm smartscan và ứng dụng trong bảo vệ mạng máy tính chuyên dùngNghiên cứu về mô hình thống kê học sâu và ứng dụng trong nhận dạng chữ viết tay hạn chếNghiên cứu tổng hợp các oxit hỗn hợp kích thƣớc nanomet ce 0 75 zr0 25o2 , ce 0 5 zr0 5o2 và khảo sát hoạt tính quang xúc tác của chúngNghiên cứu khả năng đo năng lượng điện bằng hệ thu thập dữ liệu 16 kênh DEWE 5000Định tội danh từ thực tiễn huyện Cần Giuộc, tỉnh Long An (Luận văn thạc sĩ)Thiết kế và chế tạo mô hình biến tần (inverter) cho máy điều hòa không khíSở hữu ruộng đất và kinh tế nông nghiệp châu ôn (lạng sơn) nửa đầu thế kỷ XIXTổ chức và hoạt động của Phòng Tư pháp từ thực tiễn tỉnh Phú Thọ (Luận văn thạc sĩ)Kiểm sát việc giải quyết tố giác, tin báo về tội phạm và kiến nghị khởi tố theo pháp luật tố tụng hình sự Việt Nam từ thực tiễn tỉnh Bình Định (Luận văn thạc sĩ)Tăng trưởng tín dụng hộ sản xuất nông nghiệp tại Ngân hàng Nông nghiệp và Phát triển nông thôn Việt Nam chi nhánh tỉnh Bắc Giang (Luận văn thạc sĩ)Giáo án Sinh học 11 bài 15: Tiêu hóa ở động vậtNguyên tắc phân hóa trách nhiệm hình sự đối với người dưới 18 tuổi phạm tội trong pháp luật hình sự Việt Nam (Luận văn thạc sĩ)Giáo án Sinh học 11 bài 14: Thực hành phát hiện hô hấp ở thực vậtTÁI CHẾ NHỰA VÀ QUẢN LÝ CHẤT THẢI Ở HOA KỲ