Knowledge (XXG)

Talk:HLT (x86 instruction)

Source đź“ť

102: 81: 170: 50: 21: 298:
computer has virtual memory (where an errant program will eventually strike an invalid address). On older console computers having HLT with a value of zero would also lead to the computer immediately returning to the halted state should the operator flick the "Halt/Run" switch to "Run" with no program loaded.
282:
The original convention that HLT marks the end of a user program comes from computers with no operating systems. On these computers the job would end with a HLT instruction. That instruction would light the "HLT" light on the console: this light was readily apparent and often accompanied by a buzzer.
275:
However it is a simple optimisation to note that no special implementation is needed for HLT to operate outside Ring 0 to mark the end of the job. In this case, when the HLT instruction is run a software interrupt will be raised to mark an unauthorised use of an instruction, and control returned to
297:
Also of interest is the binary value of the HLT instruction. Many instruction sets ensure that the HLT instruction is a word in length with value 0. Thus a program which starts running in uninitialised memory strikes a HLT instruction and the program ends. This protection is less useful if the
253:
Other CPUs, such as the Z80, PDP-7, etc. have HLT instructions. The VAX, M68k, MIPS, etc. have HALT instructions. Since this article is titled HLT, not HLT (x86) or HLT (Intel), it should describe the uses of HALT instructions on CPUs besides the x86.
271:
The convention in many operating systems is that HLT marks the end of the execution of the user's program. Upon that HLT instruction the processor would raise a software interrupt, returning control from the user's job back to the operating system.
370: 179: 365: 184: 279:
This optimisation means that from reading the datasheet alone people are misled into thinking that HLT only has a use inside Ring 0. Whereas that isn't the case at all.
276:
the operating system. The operating system can then inspect the instruction at fault, note that it is HLT, and treat that as marking the ordinary end of the user's job.
360: 160: 355: 150: 31: 350: 126: 327: 268:
On many processors it is expected that HLT will be used outside of Ring 0. However no additional silicon is required to implement that.
109: 86: 255: 375: 61: 222: 27: 331: 67: 49: 323: 210: 122: 259: 125:
on Knowledge (XXG). If you would like to participate, please visit the project page, where you can join
20: 239: 299: 284: 218: 344: 303: 288: 335: 307: 292: 263: 242: 214: 169: 101: 80: 118: 114: 317: 43: 15: 168: 371:
Start-Class Computer hardware articles of High-importance
283:
The operator could then prepare the next job to be run.
113:, a collaborative effort to improve the coverage of 8: 318:https://en.wikipedia.org/Language_technology 47: 366:High-importance Computer hardware articles 321: 75: 77: 361:Start-Class Computer hardware articles 135:Knowledge (XXG):WikiProject Computing 7: 107:This article is within the scope of 66:It is of interest to the following 14: 356:Mid-importance Computing articles 30:on 13 August 2018. The result of 100: 79: 48: 19: 320:Human Language Technology HLT 155:This article has been rated as 26:This article was nominated for 351:Start-Class Computing articles 264:03:56, 28 September 2010 (UTC) 138:Template:WikiProject Computing 1: 177:This article is supported by 129:and see a list of open tasks. 249:HLT/HALT on other processors 206:so what does HLT stand for? 180:Computer hardware task force 392: 161:project's importance scale 336:16:34, 30 July 2015 (UTC) 243:07:07, 24 July 2007 (UTC) 176: 154: 95: 74: 308:04:46, 19 May 2016 (UTC) 293:04:33, 19 May 2016 (UTC) 376:All Computing articles 173: 123:information technology 56:This article is rated 313:disambiguation please 172: 110:WikiProject Computing 60:on Knowledge (XXG)'s 174: 141:Computing articles 62:content assessment 338: 326:comment added by 227: 213:comment added by 199: 198: 195: 194: 191: 190: 42: 41: 383: 226: 207: 143: 142: 139: 136: 133: 104: 97: 96: 91: 83: 76: 59: 53: 52: 44: 23: 16: 391: 390: 386: 385: 384: 382: 381: 380: 341: 340: 315: 251: 208: 204: 185:High-importance 140: 137: 134: 131: 130: 89: 57: 12: 11: 5: 389: 387: 379: 378: 373: 368: 363: 358: 353: 343: 342: 328:81.105.160.157 314: 311: 250: 247: 246: 245: 203: 200: 197: 196: 193: 192: 189: 188: 175: 165: 164: 157:Mid-importance 153: 147: 146: 144: 127:the discussion 105: 93: 92: 90:Mid‑importance 84: 72: 71: 65: 54: 40: 39: 32:the discussion 24: 13: 10: 9: 6: 4: 3: 2: 388: 377: 374: 372: 369: 367: 364: 362: 359: 357: 354: 352: 349: 348: 346: 339: 337: 333: 329: 325: 319: 312: 310: 309: 305: 301: 295: 294: 290: 286: 280: 277: 273: 269: 266: 265: 261: 257: 248: 244: 241: 240:Android Mouse 237: 233: 230: 229: 228: 224: 220: 216: 212: 201: 186: 183:(assessed as 182: 181: 171: 167: 166: 162: 158: 152: 149: 148: 145: 128: 124: 120: 116: 112: 111: 106: 103: 99: 98: 94: 88: 85: 82: 78: 73: 69: 63: 55: 51: 46: 45: 37: 33: 29: 25: 22: 18: 17: 322:— Preceding 316: 296: 281: 278: 274: 270: 267: 252: 235: 231: 205: 178: 156: 108: 68:WikiProjects 36:no consensus 35: 256:69.54.60.34 209:—Preceding 58:Start-class 345:Categories 132:Computing 119:computing 115:computers 87:Computing 324:unsigned 223:contribs 211:unsigned 202:untitled 28:deletion 159:on the 215:Mebden 121:, and 64:scale. 332:talk 304:talk 289:talk 260:talk 238:. -- 219:talk 34:was 300:Gdt 285:Gdt 151:Mid 347:: 334:) 306:) 291:) 262:) 236:LT 225:) 221:• 187:). 117:, 330:( 302:( 287:( 258:( 234:a 232:H 217:( 163:. 70:: 38:.

Index

Articles for deletion
deletion
the discussion

content assessment
WikiProjects
WikiProject icon
Computing
WikiProject icon
WikiProject Computing
computers
computing
information technology
the discussion
Mid
project's importance scale
Taskforce icon
Computer hardware task force
High-importance
unsigned
Mebden
talk
contribs
Android Mouse
07:07, 24 July 2007 (UTC)
69.54.60.34
talk
03:56, 28 September 2010 (UTC)
Gdt
talk

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.

↑